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

Home » RADICORE development » Transaction Patterns » PopUp changes Key fields
Re: PopUp changes Key fields [message #7160 is a reply to message #7159] Wed, 20 June 2018 05:13 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 439
Registered: May 2014
Senior Member
The relationships seems to be fine.

I put the following code in the _cm_PopUpReturn() function:

function _cm_popupReturn ($fieldarray, $return_from, &$select_array, $return_files)
{
// liest Daten in Abhängigkeit des aufrufenden Formulars ein
switch ($return_from) {
case 'htm_orga_vereine(popup1)' :

// get contents of foreign table ORGA_VEREINE
$dbobject =& RDCsingleton::getInstance('orga_vereine'); // Instanz für Lookup-Tabelle
$where = "verbaende_art_id='{$select_array['verbaende_art_id']}'
AND verbaende_kuerzel='{$select_array['verbaende_kuerzel']}'
AND vereine_kuerzel='{$select_array['vereine_kuerzel']}'";

$data = $dbobject->getData ($where);

if (!empty($data)){
$data = $data[0];

$fieldarray['kontakt_stamm_verbaende_art_id'] = $data['verbaende_art_id'];
$fieldarray['kontakt_stamm_verbaende_kuerzel'] = $data['verbaende_kuerzel'];
$fieldarray['kontakt_stamm_vereine_kuerzel'] = $data['vereine_kuerzel'];

$fieldarray['kontakt_stamm_vereine_name'] = $data['vereine_name'];
} // if
else
{
$fieldarray['kontakt_stamm_vereine_name'] = '';
}
// else

} // switch

return $fieldarray;

}

The key values for verbaende_art_id, verbaende_kuerzel and vereine_kuerzel are changed as well.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VPD - PopUp
Next Topic: IDE Validation Issues
Goto Forum:
  


Current Time: Tue Dec 17 23:15:34 EST 2024

Total time taken to generate the page: 0.01011 seconds