Try
/my:HWForm/my:ApprovalGroup/my:PreApproval[last()]/my:PreApprovalName
--- S.Y.M. Wong-A-Ton
"gokou88" wrote:
[Quoted Text] > Hi S.Y.M. Wong-A-Ton, > Thanks for your reply, I got the script to return the row data (all fields). > Now how do I limit the value to just the first field of the last row? Here > is my script. > > var to = > getNodeValue("/my:HWForm/my:ApprovalGroup/my:PreApproval/my:PreApprovalName[last()]") > > /my:PreApproval is the repeating table > /my:PreApprovalName is the first field of two in the table > > "S.Y.M. Wong-A-Ton" wrote: > > > Try using the last() function in an XPath filter like: > > > > /my:group/my:row[last()] > > > > --- > > S.Y.M. Wong-A-Ton > > > > > > "gokou88" wrote: > > > > > Anybody have a code script to select the LAST node value of a repeating > > > table? I have code to select the FIRST, or all of the nodes. > > > > > > Thanks!!
|