cancel
Showing results for 
Search instead for 
Did you mean: 

xfa.record does not work

Former Member
0 Kudos

Hello together,

I want to fetch a value of a data node (SAP-Interface Parameter) into a form variable to use it in scripting further on. In a non SAP form I simply wrote like this:

varParam1.value = xfa.record.IS_PARAMS.PARAM1.value ....

In the SAP-environment xfa.record does not give any suggestions for the input as in non SAP, where you after typing "." get a list of all possible entries. So if You type "xfa.record." You usually will get a list in which You will find IS_PARAMS, too. Not so in SAP.

Some how I can not get any direct access to a data node. Also statements like xfa.resolveNode("xfa.datasets.data.FORM1.IS_PARAMS") do not work. What am I doing wrong?

Regards C.

Accepted Solutions (0)

Answers (1)

Answers (1)

nikhilkup
Active Participant
0 Kudos

Please check the language whether its FORMCALC or JAVASCRIPT

Former Member
0 Kudos

Hi Nikhil,

I did both in Javascript, works in non SAP, dos not work in SAP.

May be You have a line of javascript which did this in SAP Environment of LcDesigner?

Thanks + Regards C

nikhilkup
Active Participant
0 Kudos

In javascript for HCM forms you can use

$record.FIELDNAME.DATA.FIELD

Fieldname is the name of the field you see in the data