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 #7162 is a reply to message #7161] Fri, 22 June 2018 03:41 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 439
Registered: May 2014
Senior Member
Yes, that works. Before getting the additional data I copy the values in verbaende_art_id_old, verbaende_kuerzel_old... and later I copy these values in the $select_array.

// liest Schluessel-Werte ein
$verbaende_art_id_old = $fieldarray['verbaende_art_id'];
$verbaende_kuerzel_old = $fieldarray['verbaende_kuerzel'];
$vereine_kuerzel_old = $fieldarray['vereine_kuerzel'];

// 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'];

$select_array['verbaende_art_id'] = $verbaende_art_id_old;
$select_array['verbaende_kuerzel'] = $verbaende_kuerzel_old;
$select_array['vereine_kuerzel'] = $vereine_kuerzel_old;

I don't know exactly but I think that this worked earlier. Did you change something in the latest versions?
 
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 21:26:13 EST 2024

Total time taken to generate the page: 0.01095 seconds