Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Access a Data node in Java Script via SOM Expression.

Former Member
0 Likes
960

Hi Friends,

I have an issue in accessing of data nodes which is not bounded to any form field in PDF. I have some validation which i need the value of data node .  Note: its a single field that i want to access the value.

Could you please tell the SOM expression to access the Data node field  via  xfa.dataset.data. with example.

I referred Script basics documents but couldn't able to find relevant examples.


Thanks


Best regards

surender

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
676
3 REPLIES 3
Read only

Former Member
0 Likes
676

Hi Surender,

Whenever you need the SOM expression to access a particular field of a form, do the following:

1) Open the script editor where need to write the code to access the field.

2) Please make sure that curson is blinking in the editor.

3) Hover the mouse over the field of the form layout.

4) Press and hold CTRL or CTRL+SHIFT. This will make your mouse pointer icon looks like 'V', when you hover the mouse over the field as mentioned in the below point.

5) While holding the previous key combinations and mouse pointer as 'V', just click on the field.

6) You will get the corresponding absolute SOM or relative SOM expression for the field in your Script editor.

Please let me know if this helps or you need any more clarifications.

Thanks and Regards,

Arnab

Read only

0 Likes
676

Hi Arnab

I dont need the Value of the Form Field which is included in the PDF . i want to access the value of Field which is not in PDF for some validation. I have the field in Data view i want to access the value . i used $record.RTEXT.value but its not working .

Thanks

Surender

Read only

Former Member
0 Likes
677