Objects as ActionParameters

thread: 2 messages  |  last: about 5 years ago  |  started: friday, august 25, 2006, 8:07 am pdt


#1  |  Eli Kaufman (Stockholm, Sweden)
Friday, August 25, 2006, 8:07 AM PDT

.. to be able to assign an object as QControl::ActionParameter, instead of just an string or int. Would save lots of resources when dealing with selectable rows in a datagrid, for example in the checkbox-datagrid-example on QCodo examples site. Of course, the object should be saved in FormState or simliar, and only a key supplied in the javascript call.

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Friday, August 25, 2006, 9:52 AM PDT

thanks for the suggestion... there might be a way you can do something like this now, actually.

You could create an array of objects that you want to store as action parameters in the qform, itself, e.g.

protected $objActionParameterObjectsArray;

And then simply use the index of a particular object as the ActionParameter.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.