How to display a view which contain interactive form in an external window

Anyone know how to display a view which contain interactive form in an external window?
I managed to display the view in an internal window with the following code:
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PdfReportWin");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
For external window, I tried this method : wdComponentAPI.getWindowManager().createExternalWindow(String URL, String title, boolean modal) but there are no parameter for view name?
Maybe this is not the correct way, really appreaciate if anyone can help.

Hi,
            U need to the following
           1.Create another window
           2.Create a view in it tat contains Interacive form element.
           3. call this window dynamically thru the first window by creating a context element of IWDWindow  type
The code may help:
  IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("SearchEmpwind");
      IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
      window.setWindowPosition(WDWindowPos.CENTER);
      window.setWindowSize(400, 250);
      window.open();
      wdContext.currentContextElement().setEmpSearchWind(window);
Regards
Ishita

Similar Messages

  • HOW TO CREATE A VIEW WHICH CONTAINS A PARAMETER

    Hi all
    I am trying to create a view which contains paramaters.
    Lets assume that the view may look like this:
    STEP 1:
    CREATE OR REPLACE procedure Myproc(v_count in NUMBER) as
    BEGIN
    EXECUTE IMMEDIATE
    'CREATE OR REPLACE VIEW myview AS
    SELECT COUNT(*) FROM DUAL WHERE ROWNUM like '''||v_count||'%'' ';
    END myproc;
    SHOW ERRORS;
    Procedure created.
    Elapsed: 00:00:00.31
    SQL> SHOW ERRORS;
    No errors.
    STEP 2:
    SQL> EXEC Myproc(2);
    BEGIN Myproc(2); END;
    ERROR at line 1:
    ORA-00998: must name this expression with a column alias
    ORA-06512: at "MYUSERNAME.MYPROC", line 3
    ORA-06512: at line 1
    Elapsed: 00:00:00.16
    It seems that doesn't really likes the third line: "EXECUTE IMMEDIATE".
    Can I get any help with this one ?
    Thank-you
    Robert

    Bear in mind that VIEWs are not supposed to be parameterised. That is why Nature gave us a WHERE clause. However, there is one, albeit slightly clunky, way of doing it....
    SQL> CREATE OR REPLACE VIEW emp_view AS
      2  SELECT * FROM scott.emp
      3  WHERE deptno = sys_context('userenv','client_info')
      4  /
    View created.
    SQL>
    SQL>
    SQL> exec dbms_application_info.set_client_info(10)
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM emp_view
      2  /
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7782 CLARK      MANAGER         7839 09-JUN-81       2450
            10
          7839 KING       PRESIDENT            17-NOV-81       5000
            10
          7934 MILLER     CLERK           7782 23-JAN-82       1300
            10
    SQL> Cheers, APC

  • How to display interactive PDF  form in an external window?

    Hi Gurus,
    I have developped an application which involves interactive form . Now I want to display the pdf generated through the interactive form in an external window.
    Please guide me how to goahead.
    Thanks
    Nageswara.

    Hi Francois Gendebien ,
    Thanks for ur reply.
           But I have created Pdf in new window(by using window instance) but That window does not contain minimise and maximise and close button.
    Is there any suggessions to add these Options to created new window pdf form
    I am  strucking over here .
    Please help me out.
    Thanks
    Mandapati

  • I need to display a Report which contain -- del QTY  and  INV QTY   in one

    Hi ALL,
    I need to display a Report which contain
    <b>Customer  , Material , Order No, Delivery No, Billing No , Order Qty , Dev Qty, Bill Qty , Invoiced Qty  and There Values  in One Line  .</b>
    How can I Display, When I am executing the report against the Delivery Number Bill Qty and Invoiced Qty is showing Hash ( # ).
    Do I need to right any Routines for this, if I am correct,  where I have to write that code and what is the code ,
    What are the Consolidation  routines ?????
    I am working on BI 7.
    Regards ,
    Shaik
    Message was edited by:
            shaik

    Frst check in backend, which all cubes have got data for each of three..
    Corresponding you can go ahead with Multi/Infoset..
    Look for reference no in all three cubes and pick one order and track tht by reference no in all cubes,
    Hope it helps..
    Thanks for points assigned

  • How to display the image which in KM folder using url iview

    Hi Friends
    How to display the image, which is under KM folder structur using the url iview.
    i trying using url iview url as  \document\testfolder\abc.jpg as url for the iview.
    but its now working .. so please help me how to slove this problem
    If is not the correct way then please suggest me best way to achive this.
    Thanks
    Mukesh

    Hi Mukesh,
    I think this may work,
    1, Create a HTML Layout.
        You can put your image wherever  u want with HTML Codes.
        Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
        With this, u can use the standard KM commands also.
    2, U need to use KM Navigation iView for this rather than KM Doc iView.
    3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
    Regards
    BP

  • How to convert a String which contains integers to an integer

    Hi, I'm doing a simple user-interaction program. For example I ask how many people are in a group. and they give me an answer with a integer number. But how can I convert the System.in to an real integer value, i.e. How can a String value which contain an integer convert to an integer value?
    InputStreamReader inputStreamR = new                               InputStreamReader(System.in);
    BufferedReader bufR = new BufferedReader(inputStreamR);
    String ans = bufR.readLine();
    and then what? (I want the answer is an integer);
    Thanks

    String ans = bufR.readLine();
    try {
      int ansAsInt = Integer.parseInt(ans);
    } catch (NumberFormatException nfe) {
      // What happens if the String was not an integer
    }

  • How to display the PK which is it alreday database sequence in a text field

    hi alllllllllllllll how to display the PK which is it alreday database sequence in a text field in form instance???

    2 ways,
    1) select the item in your SQL query and call it item_display - then you can treat it as a normal item with no impact on the database.
    2) Set the item to a display only item.
    Hope this helps,
    Russell

  • How to display an Image which is on Panel behind JScrollPane - Please Help

    Hiii All,
    How to display an Image which is on Panel behind JScrollPane. I have set the setOpaque() method of JScrollPane to false still when i run the program the JScrollPane is set as Opaque.. Can some one please help me in this...
    Thanks,
    Piush

    you need to set both
    scrollPane.setOpaque(false);
    scrollPane.getViewport().setOpaque(false);

  • How to display an image, which is stored in a database?

    Hi All,
    I would like to display an image with Web Dynpro.
    I already know how to display an image which is stored in the path src/mimes/Components/...
    But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
    Thanks in advance!
    Regards,
    Silvia

    Hallo John,
    yes, you can use the Image UI element.
    Further you have to create a String for the URL. Implement like as follows:
    IWDCachedWebResource cachedResource = null;
    String imgUrl = null;
    WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
    IWDModifiableBinaryType binaryType =
                   (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
    WDWebResourceType type = binaryType.getMimeType();
    byte[] file = wdContext.currentXYElement().getPicDB();
    if (file != null)
    cachedResource = WDWebResource.getWebResource(file, type);
    try
    imgUrl = cachedResource.getURL();
    catch (WDURLException e)
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
                        msgMgr.reportException(e.getLocalizedMessage(), true);
    I hope it will help you.
    Regards,
    Silvia

  • Please let me know name of business package FICO which contains these forms

    We need to make use of following Adobe Interactive forms.
    1.Cost center creation
    2.Cost center changing
    3.Profit center creation
    4.Profit center changing.
    Please let me know name of business package of FICO which contains these forms.
    Thank you,

    Found correct

  • How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files?

    How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files? I need to look at several thousand PDF files. It takes too long to open each one individually. The only thing I could think of is combining them into large groups and then using the Navigation index. But I like the way windows Picture and Fax Viewer does it because you can keep the files separate. Combining PDFs causes loss of individual file names. That would be a problem since I do need to have the individual file names.

    Windows Picture and Fax Viewer is a DLL and is started via a rundll32.exe call and can't be set as an application to handle images in Firefox 3 and later versions.
    Try to set Windows Picture and Fax Viewer as the default viewer in Windows, then it should be listed automatically in the Mozilla Firefox Browse dialog.
    *http://www.winhelponline.com/articles/115/1/Windows-Picture-and-Fax-Viewer-as-the-default-viewer-in-Mozilla-Firefox.html
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can i find that which page is opened in other browser window

    How can i find that which page is opened in other browser window
    Can i restrict opening of a new instance of browser by end user.
    Thanks in advance.

    you can use Javascript functions/varibles.
    In any page you can insert a special form like this:
    <form name="myNameWindow">
    <input type="hidden" name="myName" value="Ivan_pag01">
    </form>
    and in the other reading that value.
    Obviusly you have to save a reference in a variable of the other window.
    This is possible only if:
    1) other page is in the same browser window but in an other frame
    2) you have generated the other page via an "window.open" function (or your page is generated from it via that function)
    -- Ivan

  • How to display recently viewed pages?

    Im looking for advice/tutorial on how to display a vertical
    list (<ul>) inside a div which will display say the last few
    pages (via their title) which a user has viewed on my site. Just a
    simple vertical text based list rather like the list shown on the
    "Back" button in IE. Are we talking croutons?
    If a user leaves the site then goes back I want the list to
    be cleared again.
    Ok I know people may say, just use the back button but I
    thought it could be a handy feature on the page itself.

    Hi freidaf1,
    You should take a look at the Tile Tabs add-on:
    https://addons.mozilla.org/en-US/firefox/addon/tile-tabs/
    I believe it will do exactly what you are looking for. You could always open multiple windows, but I think this is a more elegant solution.
    Hopefully this helps!

  • How to set the view, which has to be shown at runtime?

    Hi,
    in my application i have more than one view, but at runtime only one of these views has to be shown. I want to decide this via a parameter that I get from the url.
    How can i set the right view to be showing at runtime?
    I tried it with a StartView which fires the right Outbound Plug in his wdDoInit-Method. This is working fine, but the problem is, that the method OnPlugDefault() of ComponentInterfaceViewController isn't called already at this time. So in the Init-Method of the StartView I don't have the given URL Parameter, so I can't decide which Plug I want to fire. The method OnPlugDefault() is called only after the init-method of the StartView.
    Is there any other possibilty to set the view, which has to be shown, at runtime?
    Thanks and Best Regards
    Katharina

    Hi,
    One way is you can pass the parameter in the URL , read the parameter and then fire the outbound plug depending upon that.
    You can read the parameters as follows
    HttpServletRequest request =Task.getCurrentTask()
         .getWebContextAdapter()
         .getHttpServletRequest();
    String[] param1 = request.getParameterValues("<<PARAMETRNAME");
    if(param1.equals("VALUE"))
      fire outbound plug1;
    Regards, Anilkumar

  • How do I display my pdf output on interactive form?

    Hi all,
    I use interactive form ui element and bind its pdf source property to my attribute 'SOURCE' typed xstring.
    I call my custom fm to process some data return me an itab which consist of lines of pdf binary data. I moved it to another itab which is lines of hexadecimal text. I have a big problem displaying my lt_xstring below on ineractive form. Either I get type not compatible or acess via null object reference error issues. Any idea anyone???
    TYPES: BEGIN OF ty_buffer,
             lv_buffer TYPE xstring,
           END OF ty_buffer.
    TYPES: BEGIN OF ty_string,
             lv_string TYPE string,
           END OF ty_string.
    TYPES: BEGIN OF ty_xstring,
             lv_xstring TYPE xstring,
           END OF ty_xstring.
    DATA lt_buffer TYPE STANDARD TABLE OF ty_buffer.
    DATA lt_string TYPE STANDARD TABLE OF ty_string.
    DATA lt_xstring TYPE STANDARD TABLE OF ty_xstring.
    DATA lw_buffer TYPE ty_buffer.
    DATA lw_string TYPE ty_string.
    DATA lw_xstring TYPE ty_xstring.
    DATA lw_pdf     TYPE soli.
    *EXPORT my_data = lv_string TO DATA BUFFER lv_buffer.
    *IMPORT my_data TO lv_xstring FROM DATA BUFFER lv_buffer IN CHAR-TO-HEX MODE.
    LOOP AT ltg_pdf INTO lw_pdf.
      lw_string-lv_string = lw_pdf-line.
      EXPORT my_data = lw_string-lv_string TO DATA BUFFER lw_buffer-lv_buffer.
      IMPORT my_data TO lw_xstring-lv_xstring FROM DATA BUFFER lw_buffer-lv_buffer IN CHAR-TO-HEX MODE.
      APPEND lw_xstring to lt_xstring.
      CLEAR lw_pdf.
      CLEAR lw_string.
      CLEAR lw_buffer.
    ENDLOOP.

    Hi Siong,
    If you are using web dynpro than whatever the values presents in the context will be displayed in the Form.
    in case of web dynpro you need to to perform any parsing or transformation.
    Just make sure than you are properly mapping the web dynpro context and Pdf context.
    check your web dynpro component, if you get the correct values in context, than these values will be displayed in fore also.
    Thanks & Regards,
    Arvind

Maybe you are looking for