How to get the window.opener object into a model window

Hi,
I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
for e.g.
var caller = window.opener
then caller can be used as object but if i do like this
var caller = window.dialogArguments
then i can't use caller as an object.
Can anybody tell me the correct way.
manish

Hi Manish,
I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
  Caller page
  // showModalDialog for Non-IE browsers
  if (!window.showModalDialog) {
    window.showModalDialog = function(sUrl, vArguments, sFeatures) {
      var wFeatures   = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,",");  // plus a little more replacement
      var modalWindow = window.open (sUrl, "_blank", wFeatures);
      modalWindow.setFocusToWindow = function () {
        modalWindow.focus();
      modalWindow.setInterval ("setFocusToWindow()", 100);
  // Show modal dialog...
  window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
  modal_dialog.html
  // IE only - other browsers will be fine
  if (window.dialogArguments) {
    window.opener = window.dialogArguments;
  // Write something back in the opener window
  window.opener.document.write ("here you go...");

Similar Messages

  • How to get the Windows Vista Driver for ATI Radeon 7500 card?

    How to get the Windows Vista Driver for ATI Radeon 7500 card?
    I am using a IBM Thinkpad T42 with a 32Mb ATI Radeon 7500 graphic card AGP.
    Is there any Vista 32-bit driver to update my card so that this system support Aero effect?
    Thank you.
    regards,
    W. Thong

    wthong wrote:
    How to get the Windows Vista Driver for ATI Radeon 7500 card?
    The Radeon 9000 driver works for the Radeon 7500 card.  I have successfully used it on a T43 with Vista Ultimate x86
    wthong wrote:
    Is there any Vista 32-bit driver to update my card so that this system support Aero effect?
    Unfortunately no.  The Radeon 9000 driver should bring your graphics score up to close to 2, but it will not get it high enough to enable Aero support.
    Cheers,
    Bill
    I don't work for Lenovo

  • How to get the windows username in jsx

    Hello,
    I have a JSX script in "My Documents\Adobe Scripts" to make it trusted script. I have another text file I need to read from JSX. Since the location depends on logged in user, I need to find the windows username. If anyone know how to get the windows username from jsx please reply.
    Thank you very much.
    Regards
    Nima.

    Hey,
    You can get username like this:
    var myUsername = $.getenv('username');
    You could also get My Documents folder like this:
    var myDocFolder = Folder.myDocuments;
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com/

  • How to get the plsql table data into output cursor

    Hi,
    Could anybody please help me.
    Below is an example of the scenario..
    CREATE OR REPLACE PACKAGE chck IS
    PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR);
    TYPE get_rec is record (ename varchar2(20),
    eno number(12));
    TYPE t_recs IS TABLE OF get_rec INDEX BY BINARY_INTEGER;
    emp_tab t_recs;
    END chck;
    CREATE OR REPLACE PACKAGE BODY chck AS
    PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR)
    is
    BEGIN
    select ename, eno
    bulk collect into emp_tab
    from emp;
    open oc_result_cursor for select * from table(emp_tab); -- I believe something is wrong here ....
    END;
    END chck;
    the above package is giving me an error:
    LINE/COL ERROR
    10/29 PL/SQL: SQL Statement ignored
    10/43 PL/SQL: ORA-22905: cannot access rows from a non-nested table
    item
    let me know what needs to be changed
    Thanks
    Manju

    manjukn wrote:
    once i get the data into a plsql table, how to get this plsql table data into the cursor?There is no such thing as a PL/SQL table - it is an array.
    It is nothing at all like a table. It cannot be indexed, partitioned, cluster, etc. It does not exist in the SQL engine as an object that can be referenced. It resides in expensive PGA memory and needs to be copied (lock, stock and barrel) to the SQL engine as a bind variable.
    It is an extremely primitive structure - and should never be confused as being just like a table.
    Its use in SQL statements is also an exception to the rule. Sound and valid technical reasons need to justify why one want to push a PL/SQL array to the SQL engine to run SELECT 's against it.

  • How to get the values from object ?

    hi everybody,
    i am experimenting with oops concept. first have a look at these coding and then tell me this.
    what do i have to do to get the value of an object created. i want to use the get method to get the name, food and quantity, without the use of the created object. i mean i want to make the process independent of how many objects i make so that i can find a value given the name of a person in the object.
    when this is done, i want to use this to create filed of a specific doc format for each object created. now when we are using the get method i want to read whats on the object value .
    Am i being clear or are thing very confusing, please let me know wht u think so i can clarify myself more.
    public class obj {
         String name;
         String food;
         int quantity;
         public void set(String ndata, String fdata,int qdata )
              this.name=ndata;
              this.food=fdata;
              this.quantity=qdata;
         public  void get()
              System.out.println( this.name+"  "+this.food+"  "+this.quantity);
         public static void main(String[] args) {
              obj obj1= new obj();
              obj1.set("varun", "burger", 2);
              obj obj2= new obj();
              obj1.set("roshan", "diet pepsi", 1);
              obj obj3= new obj();
              obj1.set("aman", "biryani", 2);
              obj2.get();
    }

    cyberpanther wrote:
    hi everybody,
    i am experimenting with oops concept. first have a look at these coding and then tell me this.
    what do i have to do to get the value of an object created. i want to use the get method to get the name, food and quantity, without the use of the created object. no. wrong.
    i mean i want to make the process independent of how many objects i make so that i can find a value given the name of a person in the object.no. sounds more like you're experimenting with drugs.
    when this is done, i want to use this to create filed of a specific doc format for each object created. now when we are using the get method i want to read whats on the object value .
    Am i being clear or are thing very confusing, please let me know wht u think so i can clarify myself more.you're clearly confused.
    public class obj {
         String name;
         String food;
         int quantity;
         public void set(String ndata, String fdata,int qdata )
              this.name=ndata;
              this.food=fdata;
              this.quantity=qdata;
         public  void get()
              System.out.println( this.name+"  "+this.food+"  "+this.quantity);
         public static void main(String[] args) {
              obj obj1= new obj();
              obj1.set("varun", "burger", 2);
              obj obj2= new obj();
              obj1.set("roshan", "diet pepsi", 1);
              obj obj3= new obj();
              obj1.set("aman", "biryani", 2);
              obj2.get();
    }utterly awful code. this is how it should not be done.
    %

  • URGENT: how to get the database error message into application?

    Hi, pls give some idea:
    For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
    So, how to get this message in our application?

    instead of using the getMessage method, have you tried something like this:
             try {
             } catch (Throwable t1) {
                System.out.println(t1.toString());
             }If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
    ;o)
    V.V.

  • How to Get the Previous Transactional Data into Special Purpose Ledger

    Hi,
    1). We have implemented Special Purpose Ledger. After implementing SPL, we are generating documents and getting the postings into SPL. Now I need to bring the previous postings which were entered before Special Purpose Ledger Setup. Please Help me on how to bring the transacctional data into Special Purpose Ledger.
    2).  Is it possible to define A/R Aging by Customers? in  Special Purpose Ledger by using Report Painter?
    3). What is the use of Allocation Cycles like Assessment and Distribution in Special Purpose Ledger?
    Please clarify me on above 3 points.
    Thanks
    Yadayya
    Edited by: Dogdays on Aug 5, 2011 8:02 AM
    Edited by: Dogdays on Aug 5, 2011 8:03 AM

    I have experience in intergrating project accounting to the general ledger in a data warehouse using discoverer to show the results.
    The solution I developed for my compnay is to ensure all entries from all sub-ledgers including manual journal entries are moved to the data warehouse tables have project information based on PA autoaccounting rules.
    The company I work for was interested in viewing reports that cubed cost centers (dept's.) to projects and to translate all entries (not just account balances) to USD for thier foriegn set of books. So, projects can be seen company wide in USD at lowest entry level. The solution I gave them solved the problem and they are able to view reports and evaluate costs by cost centers and projects on an enterprise wide application.
    If this is what you are looking for let me know.
    about my self : I have a B.S. in Computer Science (Theoretical Track) and 17 yrs of accounting and book keeping experience including consolidation and multi-currency sets of books.

  • How to get the list of object that are going to modify during the upgrade?

    We are upgrading sap 4.OB to ECC 6, is there any place we will get the list of standard object which are going to modify in service market place? Please let me know the link to get those details.
    Thanks

    Usually you get this list when upgrading first system (sandbox type) via SPDD and SPAU. (useful for objects modified in your system - SNOTE or mofications) - The whole list of modified objects will be huge,  many (most) objects were modified (created, even deleted) those last 13 years.
    There are also tools that may help you like [panaya|http://www.panayainc.com/] (but i'm not sure for a 4.0B, it worked fine for a 46c) - look for tools/vendor at [Partner Information Center: Search|http://www.sap.com/partners/directories/SearchSolution.epx]
    Regards,
    Raymond

  • HT5649 how to get the movie category back into the sidebar?

    I deleted this category but now I want it back, anyone know how to get it back?  I want it returned for itunes and for devices listed in the sidebar.  Thanks

    Perhaps you inadvertently hid it. Try iTunes preferences > General > Show Movies.

  • How to get the connected Adapter Object for a particular BDoc Type?

    Hi All,
    I have a scenario in which CRM system is connected to ERP system.
    In SMW01 transaction, I can see one BDoc with BUS_TRANS_MSG as the BDoc Type in CRM.
    Now, how do I get to know if this one BDoc is a SALESDOCUMENT or SALESCONTRACT.
    Is there any way thorough which I can get to know the Adapter Object for this particular BDoc.
    Regards,
    Madhuri

    Hi Madhuri,
               Happy new year.
    In Transaction : R3AC1.
    You can observe the Linked BDOC for the adaptor objects. For example Sales docuemnt and Sales contrcat will have the same linked BDOC as "BUS_TRANS_MSG".
    If you see an error in SMW01, you want to find whether it is salesdocument or contract.
    1. Please take the Queue name from SMW01.
    from the queue name you can find whether it is sales contract or sales document.
    Queue name is customized in tables: SMOFQFIND.
    I hope this helps you.
    regards,
    Sri...

  • How to get the portal user id into the web dynpro iview at runtime?

    Hi,
    Can any one let me know, How to display portal id and as well as backend SAP user id into Web Dynpro iview at runtime. I am using Adaptive RFC model in my web dynpro application.
    Raj.

    Raj:  check this thread. I think that will help you.
    Can i get Portal User's details in webdynpro??
    I had the same requirement and its works whit this solution.
    regards.

  • How to get the Windows service

    Hi friends,
    I can able to get My system ip address using InetAddress.But i need to get what are all services is going in particular ip address.
    Is it possible in java.If possible then can u send me the code for the same.
    import java.io.*;
    import java.net.*;
    public class IPaddresses
    public static void main(String args[])
    try
    System.out.println("local IP address " + InetAddress.getLocalHost().toString());
    catch (Exception se) {System.err.println("error " + se); }
    Thanks & Regards,
    Yousuf .

    yousufalam wrote:
    Hi friends,
    I can able to get My system ip address using InetAddress.But i need to get what are all services is going in particular ip address.
    Is it possible in java.No.

  • How to get input from keyboard scanner into an array

    This is probably a very basic question but I'm very new to java..
    My task is to reverse a string of five digits which have been entered using keyboard scanner.
    E.g. - Entered number - 45896
    Output - 69854
    I used the StringBuffer(inputString).reverse() command for this, but i need a more basic method to do this.
    I thought of defining an array of 5
    int[] array = new int [5];
    and then using,
    Scanner scan = new Scanner(System.in);
    to enter the numbers. But I can't figure out how to get the five input numbers into the array.
    If I can do this I can print the array in reverse order to get my result.
    Any other simple method is also welcome.

    Hey thanks for the quick reply,
    But how can I assign the whole five digit number into the array at once without asking to enter numbers separately?
    E.g. - if entered number is 65789
    Assign digits into positions,
    anArray [0] = 6;
    anArray [1] = 5;
    anArray [2] = 7;
    anArray [3] = 8;
    anArray [4] = 9;
    I'm really sorry but I am very new to the whole subject.

  • How to get the default selection color from JTable

    Hi, there,
    I have a question for how to get the default selection color from JTable. I am currently implementing the customized table cell renderer, but I do want to set the selection color in the table exactly the same of default table cell renderer. The JTable.getSelectionBackgroup() did not works for me, it returned dark blue which made the text in the table unreadable. Anyone know how to get the window's default selection color?
    Thanks,
    -Jenny

    The windows default selection color is dark blue. Try selecting any text on this page. The difference is that the text gets changed to a white font so you can actually see the text.
    If you don't like the default colors that Java uses then use the UIManager to change the defaults. The following program shows all the properties controlled by the UIManager:
    http://www.discoverteenergy.com/files/ShowUIDefaults.java
    Any of the properties can be changed for the entire application by using:
    UIManager.put( "propertyName", value );

  • How to I retrieve my purchased apps? I had my Iphone stolen in FEB, then in July my PC crashed. I just got a new Iphone but I dont know how to get the apps.

    How to I retrieve my purchased apps? I had my Iphone stolen in FEB, then in July my PC crashed. I just got a new Iphone but I dont know how to get the apps.

    Open itunes store, click Purchased under Quick links.
    Where is your backup copy of your computer?  You can use that as well.

Maybe you are looking for