- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Here is a sample code that might help you.
var CustomerInformationIndex = this.boundItem(xfa.event.change);
xfa.resolveNode("dataroot.P1.Cust_Number").rawValue = xfa.event.change;
var CustomerNumber = xfa.event.change;
Cust_Name.rawValue = $record.CustomerInformation.CustomerName.value;
var list = xfa.resolveNodes('$record.CustomerInformation.[At(Lower(CustomerID),Lower("'+xfa.event. newText+'")) > 0]');
for (var i = 0; i < list.length; i++)
{
var CustomerInformation= list.item(i);
Cust_Name.rawValue = (CustomerInformation.CustomerName.value);
}
Here the root node is CustomerInformation. Basing upon the node I am updating basing the CustomerName. Here a list is used to show and contain the information.
Thanks.
Bibhu.
Views
Replies
Total Likes