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

Home » RADICORE development » Transaction Patterns » PopUpForm (Retrieving additional field values)
Re: PopUpForm [message #4246 is a reply to message #4245] Sat, 07 June 2014 08:18 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2361
Registered: April 2006
Location: Surrey, UK
Senior Member
Do not use the $dbobject_dml_getData() method , use $dbobject->getData() instead.

When you construct the WHERE string you must remember to enclose non-numeric values with single quotes.

The result returned by getData() is a 2-dimensional array which is keyed by row numnber, with the value being an associative array of name=value pairs. Your code should therefore look like this:
$dbobject =& RDCsingleton::getInstance('htm_db_kontakte');
$where = "kontakt_name='{$select_array['user_id']}' AND kontakt_vorname='{$select_array['user_seq_no']}'"; 
$data = $dbobject->getData ($where);
if (!empty($data) {
    $data = $data[0];
    $fieldarray['kontakt_ma_name'] = $data['kontakt_name'];
    $fieldarray['kontakt_ma_vorname'] = $data['kontakt_vorname'];
} // if


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Virtual Private Database and List 2 pattern
Next Topic: Dropdown list
Goto Forum:
  


Current Time: Mon Aug 19 17:44:15 EDT 2024

Total time taken to generate the page: 0.01077 seconds