HTML Component on Portal Page Editor Messing up my HTML Tabl

Posted by awbranch on 25-Feb-2014 19:14

I want to use server side scripting to loop through and display some records. Add an HTML Component to my page and Edit the HTML, then click on the HTML Source Editor and enter the following:

<table>
{!#LOOP_BEGIN.R19508914#19921344}
<tr>
<td>{!R19508914.id}</td>
<td>{!R19508914.status#code}</td>
</tr>
{!#LOOP_END.R19508914}
</table>

When I select "Update" to close the HTML Source editor, it reformats my loop and breaks it, by moving the END_LOOP up next to the LOOP_BEGIN like this.

{!#LOOP_BEGIN.R19508914#19921344}{!#LOOP_END.R19508914}

{!R19508914.id} {!R19508914.status#code}

Happens in Chrome and Fire Fix. Attached are screenshots.

Step 1 I Enter the HTML

Step 2 - After Clicking "Update" in Step 1, this is what the Edit HTML Window looks like, you can see my HTML is screwed up:

Step 3: I go back and look at the HTML and the end loop has been moved to the top.

All Replies

Posted by cgontla1 on 26-Feb-2014 10:45

Hi awbranch,

We looked into it and investigating now.

We will let you know the answer soon.

Posted by awbranch on 26-Feb-2014 14:30

Placing it into a Script Component rather than a HTML Component seems to be the best solution.

Posted by Rajkumar Mateti on 07-Mar-2014 06:36

Hi awbranch,

we have an issue in this scenario, which will resolved in release 2.2

and here the sample html code to written in HTML component in 'Generic page" type

<h3>All Reviewers:</h3>

{!#LOOP_BEGIN.all#12214}

<table>

<tbody>

<tr>

<td>{!lastName}</td>

<td>{!firstName}</td>

</tr>

</tbody>

</table>

{!#LOOP_END.all}

Thanks,

Rajkumar

This thread is closed