Interesting issue get my stumped!
using setvalue to set fields in repeating table from secondary data source, sharepoint list.
Currently testing and have button that sets the 7 required fields for each day.
Have count(preceding-sibling::my:DAYS1to7) + 1 to set the index of the rows
trying this SetValue command
concat("SetValue /xpath=/my:myFields/my:tsd/my:WEEKS/my:WEEK1/my:DAYS1to7/my:w1_personalLeave[../my:w1_day='", dayCount, "'] /value=", LEAVE_x0020_Hours[TSD_x0020_day = dayCount])
I am setting a field to view and the [../my:w1_day='", dayCount, "'] turns too [../my:w1_day='1'] consecuteivley, no problem
I have tested retireving details from the secondary data source
xdXDocument:GetDOM("LEAVE Data list")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:TTL_x0020_Time_x0020_Sheet_x0020[../d:TSD_x0020_day = 2]
No problem
issue is if I try and run
LEAVE_x0020_Hours[TSD_x0020_day = dayCount]
will not work. returns BLANK
Just to reiterate
THIS WORKS - LEAVE_x0020_Hours[TSD_x0020_day = 2]
THIS WORKS - dayCount
THIS WILL NOT - LEAVE_x0020_Hours[TSD_x0020_day = dayCount]
dont understand