Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cl_gui_html_viewer get data_table?

Former Member
0 Likes
855

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!

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
697

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

2 REPLIES 2
Read only

Former Member
0 Likes
697

I figured out my second question, was just a newbie issue. Any suggestions on how to get and check the stored load_data table?

Read only

Sandra_Rossi
Active Contributor
0 Likes
698

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