Salesforce

How Do I Insert Repeatable Data into a Table Format in a Predefined HTML Template? (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Insert Repeatable Data into a Table Format in a Predefined HTML Template? (Magic xpa 2.x)

In HTML, the basic format of a table is:

<table>

<tr >

<td> ..Header stuff ........ </td>

</tr>

<tr >

<td> ..Detail line stuff ... </td>

</tr>

</table>

The trick to converting the table into a Merge template is to have only two rows: one for the header, and one for the MGREPEAT area.

The easiest way to do this is to edit your HTML in whatever tool you are using (Dreamweaver, Excel, Word) and delete all but those two rows.

Then, using a text editor (or the source-code editor in Dreamweaver), surround the last table row with <!$MGREPEAT> and <!$MGENDREPEAT>. So you will get:

<table>

<tr >

<td> ..Header stuff ........ </td>

</tr>

<!$MGREPEAT>

<tr >

<td> ..Detail line stuff ... </td>

</tr>

<!$MGENDREPEAT>

</table>

See also

The Online and Rich Client Samples projects (program MG09 and RMG09)

Reference
Attachment 
Attachment