AnsweredAssumed Answered

get value of a local attribute of the nr object

Question asked by veiba02 on Mar 6, 2018
Latest reply on Mar 7, 2018 by Michael Mueller

Hi Team,

when an incident is saved, I want to write the value of a local attribute of the nr objet to the incident.
I need the value in the incident record for a remote reference triggered by an event.
I tried to realize it in the function  preSaveTrigger (), but I do not get the value,
$args.affected_resource.zTA_Stellplatz_Nr    doesn't work.
Defining a hidden variable
<input type="hidden" name="Set.ci_stellplatz_nr" value="$args.affected_resource.zTA_Stellplatz_Nr">

and use it in the preSaveTrigger
var ci_stellplatz_nr = document.main_form.elements["SET.ci_stellplatz_nr"];
also does not solve my problem, I get the value "undefined".

Do you know a solution for this problem?

Thanks
   Baerbel

Outcomes