cancel
Showing results for 
Search instead for 
Did you mean: 

Difference on get node

Former Member
0 Kudos
64

Hi all,

What's the difference among the two ways to get a node?

1 -

wdContext.nodeRequest_EmployeeRegisterViDocument_registerEmployee()

2 -

wdContext.currentRequest_EmployeeRegisterViDocument_registerEmployee()

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

wdContext.nodeRequest_EmployeeRegisterViDocument_registerEmployee() refers to the complete node.

A node can have n number of elements depending upon the cardinality of the node.

wdContext.currentRequest_EmployeeRegisterViDocument_registerEmployee()

refers to each such element inside the node.

Regards,

Murtuza

Former Member
0 Kudos

Thanks Murtuza

former_member185029
Active Contributor
0 Kudos

Hi,

wdContext.nodeRequest_EmployeeRegisterViDocument_registerEmployee() refers to the entire node elements.

wdContext.currentRequest_EmployeeRegisterViDocument_registerEmployee() refers to the current node element.

To give you an example, suppose your node has 2 attributes, Name and Address.

Now you can have multiple set of Name and Address attrbutes stored in that node.

Suppose if this node is bind to a table UI and your cursor is pointing to one of the values in the node, then you will use currentNode object of that node.

Ashutosh

Former Member
0 Kudos

Hi Ashutosh,

Thanks by response. Now i understand the difference among them.