Page 1 of 1

content control inside a table row

PostPosted: Wed Feb 27, 2013 1:29 pm
by fachhoch
I have a table with a row,this has content control.I use this row as template, if I want to add 5 rows , I make a copy of this row delete row at 0 and add the copy 5 times,in this case how can I replace the same content control in each row with different values ?
Please advice.

Re: content control inside a table row

PostPosted: Wed Feb 27, 2013 2:25 pm
by jason
Let the OpenDoPE repeat stuff do it all automatically for you (as documented on the OpenDoPE web site!!)

Wrap your table row in a repeat content control.

Then bind the items in the table cells.

This assumes your XML is suitably structured, so the repeated items are in a container eg

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  <items>
     <item>..</item>
     <item>..</item>
  </item>
 
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


Please do some reading before posting question after question. All your questions so far have already been answered before.

Re: content control inside a table row

PostPosted: Wed Feb 27, 2013 10:25 pm
by fachhoch
Hi Jason,
I am using the example ContentControlsXmlEdit to populate my content controls, in this no xml is created but call the method setNodeValue()

Code: Select all
      customXmlDataStorage.setNodeValueAtXPath("/adl/facIdentificationNumber", "MyfacIdentificationNumber",null);
      customXmlDataStorage.setNodeValueAtXPath("/adl/transmittalLetterDate", "MytransmittalLetterDate",null);
      customXmlDataStorage.setNodeValueAtXPath("/adl/granteeName", "MygranteeName",null);
      customXmlDataStorage.setNodeValueAtXPath("/adl/granteeAddress", "MygranteeAddress",null);
      customXmlDataStorage.setNodeValueAtXPath("/adl/formattedAuditNumber", "MyformattedAuditNumber",null);




in this case how can I set the repeat ?