When I apply a MySQLi Manage Relational Table behavior, it is somehow applying an old function
I have an old insert page that I needed to convert to MySQLi. It includes a single insert behavior and a manager relational table behavior. I stripped out all the old behaviors and js so that I could apply them as new MySQLi behaviors.
The form contains a multi select list named “ProductCategory”, populated by a rs. The list is used for the options form field in the MRT.
When I applied the MySQLi MRT behavior, it modified the select list as it has in the past by adding the [] to the select name
<select name=“ProductCategory[]" multiple="multiple" id=“ProductCategory”>
.
It also modified the option in the list to look like this…
<option value="<?php echo($rsRecordSet->getColumnVal("CategoryID")); ?>" <?php if (!(strcmp(($rsRecordSet->getColumnVal("CategoryID")), WA_AB_returnPreSelectValue($WA_PreSelect_RelationalTable_1, ($rsRecordSet->getColumnVal("CategoryID")))))) {echo "selected=\"selected\"";} ?> ><?php echo($rsRecordSet->getColumnVal("CategoryName")); ?></option>
This is now causing a fatal error in the list box, which is understandable because I’m pretty sure that the WA_AB_returnPreSelectValue() function is an old one and isn’t used anymore.
Fatal error: Call to undefined function WA_AB_returnPreSelectValue()…
I’m not sure why or how it keeps being applied when I use the Webassist > MySQLi > Data Management > MySQLi MRT behavior.
Any thoughts?
I am using the latest download of DB 2.3.5, which I installed yesterday. I deleted the files rsobj.php and queryobj.php and regenerated them. Not sure what I’m doing wrong. Do I need to do something different to the multi select list before I apply the MRT? It’s been a while since I applied a MRT from scratch.
Thanks,
TroyD