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

Similar Messages

  • 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.

  • How to display a double page of a magazine with ibooks

    how to display a double page of a magazine with ibooks ?
    Thanks

    oiram osurac wrote:
    how to display a double page of a magazine with ibooks ?
    What is the title of the magazine you are talking about?

  • Is there is any way to show the nomber of shares of any post in facebook page using android view not desktop view

    is there is any way to show the nomber of shares of any post in facebook page using android view not desktop view

    Sorry, its not related to Mozilla Profucts.

  • How to display a web page in kannada language

    Hi
    we are designing a web (html)page
    how to display that page in kannada language
    we downloaded "brhknd.ttf" font file.
    if this file is available in SYSTEMS-Control Panel-Font folder it is working .if it is not their in System's directory the web page is not displaying kannada language.
    All the client's machines wil not have this file.Plz help
    The '.ttf' file is available in the Application's folder which is uploaded on the server.
    can't the client's machine take that font file from server and display in kannada language?

    iam not sure whether this question related to java or
    not.Hi,
    You are correct. It's not related to java at all. Try to ask this in an html of web development forum (but I would be suprised if you could implement it)
    Kaj

  • How to display a website page in a JSP textarea ?

    Hi all...
    I am developing an application where i need to display a web page in a text area, the same
    way it gets displayed in a web browser (like IE, mozilla). After that i will read the page and will extract text from it for further processing.
    My JSP contains a text field where i can type the URL address (say http://www.yahoo.com)
    What i want is, when i will click a submit button, the web page at the given URL should be retrieved and should get displayed in the textarea that is present on the same page. (It should be displayed in the same way as it
    gets displayed on the browser.)
    Is that possible ? Can it be done using some other ways ?
    It is a small application that i am developing using struts 1.1.
    Can some one help in this regard ?
    Thanks in advance..
    Regards
    Prasad

    Thanks BalusC..
    I have used iframe now and it is working for the URL specified.
    But even then i have couple of doubts..
    1. How should i use the iframe if i want to navigate on the further web pages within the same frame ?
    (e.g. if with URL say http://www.yahoo.com, the home page is displayed in the frame, now if i click any link
    on the page the next navigation should occur within given frame only.)
    2. Can i read the page from the frame and write the text into some file say text file ?
    Hope you understand my problem...
    Thanks a lot..
    Prasad

  • 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 local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • Displaying same JSP page with different views based on BOB and B2B scenario

    Hi Experts,
    I have a requirement where, in the orderstatusdetails.jsp i want to add a button only for a BOB(OOB) scenario but not for the B2B scenario. I know how to display diffenretly by adding the code       
    mybom.getShop().getscenario()
    in the action class i use and putting the codintion OOB or B2B but How can i code in JSP for this requirement? Can you please help me how to do it?
    Thanks a lot in Advance!!!!!
    Regards,
    Lakshman.

    Hello LRG,
    Almost anything you can do in a Java class can be done in a JSP - but it is always recommended you do less of coding in the JSP. But this is an exception you can do in the JSP
    All the inport classes required for this piece of code you have referred can be added to the page import in JSP. For example if you need the class UserSessionData then
    <%@ page import=u2018com.sap.isa.core.UserSessionDatau2019 %>
    will do the job in the JSP. Once you have all the required imports then it is just a matter of adding the piece of code in a Java scriptlet to get the scenario.
    <%
    //Code copied from the message reply by Michael Meyer
    UserSessionData dt = UserSessionData.getUserSessionData(request.getSession());
    BusinessObjectManager mgm = (BusinessObjectManager)dt.getBOM(BusinessObjectManager.ISACORE_BOM);
    String scenario = mgm.getShop().getScenario();
    %>
    After this, is determined in any page, use the variable scenario, use it in a if clause and surround the button with that if clause.
    <% if (scenario == BOBSCENARIO) { %>
      //HTML code in the JSP here for the button when the scenario is BOB
    <% } else { %>
      //More HTML JSP code if the scenario is not BOB
    <% } %>
    Hope this is what you wanted.
    Easwar Ram
    http://www.parxlns.com

  • How to display an error message in maintenace view

    Hi,
    I have following requirement.
    I have a table. In the table, there is a field named REPORT which keeps an executable report name. When adding an entry i need to fill the field with an report name, which should exist in the system. The report name should not be include objects.
    Then I use search help HELP_TRDIR with import parameter SUBC = 1.  I also create a maintenance view for the table.
    Then my question is how to display a warning message if the report I input in REPORT field doesn't exist in the system. If I need to modify the generated objects of the maintenance view, how to do it.
    The reason i don't use foreign key is that it seems filter functionality is not availabe in the case with import parameter SUBC = 1.
    Thanks in advance,
    Best Regards, Johnney.

    Hi,
    You need to add your validation in the table maintenance events:
    Use the event : 01 - Before saving data to the databse table... for this purpose
    1) Go to Menu-> Utilities->Table mainatenace generator
    2) On the table maintenance screen->Menu->Enviroement-> Modifications->Events
    3) select an event 01 and give some subroutine/form name.
    4) Add your validation in the form(Note this form should be in the Func Group of the table maintanance genetaor)
    Regarrds
    Shiva

  • Display external html page in a view

    Hi,
    following Problem,
    I have a Viewcontainer with 2 columns ans one row. In the left cell I display a tree. OnSelect Event I'd like to display a html page in the right cell.
    Example:
    Searchengine
      -> Google
      -> Yahoo
      -> ...
    On Klick at google in the treeview I'd like to show http://www.google.de in tghe right cell - this means the tree should still display.
    Is this possible - and has anyone an idea to do this?
    thanks in advance
    Gregor

    Hi
    We strongly donot recommend usage of Iframe, because its support is depcrecated and will not be available for future versions.
    For a short duration or for current version, use can Iframe only for static html links. Try using link to URl and display the htmls in external windows.
    Check out this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/e9/7652a84fada444bd11ca73670ce7dc/frameset.htm
    My advice is to change your functionality accordingly
    If you have any specific requirements do let us know
    Thanks
    sathyanarayanan

  • How to detect when a page is in view with jQuery or javaScript?

    Is there a way a detect when a page is in view? Currently it seems that my document ready function is being called when the page is the next or previous page as well as the current page. Seems that this gets called twice... is there a reliable way to detect this?

    I ran into this alot. first thing is that when you are looking at a particular page, DPS is caching the pages around it, all around it, so it caches the top, right, bottom and left pages, which will launch things and play videos and what not.
    Here's the workaround for getting it to only launch when in view. set the autoplay time (I assume this is for a "webcontent overlay") to .125 seconds. it will start the clock only when the page (tile) is in view.
    don't know if theres an easier way, but that's how I do it and it works.

  • I have created Notes in my yahoo account. Some of the Notes pages does not show up, though they are still inside Yahoo mail account. How to ensure that all pages in my Yahoo notes appear in my iphone and ipad

    I have Notes in my Yahoo email account. Some of the pages disappear or could not be found in iphone or ipad, though they are still inside my yahoo Notes
    How to make sure that all my Yahoo Notes pages appear in iphone and ipad all the time

    I had the exact same issue!! Seriously p*ssed me off when I checked out my ITunes purchased items (via my computer) and noticed that most of the additional tracks listed on my IPhone playlist was listed there too. However, I never authorized any purchases!!  (I have actually written Apple Support asking for a full refund of all tracks listed on my purchased list)
    Be careful when you swipe your finger to the left/right on those "additional" tracks on your IPhone playlist... I'm pretty sure that the cloud symbol is an option to download or automatically buy those tracks.
    Solution for the problem:
    1 - go to your IPhone settings
    2 - choose "iTunes & App Store"
    3 - go to "Show All" & "Music"
    4 - turn off "Music" by moving the bar to the left (it should be a white color once you turn it off)
    Should solve your problem :~)

  • How to display Long text information in my view

    Hi
    I have a long text of static information , which i need to show in my view. its like agreement information. The user must be able to read it . It has some 20 lines of text. Which is the appropriate control to be used to show the information ?

    Hi Naresh
    I had some options of displaying the long text in the view.
    option 1 - The long text in sap table was in multiple rows in terms of having each line as one record and when displayed looks like  a paragraph statement. So I used a webdynpro table to populate the rows and made invisible the row/column lines. So When you run it on the browser it will display like a long text. By default, SAP table will have column some length of 72 characters, which I changed to 140 charcs, to get a long sentence formation.
    option 2 - If the long text is not from SAP table and its kind of direct information, then just keep on pasting the text in the text view by providing spaces appropriately, so that the display will be a continous form of paragraph. This is a trial and error way and providing the spaces between the lines.
    option 3 - Store the long text in a text file and call a import parameter, which will read the whole text and store it in string (node) and display it text view. ( alignment cannot be gauranteed)
    option 4 - Last one, is to call a office (msword) or a pdf control , which will display the long text through the word editor or a pdf form.
    If you have any specific issues do write back to the forum.
    thanks
    sathya

Maybe you are looking for