on 09-26-2013 11:17 AM
Hi experts,
I just tried out the HTMLIsland/HTMLContainer Developer Guideline and did the exercise.
But you cannot point to a html file (mime or url)? You can only define some little HTML parts with <div> tags and some values ( as in the exercise ).
I was expecting a possibility for loading up a html page and include some javascript scripts.
This means I cannot combine a Webdynpro application with a HTML application ( html, javascript and API usage ) and pass along some parameters.
I was thinking about Maps, Charts and other stuff that could've been integrated in webdynpro applications.
Does anyone know if it is possible, or an alternative without abandoning Webdynpro ABAP?
Regards,
Wouter
I am perfectly able to incorporate jquery using
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/61/e49b7e9dac427aa3b4d3f554c9692f/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Peeters,
Have you tried adding a SCRIPT inside a HTML island UI element? You can provide a MIME object name there. and You can add events to an HTML island which you could use to trigger a method in Webdynpro.
Regards,
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same problem - but fortunately it turns out that while the HTMLIsland properties won't let you directly enter in more than a few characters, it has no such limitation on the back end.
I ended up uploading the html I wanted into my WDA application as a MIME file.
On the code side, I read in the mime file and convert to a string.
Then:
DATA z_island TYPE REF TO cl_wd_html_island.
z_island ?= view->get_element( island_name ).
z_island->set_static_html( value = z_html_string ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You could simple use an iFrame UI element and pass the URL to the iFrame or you can upload a html with JS in mime and use it as a source for iFrame UI element.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Your original query made me confused! The communication between Web Dynpro and HTML Element happens via JS calls. Please check this blog and the standard component WDR_TEST_HTML_ELEMENT has Test cases how to use.
Hope this helps u.,
Regards,
Kiran
I couldn't test the component, but I had to activate it in SICF first ... .
There I found an HTMLWriter example:
But I find it way too much trouble ... I would want to be able to point to a simple html file instead.
If I would have a more complex HTML file I would have to program every element ... seems like too much effort, no?
Example:
l_html_fragment->set_html( cl_wd_html_writer=>new_writer(
)->start_element( `p`
)->add_text( `Hello `
)->start_element( `b`
)->add_text( `World!`
)->end_element( `b`
)->end_element( `p`
)->get_html( ) ).
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.