Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

absolut som expressions not working

AEM_USER1
Level 3
Level 3

@workflowuser does anybody know how to turn on the absolut som expressions. right now if i click on CTRL-SHIFT it gives me the som expression without the "xfa.resolveNode". i used to get it before. maybe there is some kind of setting?

 

thank you in advance

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10

If you're using individual name for each subform and field within the forms hierachry, there is no need to use the resolveNode() method, because you can address the nodes directly. The script editor pays attention of this and automatically decides, if it is need or not.

View solution in original post

6 Replies
AEM_USER1
Level 3
Level 3
@GirishBedekar are you getting the xfa.resolveNode...... part? I am not. that is the question. is there any settings because i only get the part starting the form.subform.... etc
radzmar
Level 10
Level 10

Do you face any problem with the SOM expression you get? Since the resolveNode() method is quite slow under circumstances it's the best to use the possibly shortest relative SOM expression. xfa.resolveNode() is quite the oppsite, since it start's at the very first note within the XFA tree to find the desired node. I suggest to avoid the usage of resolveNode() or resolveNodes() it possible.

 

https://blogs.adobe.com/formfeed/2008/12/object_expressions_in_xfa.html

AEM_USER1
Level 3
Level 3
thank you for the tip. however it doesnt explain why I am not getting the resolveNode with CTRL-SHIFT
radzmar
Correct answer by
Level 10
Level 10

If you're using individual name for each subform and field within the forms hierachry, there is no need to use the resolveNode() method, because you can address the nodes directly. The script editor pays attention of this and automatically decides, if it is need or not.

View solution in original post

AEM_USER1
Level 3
Level 3
that was it. i made a quick test and created two subform and did not named them. then added a text field and voila!! it worked. thank you very much