D
Daniel
I'm developing a form where I need to calculate Date diferences (StartDate -
EndDate), at this time I have working the programming calculations but have
some problems getting/udating information from TextBoxes in a Repeting
Section.
My text boxes are: StartDate, Endate and Results, I also have a "Validate"
button that start all the calculations for date diferences. My problem is
that all works fine this works fine the first time, with the firts instance
field in the repeating section, but if I insert a new instance, then the
Result TexBox never get the results, this because the code always refers to
the first TexBox controls on the first instance of the repetaing section.
I'm using/referencing the TextBoxObjects as follows:
var Results =
XDocument.DOM.documentElement.selectSingleNode("my:Request/my:ContractProfile/my:Results");
var StartDate =
XDocument.DOM.documentElement.selectSingleNode("my:Request/my:ContractProfile/my:StartDate");
var EndDate =
XDocument.DOM.documentElement.selectSingleNode("my:Request/my:ContractProfile/my:EndDate");
Later Calculate the Differences, but Result.tetxt is always updated with the
firts instance in the repetaing section.
Results.text= GetDateDifferences(StartDate,EndDate);
Analyzing the code I can see that I'm woking with a reference to the
DatePickers and TexBox control, but I don't know why Is always refrencing the
first intance and what i need to do to developa code full-functional for all
posible instances in the repeating sections.
I will appreciate any ideas about how to resolve this.
Daniel
EndDate), at this time I have working the programming calculations but have
some problems getting/udating information from TextBoxes in a Repeting
Section.
My text boxes are: StartDate, Endate and Results, I also have a "Validate"
button that start all the calculations for date diferences. My problem is
that all works fine this works fine the first time, with the firts instance
field in the repeating section, but if I insert a new instance, then the
Result TexBox never get the results, this because the code always refers to
the first TexBox controls on the first instance of the repetaing section.
I'm using/referencing the TextBoxObjects as follows:
var Results =
XDocument.DOM.documentElement.selectSingleNode("my:Request/my:ContractProfile/my:Results");
var StartDate =
XDocument.DOM.documentElement.selectSingleNode("my:Request/my:ContractProfile/my:StartDate");
var EndDate =
XDocument.DOM.documentElement.selectSingleNode("my:Request/my:ContractProfile/my:EndDate");
Later Calculate the Differences, but Result.tetxt is always updated with the
firts instance in the repetaing section.
Results.text= GetDateDifferences(StartDate,EndDate);
Analyzing the code I can see that I'm woking with a reference to the
DatePickers and TexBox control, but I don't know why Is always refrencing the
first intance and what i need to do to developa code full-functional for all
posible instances in the repeating sections.
I will appreciate any ideas about how to resolve this.
Daniel