How to display a HTML Page in Webdynpro (without IFrame)?
Hi everyone,
maybe this one is really simple. I have a RFC returning the URL to a HTML-Page in the backend. Which of the standard UI-Elements should I use to display that page in my Webdynpro?
My first guess was to use the IFrame. However, according to different sources this element is deprecated and buggy. So I'm hesitating.
Are there any other possibilities? Or is it ok to use IFrame nevertheless?
Many thanks,
Xiaopeng
Message was edited by: Xiaopeng Tan
hi Ashutosh,
I took a look at the help document. It states that "_self" is no longer supported. And I should use exit plugs instead and specify the URL there.
But even that won't serve the purpose. I have other UI-elements (fields, tables) on the same screen where I want the page being embedded next to them as co-component. Using _SELF and clicking on the link would would remove all other components.
Similar Messages
-
How to display static HTML pages in Oracle Forms 6i
I want to display static HTML page in oracle Forms ? Can any body help please ? Its very urgent. Many thanks in advance.
Suresh,
there exist a Java Bean in teh Forms 6i demos that shows a static HTMl example. Note that the HTML that could be shown is somewhat basic, but it will give you an impression how it can work. The demos are at otn.oracle.com/products/forms --> samples --> 6i demos
Frank -
How to display the HTML pages in RRC/RQM dashboard using OpenSocial gadget
Hi,
I have a requirement as below:
1. I have couple of HTML pages which are hosted in the sharepoint site and I would like to display the HTML pages
2. I would like to have an OpenSocial gadget in the RRC/RQM dashboard that will display the HTML pages which are hosted in my sharepoint site.
Could you please suggest the best approach to create an OpenSocial gadget in the IBM's RRC/RQM dashboard whcih will display html contents of another URL ?
Thanks.
Knowledge is power.Hi Manoj,
As I understand, you would like to display SharePoint page in another platform.
Since the you are involving third party platform, you might still need to contact their support engineer about how to render other pages.
From SharePoint side, by default, SharePoint won't let end user to display site page to other platform, you could add "<WebPartPages:AllowFraming runat="server"/>" in master page or single page layout. So that SharePoint ASP.Net
page could be displayed on other platform.
Here I'm talking about ASP.Net page, since HTML page in SharePoint cannot be displayed in browser as I tested, it will be downloaded directly. So I'd suggest you use ASP.Net page as workaround.
https://social.msdn.microsoft.com/Forums/office/en-US/c8755a6b-f33a-43ed-97d9-8f03c336aa1d/how-to-display-sharepoint-url-in-iframe-in-aspnet-page?forum=sharepointdevelopment
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
How to display a HTML page using ABAP program.
Hi all,
I know that this is easy and possible too but I haven't worked on this kind yet. I need to display a screen/ABAP program like TCODE PPMDT, where an HTML page is to be displayed and on the click of the HTML links provided, I need to navigate to someother transaction codes.
Cheers,
SamHi,
See this sample code
REPORT ZTESTHTML .
DATA: ok_code LIKE sy-ucomm,
myurl(132).
data: custom_container type ref to cl_gui_custom_container,
myhtml type ref to CL_GUI_HTML_VIEWER,
repid like sy-repid.
DATA events TYPE cntl_simple_events.
DATA wa_events TYPE cntl_simple_event.
CLASS lcl_event_receiver DEFINITION
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
CLASS-METHODS NC_Handler
FOR EVENT NAVIGATE_COMPLETE OF CL_GUI_HTML_VIEWER
IMPORTING URL.
ENDCLASS.
CLASS lcl_event_receiver IMPLEMENTATION
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD NC_Handler.
myurl = URL.
ENDMETHOD.
ENDCLASS.
start-of-selection.
set screen 100.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
CALL METHOD myhtml->go_back
EXCEPTIONS cntl_error = 1.
if sy-subrc ne 0.
endif.
WHEN 'FORW'.
CALL METHOD myhtml->go_forward
EXCEPTIONS cntl_error = 1.
if sy-subrc ne 0.
endif.
WHEN 'STOP'.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'REFR'.
CALL METHOD myhtml->SHOW_URL
EXPORTING
URL = myurl
IN_PLACE = 'X'
FRAME = ''
EXCEPTIONS
CNTL_ERROR = 1
CNHT_ERROR_NOT_ALLOWED = 2
CNHT_ERROR_PARAMETER = 3
DP_ERROR_GENERAL = 4.
WHEN 'OTHERS'.
CALL METHOD CL_GUI_CFW=>DISPATCH.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MENU'.
if myhtml is initial.
CREATE OBJECT custom_container
EXPORTING
CONTAINER_NAME = 'CONTAINER1'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5.
CREATE OBJECT myhtml
EXPORTING
PARENT = custom_container
EXCEPTIONS
CNTL_ERROR = 1
CNTL_INSTALL_ERROR = 2
DP_INSTALL_ERROR = 3
DP_ERROR = 4.
wa_events-eventid = CL_GUI_HTML_VIEWER=>M_ID_NAVIGATE_COMPLETE .
wa_events-appl_event = 'X'.
APPEND wa_events TO events.
CALL METHOD myhtml->set_registered_events( events = events ).
SET HANDLER lcl_event_receiver=>NC_Handler FOR myhtml.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS cntl_system_error = 1
cntl_error = 2.
endif.
ENDMODULE. " STATUS_0100 OUTPUT
Svetlin -
Applet:how to display a html-page generated by servlet?
hi everybody,
I have an applet which posts data do a servlet and receives a response from the servlet (html-code). can anybody please tell me if there is a possibility to display this received html-page?
(I HAVE to use a post-request to the servler due to a lot of data to send...)
all my applet-servlet-communication is within a session with a jsessionid.
does anybody have a hint for me?
thanks a lot in advance,
frankOne possibility is to have the servlet create a new .html file on the server and output the HTML code to that file. Then the servlet can pass the name of the file back to the applet, and the applet can useshowDocument(new URL(yourUrlHere), "_blank"); to display the page.
Just a thought. Good luck!
- Sheepy -
How to create a HTML page like iView, thanks in advance!
How to create a HTML page like iView, thanks in advance!
I'm a newcomer, would you please tell me how to create a HTML page in WebDynpro ? In fact, i want create one welcome page which use html format and include some javascript.
thanks again.jakinapallykrishna , thank you very much for you reply.
The pdf file is a simple application, but i want know how create a view in HTML format (<HTML>... </HTML>), maybe use HTMLB control, i don't sure it.
In fact, I need create a view in portal, some pictures in it, once mouse over one picture, it need change another picture replace old one. I don't know how to do it, just know it can be handled in HTML page. So, i need help.
Thanks. -
How can I display the HTML page from servlet which is called by an applet
How can I display the HTML page from servlet which is called by an
applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
I am calling my struts action class from the applet. I want to show the response in the same browser.
Code samples will be appreciated.hi
I got one way for this .
call a javascript in showDocument() to submit the form -
How to extract image from oracle database and display at html page
Could you help me how to make the image to display. i manage to extract the data but the data is in Blob so i need to convert it so make it display at html page.
Thanks for ur reply Mr.Rajasekhar
I tried as u said,
i tried without converting to sql date ,but still i din't get any results
java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
java.util.Date fromDate=dateFormat.parse(startDate);
java.util.Date tillDate=dateFormat.parse(endDate);
String query1="select MTName,Date,MTLineCount from linecountdetails where mtname='"+MTName+"' and Date >='"+fromDate+"' and Date <='"+tillDate+"' " ;
System.out.println(query1);
//From main method
databaseConnection("prasu","1/12/2005","31/12/2005");I got the output as
---------- java ----------
select MTName,Date,MTLineCount from linecountdetails where mtname='prasu' and Date >='Thu Dec 01 00:00:00 GMT+05:30 2005' and Date <='Sat Dec 31 00:00:00 GMT+05:30 2005'
java.lang.NullPointerException
null
null
java.lang.NullPointerException
Output completed (4 sec consumed) - Normal TerminationThanks
Prasanna.B -
How to get the HTML page size displayed in JEditorPane
Hi All,
I'm using a JEditorPane object in order to view/display an HTML page. The nature fo my program is that it does not know the size of the page in advance, but only on runtime. I'd like to get the size of the HTML page in order to determine the frame size according to the size of the HTML page.
Is there a way to get the size of the HTML page from the JEditorPane?
Thanks.after displaying the page in your editor pane you can get the diamension for the page by calling
JComponent class method getSize();
actually your question is not so clear
use the JScroll pane then you don't need to worry about the size of the page. -
How to display a IE page in a view ,not popup ?
Hi! All
Question 1st:
I have create a html page by webdynpro,
I want display this page in a view ,
but when run this code,
the IE page popup ,
can you help me set the IE page in current view ?
public void wdDoInit()
//@@begin wdDoInit()
String text = "<html><head></head><body>this is my test</body><html>";
try
IWDCachedWebResource resource = WDWebResource.getWebResource
text.getBytes("UTF-8"), WDWebResourceType.UNKNOWN
resource.setResourceName("test.html");
IWDWindow window =
wdComponentAPI.getWindowManage().createNonModalExternalWindow(
resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()),
resource.getResourceName());
window.show();
catch(Exception ex)
wdComponentAPI.getMessageManager().reportException( new WDNonFatalException(ex), false );
Question 2nd:
I have create a value context attribute under context.
it's name is "mywindow"
it's type is "com.sap.tc.webdynpro.services.session.api.IWDWindow"
Do you know how to display "mywindow" in a view ?
I try to put mywindow in a InputField or a IFrame,
but all failed !
Thanks!Hi,
This is the code to open up a window
IWDWindow win = wdComponentAPI.getWindowManager().createModalWindow(wdThis.wdGetAPI().getComponentInfo().findInWindows(<window_name>));
wdContext.currentContextElement().set<window_context>(win);
win.setWindowPosition(WDWindowPos.CENTER);
win.setWindowSize(250,150);
win.setTitle("New Window");
win.show();
This will open up as a pop-up. If you want to open a html page on the same window then put an iframe in your view and set its source property correspondingly.
Regards,
Murtuza -
To display an html page that contains frames, using servelt
Hi all
i am using a servlet which has to display a html page that contains frames.
I would like to know whether it is possible to display a frame using servlets.
If yes please tell me the how to do it?
Thanks,
Sudheer.Thanks Seth.
I just tried that, but when I run it in preview mode (by simply hitting F12), it gives me an error because it can't find the file in the temporary preview folder it creates (ie:
C:\Users\Tom\AppData\Local\Temp\CP2840464090993Session\CPTrustFolder2840464091009\Captivat ePreviewLoader\
I'm hoping to find a place to put it so that it works when running F12 and when running in regular 'published' mode
I was thinking I could put it in the 'C:\Program Files\Adobe\Adobe Captivate 6 (32 Bit)\Templates\Publish' folder, but when I do that, it doesn't seem to gete copied to the .\CaptivatePreviewLoader folder when running F12 -
How to generate dynamic HTML pages using Swing Application?
Hello,
I am writing a Java application to connect to a local light-weight java database. I would like to generate and present a HTML on the fly after selecting records from a database. At server side, I could easily use JSP/Servlet to do this. How can I do this on a desktop client machine using Java application? I do not want to install Apache web server on the desktop machine. Any help will be greatly appreciated. Thanks in advance.
DominicThe way u need to generate your html pages depened on what u want to generate,
anyway what i can help with, is how to display a generated page.
u have to use JEditorPane with HTMLEditorKit and HTMLDocument to display any HTML.
also u can use the methods provided with the above objects to generate your html format.
I hope I helped. -
How to call a BSP page or webdynpro from a WAD Template button
Hi All,
I want to implement a button on a web template which when called involes a BSP page or a web dynpro and displays the BSP page or webdynpro in a popup window.
Thanks
KarenHi Karen,
What you could do is create a bsp application which receives workbook id as url parameter.
From WAD create a link to this BSP page and pass the wbook id in the url.
Within the BSP you can then read the excel as binary string like below
Select * from rsrwbstore into table wb_tab where workbookid = wbid.
You can then set wb_tab-clustd as the response of the page with mime type to 'application/vnd.ms-excel'. which will open as excel
Take a look on this weblog,
/people/durairaj.athavanraja/blog/2006/02/06/read-sap-table-data-from-bw-webtemplate-ajax-in-bw-webtemplate
Hope it Helps,
Regards,
Amit -
ADF how to display a processing page when executing large queries
ADF how to display a processing page when executing large queries
The ADF application that I have written currently has the following structure:
DataPage (search.jsp) that contains a form that the user enters their search criteria --> forward action (doSearch) --> DataAction (validate) that validates the inputted values --> forward action (success) --> DataAction (performSearch) that has a refresh method dragged on it, and an action that manually sets the itterator for the collection to -1 --> forward action (success) --> DataPage (results.jsp) that displays the results of the then (hopefully) populated collection.
I am not using a database, I am using a java collection to hold the data and the refresh method executes a query against an Autonomy Server that retrieves results in XML format.
The problem that I am experiencing is that sometimes a user may submit a query that is very large and this creates problems because the browser times out whilst waiting for results to be displayed, and as a result a JBO-29000 null pointer error is displayed.
I have previously got round this using Java Servlets where by when a processing servlet is called, it automatically redirects the browser to a processing page with an animation on it so that the user knows something is being processed. The processing page then recalls the servlet every 3seconds to see if the processing has been completed and if it has the forward to the appropriate results page.
Unfortunately I can not stop users entering large queries as the system requires users to be able to search in excess of 5 million documents on a regular basis.
I'd appreciate any help/suggestions that you may have regarding this matter as soon as possible so I can make the necessary amendments to the application prior to its pilot in a few weeks time.Hi Steve,
After a few attempts - yes I have a hit a few snags.
I'll send you a copy of the example application that I am working on but this is what I have done so far.
I've taken a standard application that populates a simple java collection (not database driven) with the following structure:
DataPage --> DataAction (refresh Collection) -->DataPage
I have then added this code to the (refreshCollectionAction) DataAction
protected void invokeCustomMethod(DataActionContext ctx)
super.invokeCustomMethod(ctx);
HttpSession session = ctx.getHttpServletRequest().getSession();
Thread nominalSearch = (Thread)session.getAttribute("nominalSearch") ;
if (nominalSearch == null)
synchronized(this)
//create new instance of the thread
nominalSearch = new ns(ctx);
} //end of sychronized wrapper
session.setAttribute("nominalSearch", nominalSearch);
session.setAttribute("action", "nominalSearch");
nominalSearch.start();
System.err.println("started thread calling loading page");
ctx.setActionForward("loading.jsp");
else
if (nominalSearch.isAlive())
System.err.println("trying to call loading page");
ctx.setActionForward("loading.jsp");
else
System.err.println("trying to call results page");
ctx.setActionForward("success");
Created another class called ns.java:
package view;
import oracle.adf.controller.struts.actions.DataActionContext;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.model.generic.DCRowSetIteratorImpl;
public class ns extends Thread
private DataActionContext ctx;
public ns(DataActionContext ctx)
this.ctx = ctx;
public void run()
System.err.println("START");
DCIteratorBinding b = ctx.getBindingContainer().findIteratorBinding("currentNominalCollectionIterator");
((DCRowSetIteratorImpl)b.getRowSetIterator()).rebuildIteratorUpto(-1);
//b.executeQuery();
System.err.println("END");
and added a loading.jsp page that calls a new dataAction called processing every second. The processing dataAction has the following code within it:
package view;
import javax.servlet.http.HttpSession;
import oracle.adf.controller.struts.actions.DataForwardAction;
import oracle.adf.controller.struts.actions.DataActionContext;
public class ProcessingAction extends DataForwardAction
protected void invokeCustomMethod(DataActionContext actionContext)
// TODO: Override this oracle.adf.controller.struts.actions.DataAction method
super.invokeCustomMethod(actionContext);
HttpSession session = actionContext.getHttpServletRequest().getSession();
String action = (String)session.getAttribute("action");
if (action.equalsIgnoreCase("nominalSearch"))
actionContext.setActionForward("refreshCollection.do");
I'd appreciate any help or guidance that you may have on this as I really need to implement a generic loading page that can be called by a number of actions within my application as soon as possible.
Thanks in advance for your help
David. -
Display external html page in (Collapsible Panel widget)
i everybody
is there a way to display external html page in (Collapsible Panel widget)
All the example a seen is with raw text in it
is the panel can display different object instead of simple text
At least a internal designed html page
ThanksThanks... surely a easy one for you
But its a great tool and its exatly what i want
even my js button works trough it
Thanks again
Maybe you are looking for
-
Saving a delivery, does not create spool request
Hi, I have a delivery and 2 output types. The print program of first output type already exists and I created one for the second one. When I save the delivery, spool request gets created for the first output type but doesn for the one I created. Can
-
How can I unfreeze my phone?
-
I typed this long message above.
-
I need to format my laptop. How can I save Lightroom data?
Hi My windows 7 laptop needs formatting (total wipe) and I would like to save the lightroom data. Is this possible? Or do I just copy the latest backup and open it when all is newly installed? Thanks, J
-
I'm working on a data collection application. Actual device names to be logged can change. Two tables are used: a log "header" table that contains an entry with input descriptions (one record per "run") and another table that contains logged data eve