on 03-18-2014 8:39 PM
Hello together,
I want to use the UI Element iFrame. I go to the WD Layout Register and click with the right mouse button on the tree component rootuielementcontainer. I click on insert an UI Element, but I don't find the UI Element iFRame.
We have the following components:
SAP_BASIS 711/SP12
SAP_ABA 711/SP12
Have you any idea ?
Thanks wolfgang
Hi Rama,
it is strange. The application WDR_TEST_UI_ELEMENTS runs correct. I can see the iframe and it's work.
But if i go to the layout, i don't find the symbol iframe. I have seven symbols under the point intergration. Instead the symbol iFrame I have another symbol OfficeControl.
Now i found the following link:
:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(
IFrame - Web Dynpro for ABAP - SAP Library
:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(:-(
Can I activate the symbol by customizing, or can I create the iframe by coding ??
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steffen,
Yes, you can add iFrame dynamically.
Check if you have the class CL_WD_IFRAME in your system,
You can achieve your requirement as below
Write the below code in WDDOMODIFYVIEW( ) of your view
IF first_time EQ abap_true.
DATA lo_root TYPE REF TO cl_wd_uielement_container.
DATA lo_iframe TYPE REF TO cl_wd_iframe.
DATA lo_flow_data TYPE REF TO cl_wd_flow_data.
cl_wd_iframe=>new_iframe(
EXPORTING
id = 'IFRAME1'
view = view
RECEIVING
control = lo_iframe
).
cl_wd_flow_data=>new_flow_data(
EXPORTING
* cell_design = E_CELL_DESIGN-PADLESS
element = lo_iframe
* v_gutter = E_V_GUTTER-NONE
RECEIVING
control = lo_flow_data
).
lo_iframe->set_source( 'www.google.com').
lo_iframe->set_layout_data( the_layout_data = lo_flow_data ).
lo_root ?= view->get_root_element( ).
lo_root->add_child(
EXPORTING
* index =
the_child = lo_iframe
).
ENDIF.
Hope this helps you.
Regards,
Rama
If you need the non-dynamic approach and already have the IFframe-UI-Element in an older application you can copy the view containing the iframe UI-Element to your new component and then copy/paste the ui-element from there to your own view.
I don't know if there is a standard-component that still contains the old iframe element, but if you have a client-component developed on an older release this should work...
regards,
Stefan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steffen,
iFrame UI element has been deprecated on NW EHP1 but its allowed to use with restrictions from NW EHP2,
Please refer the below link
IFrame - Web Dynpro for ABAP - SAP Library
As you are already on NW711, the ui element iFrame should be available in your system.
Just give a try once again.
Creating iframe UI element in webdynpro.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.