C
claudia
Hi all,
I want to capture the date value in repeating section thru jscript
functionality.
For that I used the following code
This code is for non-repeatingcontrol
button:OnSubmitRequest(eventobj)
{
var datval="";
var orderdate=XDocument.DOM.selectSingleNode("//xpath)
datval=orderdate.text;
XDocument.UI.Alert(datval);
}
It is working fine:
In same way I want to capture the Date value in repeating section
for i used the following code
var orderdate=XDocument.DOM.selectNodes("//xpath");
for(i=0;i<=orderdate.length;i++)
{
XDocument.UI.Alert(orderdate(i).text);
}
But it displays the following errror:
"Object Required" here xpath is correct. Could you please help on this
I want to capture the date value in repeating section thru jscript
functionality.
For that I used the following code
This code is for non-repeatingcontrol
button:OnSubmitRequest(eventobj)
{
var datval="";
var orderdate=XDocument.DOM.selectSingleNode("//xpath)
datval=orderdate.text;
XDocument.UI.Alert(datval);
}
It is working fine:
In same way I want to capture the Date value in repeating section
for i used the following code
var orderdate=XDocument.DOM.selectNodes("//xpath");
for(i=0;i<=orderdate.length;i++)
{
XDocument.UI.Alert(orderdate(i).text);
}
But it displays the following errror:
"Object Required" here xpath is correct. Could you please help on this