I followed this post to successfully populate a field (NameField) with the Display Name from a drop-down list that populates another field (ValueField). The drop-down list values and display names are retrieved from a web service (getFieldValuesAndNames). Both these fields (ValueField and DisplayField) are columns in a repeating table. The default value has the checkbox "Refresh value when formula is recalculated" checked.
The advanced XPath for the default value of NameField looks like this:
xdXDocument:GetDOM("getFieldValuesAndNames")/dfs:myFields/dfs:dataFields/ns2:getFieldValuesAndNamesResponse/ns2:getFieldValuesAndNamesResult/q1:Values/q1:Names[../q1:Value= current()/../my:ValueField]
My problem is that when I create another view (for instance, a read-only view) the value for NameField appears blank. The value for the ValueField shows up correctly. Any idea on how to display the value in a different view?