I have a problem using multi_check control within repeating control ('Repeat Only' control).
No checkboxes are shown up when the control is within a repeating control.
If I moved the muliti_check control from the repeating control to different place, It worked well.
My setting
[Field Details]
Control: Multiple - checkboxes (Select Many)
Options are: dynamic
No. of Columns: 2
[Page Display Bindings]
Data format: XML Structure
Field value: /mvc:eForm/mvc :D ata/mvc:formData/mvc:AdHocPeerReviewRejectionReasonsHistory
Data Constraints
Checkbox Options Location: mvc:eForm/mvc :D ata/PeerReviewRejetionReasons/record
Checkbox Options Data Value: ReaID
Checkbox Options Display Text: Description
Q1) Can I use the control in repeating control?
Q2) If so, is there anything I need to except the data-bidning.
No checkboxes are shown up when the control is within a repeating control.
If I moved the muliti_check control from the repeating control to different place, It worked well.
My setting
[Field Details]
Control: Multiple - checkboxes (Select Many)
Options are: dynamic
No. of Columns: 2
[Page Display Bindings]
Data format: XML Structure
Field value: /mvc:eForm/mvc :D ata/mvc:formData/mvc:AdHocPeerReviewRejectionReasonsHistory
Data Constraints
Checkbox Options Location: mvc:eForm/mvc :D ata/PeerReviewRejetionReasons/record
Checkbox Options Data Value: ReaID
Checkbox Options Display Text: Description
Q1) Can I use the control in repeating control?
Q2) If so, is there anything I need to except the data-bidning.
RE: Multiple - checkboxes (Select Many) in a repeating control
I changed the 'Checkbox Options Location' xpath
from
mvc:eForm/mvc :D ata/PeerReviewRejetionReasons/record
to
/mvc:eForm/mvc :D ata/PeerReviewRejetionReasons/record
RE: Multiple - checkboxes (Select Many) in a repeating control
I'm glad you managed to get this resolved.
When you use a repeating control this changes the context point for any fields contained within it. Any relative XPaths (ie not starting with a /) will be evaluated from this context point.
In most cases this is what you will want so that you are referencing the particular data value within the current repeat entry.
If you need to access data outside of this context (as in your case) then you need to make sure your XPath is absolute (ie starts with a /). It will then ignore the context and always evaluate the XPath from the top of the document.
Regards,
Gerard