‎2012 Jul 03 4:53 PM
Hey all,
Relatively new abaper here, so please excuse any noob-ness.
I have a cl_gui_html_viewer that I populate with my own html, load_data it into the viewer, then show_url. All that works fine.
However, sometimes I want to to load a new table of html with load_data but first, I want to compare the new html to the currently stored html, if any. If its different, I then want to refresh the viewer with the new html.
My questions are:
How can I get the data_table of html from the cl_gui_html_viewer and then check it against my new table before I load_data it.
For some reason, refresh is not updating new html, do I have to do something else? Whatever I do, the cl_gui_html_viewer always displays the first html_table ive loaded into it...
Thanks again for excusing my newbie questions, and thanks in advance for any help!
‎2012 Jul 03 9:11 PM
Hi,
I don't think the HTML content is retained at the SAP side. I didn't see any method neither in the HTML viewer class control, nor in the OCX control (saphtml.ocx), to retrieve it.
So, you have probably no other choice than keeping in a global variable the last HTML content sent, so that you can compare it with the new HTML content.
Sandra
‎2012 Jul 03 5:33 PM
I figured out my second question, was just a newbie issue. Any suggestions on how to get and check the stored load_data table?
‎2012 Jul 03 9:11 PM
Hi,
I don't think the HTML content is retained at the SAP side. I didn't see any method neither in the HTML viewer class control, nor in the OCX control (saphtml.ocx), to retrieve it.
So, you have probably no other choice than keeping in a global variable the last HTML content sent, so that you can compare it with the new HTML content.
Sandra