I am working with a repeating table (RT_A). This uses data from SharepointList B (SP_B). The data displayed in that repeating table is "augmented" with an Average calculation using filtered data (My_Number) from SharePointTable C (SP_C). I achieve that by...
- Adding a column to RT_A and inserting a calculated value field
- In Calculated Value Properties /General /Data source pressing function button
- In formula field choosing Insert Field/group, selecting SP_C as data source and highlighting My_Number from its data fields
- Press Filter Data and then Add to Specify Filter Conditions
- Here I choose on the left SP_C_Criteria1 (from SP_C), middle "is equal to", and on the right I "select a field or group"/ choose SP_B and find under data my matching SP_B_Criteria1. OK = back to Specify Filter Conditions
- Now I change in the left field to "The expression" and I get a translation :-) saying something like: ../:SP_C_Criteria1 = xdXDocument:GetDom([...]/d:SharePointListItem_RW/d:SP_B_Criteria1
- now I replace xdXDocument:GetDom([...]/d:SharePointListItem_RW with current(), so the expression looks like this: ../d:SP_C_Criteria1 = current()/d:SP_B_Criteria1
- I am adding another Filter as above and do the same for a second criteria (Criteria2)
- OKOKOK and eventually I am back at "Insert Formula" and build an avg() function around it - so I see this:
avg(My_Number[SP_C_Criteria1 = current()/SP_B_Criteria1 and SP_C_Criteria2 = current()/SP_B_Criteria2])
- or the same as XPath Edit :
xdMath:Avg(xdXDocument:GetDOM("SharePointTable C")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:My_Number[../d:SP_C_Criteria1 = current()/d:SP_B_Criteria1 and ../d:SP_C_Criteria2 = current()/d:SP_B_Criteria2])
That works good in preview ... (and took me "a day" to figure out :-) Actually it also works fine on the live sharepoint site as a web browser form
Here is my issue: when submitting my form, I get an error warning. Design Checker highlights that "Control binding is not supported", pointing me to that calculated value and noting that "Binding a non-repeating control to a repeating field or group is not supported in Web browser forms. To fix this problem, remove the control or replace it with a repeating control, such as repeating section or table"
Again, if I publish anyway, it works fine as a web form - so what am I doing wrong (am I?) or what can I do to get rid of that error message?