Question
RABO BANK
NL
Last activity: 18 Apr 2016 10:19 EDT
Data display issue_HTML
Hi All,
Please help me on the following issue.
1. Saving data of PageList with "/n"
Result : A
B
C
2.Structure of storage in external DB
Result : A
B
C
3. When i fetch this record, Display in the clipboard
Result : A
B
C
4. When i refer from clipboard to section by HTML code
Result : A B C
HTML Code :
<pega:forEach name="PageList.pxResults">
<tr>
<td style='text-align:left;'><pega:reference name="$THIS.Property1" mode="normal"></pega:reference></td>
<td style='text-align:left;'><pega:reference name="$THIS.Property2" mode="normal"></pega:reference></td>
<td style='text-align:left;'><pega:reference name="$THIS.Property3" mode="normal"></pega:reference></td>
</tr>
</pega:forEach>
Please help me in getting vertical display instead horizontal.
Thanks
Suresh Chella
Message was edited by: Marissa Rogers - Added Category
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Hi,
This can be reason for above scenario :
\n is a new line feed within the context of plain text, while <br /> is line break within the context of HTML.
HTML can interpret \n when using preformatted blocks (e.g. <pre>), but it does not by default. So in your use case you need to use a <pre> tag to retain new line feed.
RABO BANK
NL
HI Prudhvi,
Thanks for the reply.
Where should i use <pre> tag.
FYI- "$THIS.Property1" contains " A B C "
Hi Suresh,
You can try using it before <tr> tag like <pre><tr>.....</tr></pre>
Note: if property data contains new line feeds then only it display.
RABO BANK
NL
Hi Pridhvi,
Tried but not working
JPMC
IN
Hi Suresh,
I have a question that the section where you want to display the property value from clipboard, is that section a non-auto generated ? and you wrote the above HTML manually? If so your code itself you have mentioned it as to display in one row as you have used table and one row and three columns.
Please change that to different rows or change it to UL and LIs.
<pega:forEach name="PageList.pxResults">
<tr>
<td style='text-align:left;'><pega:reference name="$THIS.Property1" mode="normal"></pega:reference></td>
</tr>
<tr>
<td style='text-align:left;'><pega:reference name="$THIS.Property2" mode="normal"></pega:reference></td>
</tr>
<tr>
<td style='text-align:left;'><pega:reference name="$THIS.Property3" mode="normal"></pega:reference></td>
</tr>
</pega:forEach>
or use
<pega:forEach name="PageList.pxResults">
<UL>
<LI style='text-align:left;'><pega:reference name="$THIS.Property1" mode="normal"></pega:reference></LI>
<LI style='text-align:left;'><pega:reference name="$THIS.Property2" mode="normal"></pega:reference></LI>
<LI style='text-align:left;'><pega:reference name="$THIS.Property3" mode="normal"></pega:reference></td>
</UL>
Hi Suresh,
I have a question that the section where you want to display the property value from clipboard, is that section a non-auto generated ? and you wrote the above HTML manually? If so your code itself you have mentioned it as to display in one row as you have used table and one row and three columns.
Please change that to different rows or change it to UL and LIs.
<pega:forEach name="PageList.pxResults">
<tr>
<td style='text-align:left;'><pega:reference name="$THIS.Property1" mode="normal"></pega:reference></td>
</tr>
<tr>
<td style='text-align:left;'><pega:reference name="$THIS.Property2" mode="normal"></pega:reference></td>
</tr>
<tr>
<td style='text-align:left;'><pega:reference name="$THIS.Property3" mode="normal"></pega:reference></td>
</tr>
</pega:forEach>
or use
<pega:forEach name="PageList.pxResults">
<UL>
<LI style='text-align:left;'><pega:reference name="$THIS.Property1" mode="normal"></pega:reference></LI>
<LI style='text-align:left;'><pega:reference name="$THIS.Property2" mode="normal"></pega:reference></LI>
<LI style='text-align:left;'><pega:reference name="$THIS.Property3" mode="normal"></pega:reference></td>
</UL>
</pega:forEach>
RABO BANK
NL
Hi Ashish,
FYI-Each property contains ABC.
Thanks
Suresh Chella
Updated: 1 Apr 2016 2:40 EDT
JPMC
IN
Hi Suresh,
So if i understand correctly now, while entering the date for property1 you have used something like a </n>b </n>c </n>
how about using it like a <br>b <br>c <br>
RABO BANK
NL
Can you suggest me , Where can i use this tag from Clipboard to Section , we have this vertical structure already in clipboard.
Each property has
Property1:
A
B
C
Property2:
D
E
F
Property3:
G
H
Thanks
Suresh Chella
JPMC
IN
Hi Suresh,
to get that in clipboard, how do u enter the data ?
Do you enter the data like " a </n>b </n>c </n>" , who enter data?
RABO BANK
NL
Hi Ashish ,
I have given steps for how data saving and fetching, request you to please refer original post.
Thanks
Suresh Chella