I am trying to get a Total Line (NOW_ETC_HRS_USER_INPUT_TOTAL) from a Repeating table and update one row (NOW_ETC_HRS) that has Summary information for the same Control Account record on an Access database table.
Below is the line that updates the NOW_ETC_HRS field but also updates every row in the table...
<xsf:calculatedField target="/dfs:myFields/dfs:dataFields/d:LaborSummary/@NOW_ETC_HRS" expression="../../../my:FormData/my:NOW_ETC_HRS_USER_INPUT_TOTAL[../../my:DetailId = ../../dfs:dataFields/d:LaborSummary/@AUTONUMBER]" refresh="onChange"></xsf:calculatedField>
I have tried the following filters...
../../my:DetailId - used to store the AUTONUMBER from the row to switch views.
Looks like this - "/dfs:myFields/dfs:dataFields/d:LaborSummary[../../my:DetailId]/@NOW_ETC_HRS"
or
../../dfs:dataFields/d:LaborSummary/@AUTONUMBER - contains the row number.
Looks like this - "/dfs:myFields/dfs:dataFields/d:LaborSummary[../../dfs:dataFields/d:LaborSummary/@AUTONUMBER]/@NOW_ETC_HRS"
In my test, I am trying to update row number 2 which works when I hard code the number but I will need to update any number of rows in production