Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » getInitialDataMultiple does not deal with ') OR (' in $where parameter
getInitialDataMultiple does not deal with ') OR (' in $where parameter [message #1139] Wed, 24 October 2007 19:22 Go to previous message
alrobertson is currently offline  alrobertson
Messages: 9
Registered: October 2007
Location: Vancouver
Junior Member
I have a LIST2 screen which has a nav button to call ADD4 on another table with the multiple selections from the LIST2 screen.
I then wanted to look up the selected records and use some of that data to make the new records.

if 2 lines are selected on the LIST2 screen, ADD4 gets $where = "( primaryfieldname='X' ) OR ( primaryfieldname='Y' )".
When where2array parses it in getInitialDataMultiple() it messes up.

I realize I can do something in _cm_initialize to grab it first but it would sure be nice if passing the above $where to where2array($where) would create:
array( primaryfieldname => array(X,Y) )

and then calling array2where() would put it to:
"primaryfieldname IN ('X','Y')"

if not, it would at least be good if some form of an array got through to _cm_getInitialDataMultiple($fieldarray).

Let me know if I am missing some other obvious solution. I am using 1.28.0

Thanks
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using Popup on outer table of MULTI4
Next Topic: calling ADD2 from LIST1 with $where set.
Goto Forum:
  


Current Time: Fri Nov 08 21:03:05 EST 2024

Total time taken to generate the page: 0.00980 seconds