Get value list from php code

Archived from the Xataface Users forum.

inmisia — Thu Sep 17, 2009 8:06 am

is possible to create dinamicaly value list of a select box from php code?

like:

Code: Select all
function opuscolo__pullValue(&$record) {       if ($record->strval('opuscolo'))       {         $r_unit = $record->display('outcome');         return "<select><option>$r_unit</option><option>value 2</option><option>value 3</option></select>";       } }

Becose I need to get data from another Database (oracle) becore put in mySql database.

Thanks For All.


shannah — Thu Sep 17, 2009 9:39 am

Yes. You can define valuelists programmatically.

http://xataface.com/wiki/valuelists.ini_file#toc3