Segment name in variable

vendredi 27 mars 2015

MC 3.2/Win8/MS SQL Express



I want to put a segment name into a configuration map to use it in javascript to retrieve the value of this segment. Doing this I can configure what PID segment to use.



So I want to create a configuration map named varPID with the content msg['PID']['PID.4']['PID.4.1']



Then I want to use this to get the value of the segment msg['PID']['PID.4']['PID.4.1']:

var patid = $('varPID').toString();



But the logger only gives me the name of the segment not the value.

logger.debug(patid); >> msg['PID']['PID.4']['PID.4.1']

Do I need to use something like .value??





Segment name in variable

0 commentaires:

Enregistrer un commentaire