Get value list from php code

A place for users and developers of the Xataface to discuss and receive support.

Get value list from php code

Postby 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.
inmisia
 
Posts: 16
Joined: Tue Nov 06, 2007 2:01 am

Postby shannah » Thu Sep 17, 2009 9:39 am

Yes. You can define valuelists programmatically.
http://xataface.com/wiki/valuelists.ini_file#toc3
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 17 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved