cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Hi All,

rr-3
7-Bedrock

Hi All,

Subject - How to get a nodeValue using APP

Background- I am using ufe elements which contains DIVISION REFRENCE,now I want to fetch the value of this ufe elements which actually contains the value of division refrence.

//APP source edit

var currentNode = formatting.currentXMLNode;

application.alert(currentNode.nodeValue);

But it is throwing null value

1 REPLY 1
SimonTaylor
13-Aquamarine
(To:rr-3)

Hi Romesh

What exactly are you looking for?

The documentation says this about the Node object:

"The attributes nodeName , nodeValue and attributes are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific nodeType (e.g., nodeValue for an Element or attributes for a Comment ), this returns null ."

In your example, currentNode will be an Element, so you will probably need to find the appropriate child of currentNode and get the nodeValue of that.

Hope this helps

Simon

Announcements

Top Tags