quote:
Originally posted by madhuri
Following link has info to get the current row in repeating table, Hope you find it useful!
Thanks, but I have been through a lot of these threads and still can't seem to make it work. I will post specific code examples and hope that someone can tell me what I am doing wrong. I won't be able to do that until later.
I truly appreciate your help.
Posted later (6/17/2006)
After much trial and error (especially error) I got it to work. I am going to post exactly what I did.
I have a repeating table. I have a combo box in the table, and I wish a running sum (SumA) to be filled when the combo box value is changed. In my simple example, I want Amount to go into SumA.
The repeating table should look something like this:
Amount SumA SumB A or B?(dropdown)
2 2 0 A
3 0 3 B
I am working in VB.net.
I wrote a event handler OnAfterChange for the dropdown box. In this event handler is the following code:
Dim strAmt As String
strAmt = e.Site.selectSingleNode("../my:Amount").text
e.Site.selectSingleNode("../my:SumA").text = strAmt
I still need to convert to numbers and write code to zero out boxes if the drop-down is changed. I also need the code for the "B" choice. This code snip is the essence of the solution to my problem. The rest is doable.