cancel
Showing results for 
Search instead for 
Did you mean: 

Show dynamically created HTML page from WD4A

Former Member
0 Kudos

Hi all,

I want to display some invoice data for a customer from within a WD4A application. Therefore I want to fetch the necessary data from SAP tables and show it in a nice format (HTML and CSS code) in a popup winow. I dont need any buttons or other actions in this popup, I just want to display the raw data to an invoice-like format.

Any ideas how I can do that?

Best regards and thanks in advance, Matthias

Accepted Solutions (1)

Accepted Solutions (1)

mohammed_anzys
Contributor
0 Kudos

Hi

You can dynamically create the UI elements , using the UI element classes and also you could embedd html pages using IFRAME.Pick the correct options.

Thanks

Anzy

Answers (3)

Answers (3)

Former Member
0 Kudos

though IFame is obselete or going to be obselete you could create a BSP

which creates the HTML and add the URL of this BSP to the IFRAME.

I guess using BSP will ease the HTML creation process.

Cheers,

Sascha

mohammed_anzys
Contributor
0 Kudos

Hi,

Dynamic rendering of the UI elements will be ok.

Anzy

@Sascha , What will replace the IFRAME functionality?...Any updates on that.

and with every WD relese , they say that IFRAME is going to be obsele in the next version...:-(

Former Member
0 Kudos

yeah thats true ... I just wait for the day my reporting app does not compile anymore cause no Iframe exists

mohammed_anzys
Contributor
0 Kudos

...Even some of my application will dump :-(....

mohammed_anzys
Contributor
0 Kudos

cl_wd_uielement_container,

cl_wd_input_field,

cl_wd_input_field,

cl_wd_dropdown_by_key,

cl_wd_radiobutton_group_by_key,

cl_wd_label,

cl_wd_label,

cl_wd_text_view,

cl_wd_text_view,

cl_wd_button,

cl_wd_button,

cl_wd_horizontal_gutter,

Hi these are the available classes which can be used to create dynamic UI elements.

Thanks

Anzy

Former Member
0 Kudos

Hi,

Each UI Element has a corresponding class, for eg input field has cl_wd_input_field and so on. You can create references to these UI elements and do your context binding etc at runtime. If you have your context statically defined, you can use it to bind to your elements. Or the context itself can be defined at runtime.

Create an empty view and call it as a popup view when you want to display these details. In the modifyview method of that view, add the UI elements you wish to add. This should be done in modifyview method only.

Regards

Nithya