Hello,
I'm using a Repeating Table. The below vbscript code works great on the first item. When I select a date it fills in the week field with the week number. This only works on the first record. If I click insert record, the code does not work on that record and on. How do I modify the code so it works in my repeating table?
If eventObj.Operation = "Insert" Then
Dim objDate
Dim objWeek
Set objDate = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tblTasks/@dteDate")
Set objWeek = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tblTasks/@txtWeek")
objWeek.text = DatePart("ww", objDate.text)
End If