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

Home » RADICORE development » Transaction Patterns » PopUpForm (Retrieving additional field values)
Re: PopUpForm [message #4245 is a reply to message #4242] Sat, 07 June 2014 07:29 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 415
Registered: May 2014
Senior Member
I try to get the data by adding these lines of code to my class file:

function _cm_post_popupReturn ($fieldarray, $return_from, $select_array)
{
// get contents of foreign table HTM_DB_KONTAKTE
$dbobject =& RDCsingleton::getInstance('htm_db_kontakte'); // Lookup-Tabelle
$where = "kontakt_name=$select_array['user_id'] AND kontakt_vorname=$select_array['user_seq_no']";
$array = $dbobject->_dml_getData ($where); // PKey-Felder

$fieldarray['kontakt_ma_name'] = $array['kontakt_name'];
$fieldarray['kontakt_ma_vorname'] = $array['kontakt_vorname'];

return $fieldarray;

}

I am not so familiar with PHP and OO Programming although I read a lot but doing it is something different. That's why I am absolutely not sure if this is the right way.
Can you give me some advice?
 
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: Thu May 02 20:46:59 EDT 2024

Total time taken to generate the page: 0.00950 seconds