Home ABAP Tutorials Control Frameworks HTML Viewer control
HTML Viewer control PDF Print E-mail
User Rating: / 2
PoorBest 
ABAP Tutorials - Programming with Control Frameworks
Written by admin   
Monday, 01 September 2008 16:22

HTML Viewer control is another control that has the capability to render a HTML code in a SAP screen. This control acts just like an web browser.

The class that provides this functionality is CL_GUI_HTML_VIEWER. The constructor of this class requires the object reference of a custom container like any other control. Some important methods of this class are:

  • SHOW_URL - Shows a URL. It can be an absolute URL like http://www.abaplearning.com or address of a local file like C:\test.html
  • LOAD_DATA - Load a HTML code from internal table.
  • DO_REFRESH - Force a refresh of the web page. This acts just like a reload in web browser.

There are many other useful functions that you can explore.

This HTML viewer control class is capable of executing JAVA script functions also.That is evident from the fact that it can display http://www.abaplearning.com !

So this gives you an option to code some dynamic pages in SAP controls. One example could be that you can display a Google or Yahoo map in SAP screens. To explore more about how to do this visit this SDN Blog.

See also an example program of HTML Viewer control.

Comments
Add New Search
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Monday, 01 September 2008 16:38 )
 

Advertisement

 

Google Search

Advertisement