cancel
Showing results for 
Search instead for 
Did you mean: 

Write HTML code in webdynpro

Former Member
0 Kudos
100

Hi All,

Can anyone tell me how two to write HTML code in

webdynpro application

to make myself clearer. this is what i want.

IWDTextView txt = (IWDTextView) view.createElement(IWDTextView.class, "txt" );

txt.setText("<hr>" + "Today Order");

But the above code is displaying literal string <hr> by the mean of &lt;HR&gt;

regards

Arun

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi all, is there a tutorial which actually teach us how to use the IFRAME with appropriate HTML code that is already design? if yes can i have the link? thx

Former Member
0 Kudos

Hi Arun,

The only way we can display formatted text in WebDynpro is through the IFrame UI element. If you have the code to be displayed at design time itself, create an html page out of the code and store it in src->mimes->components->yourcomponent folder. Now set the 'source' property of the IFrame as the name of the html page.

If you get the data to be displayed only at runtime, the following thread may help you in this regard :

Hope this helps,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi Nibu,

What I actually want to do is that- I have designed

a view having order details one below other on same screen.

What I want is to print the order detail page wise.

i.e Ist Orderdetail on first page , 2nd Order detail on 2nd page and so on.....that is I want a page break.

I got a code to provide a page break which is in javascript -


<script>

//<!--

document.write("hi");

document.write("<p style=\"color: blue; page-break-before: always\" >");

document.write("hiafter");

//-->

</script>

How 2 use this code in my webdynpro application.....or

is there any other mean to do so.

regards

Arun