PowerCLI and Popup Message or dialog box

Hello

Is there anyway to display a message to a user, when the PowerCLI script is complete.

In addition, if you know another way another popup then, as we did in VBS, I use Message.Show in c#.

Thank you

You can display a messagebox with the following lines at the end of your PowerShell script:

[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.MessageBox]::Show("The script has finished.")

Tags: VMware

Similar Questions

  • To display the taskbar and Start Menu Properties dialog box

    To display the taskbar and Start Menu Properties dialog box, click on? in the context menu of the taskbar.

    Hello

    1 are. which option you referring?

    2. what you trying to accomplish?

    I suggest to check the following links and check if it helps.

    Taskbar of Windows: http://windows.microsoft.com/en-us/windows7/products/features/windows-taskbar

    The new taskbar of Windows 7: http://windows.microsoft.com/en-US/windows7/help/better-stronger-faster-the-windows-7-taskbar

    Hope this information is useful.

  • Native of filebrowse using and the cascading Save dialog box

    In my application I need to open file and file save dialog box when a specific button is clicked. I looked at the docs of stunts, but I found that the native options. Tried the native alert dialog, change of filebrowse dialog type. It displays well on Simulator, but could not get any output file that will be used in the Qt code.

    I pass these parameters

    int * num = NULL;

    char * folder [1024];
    dialog_update (alert_dialog);

    to dialog_event_get_filebrowse_filepaths(event,file,num), but it always returns BPS_FAILURE.

    In addition, access_shared is present in the bar-descriptor

    Here is my code:

    //slot function
    void App::fileOpen(){
        //===========================
            dialog_instance_t alert_dialog = 0;
    
            bps_initialize();
    
            dialog_request_events(0);    //0 indicates that all events are requested
    
            if (dialog_create_filebrowse(&alert_dialog) != BPS_SUCCESS) {
                        fprintf(stderr, "Failed to create alert dialog.");
                        return ;
                }
                const char* extensions[] = {"*.*","*.jpg","*.jpeg","*.mp3","*.wav","*.mp4","*.txt","*.doc","*.pdf"};
                int items = 9;
                if(dialog_set_filebrowse_filter(alert_dialog, extensions,items) != BPS_SUCCESS){
                    fprintf(stderr, "Failed to set alert dialog message text.");
                            dialog_destroy(alert_dialog);
                           alert_dialog = 0;
                           return ;
                }
               if( dialog_set_filebrowse_multiselect(alert_dialog,FALSE)!=BPS_SUCCESS){
                   fprintf(stderr, "Failed to set alert dialog message text.");
                                dialog_destroy(alert_dialog);
                               alert_dialog = 0;
                               return ;
               }
    
            if (dialog_show(alert_dialog) != BPS_SUCCESS) {
                fprintf(stderr, "Failed to show alert dialog.");
                dialog_destroy(alert_dialog);
                alert_dialog = 0;
                return ;
            }
    
            int shutdown =0;
            while (!shutdown) {
                bps_event_t *event = NULL;
                bps_get_event(&event, -1);    // -1 means that the function waits
                                              // for an event before returning
    
                if (event) {
                    if (bps_event_get_domain(event) == dialog_get_domain()) {
    
                        int selectedIndex =
                            dialog_event_get_selected_index(event);
                        const char* label =
                            dialog_event_get_selected_label(event);
                        const char* context =
                            dialog_event_get_selected_context(event);
    
                        char **fileArray[]={};
                        int *numFiles = NULL;
                       //
                              if(selectedIndex == 0){
           shutdown = 1;//user press the cancel button on dialog; close the dialog
       }
       else if(selectedIndex == 1){
           if(dialog_event_get_filebrowse_filepaths(event,file,num)!=BPS_SUCCESS){
           fprintf(stderr,"File open fail");
       }
       else{
    
    //debug purposes
           fprintf(stderr,"File array: %d/n",sizeof(file)*1024);
               fprintf(stderr,"Num files: %n",num);
               //fprintf(stderr,"Files int: %d",files);
       }
    
       }
                    }
                }
            }
    
            if (alert_dialog) {
                dialog_destroy(alert_dialog);
            }
            //===========================
    }
    

    Native Subforums have no useful information on this subject. Any help is greatly appreciated

    Hello again, here's the example as promised.

    To use the native filebrowse dialog box, the native code must run in its own thread to prevent the user interface in the Cascades to block. This is achieved by encapsulating all the dialog box code in a class derived from QThread.  The class I wrote is called FileBrowseDialog

    FileBrowseDialog.hpp

    #ifndef FILEBROWSEDIALOG_HPP_
    #define FILEBROWSEDIALOG_HPP_
    
    #include 
    #include 
    #include 
    
    /*
     * The file browse dialog displays a dialog to browse and select
     * files from shared folders on the system.
     */
    class FileBrowseDialog : public QThread
    {
        Q_OBJECT
    
        /*
         * QML property to allow multiple selection
         */
        Q_PROPERTY(bool multiselect READ getMultiSelect WRITE setMultiSelect)
    
        /*
         * QML property to read the selected filenames
         */
        Q_PROPERTY(QVariant filepaths READ getFilePaths)
    
        /*
         * QML property to set or get the file filters. This is an
         * list array variant.
         */
        Q_PROPERTY(QVariant filters READ getFilters WRITE setFilters)
    public:
        /*
         * Ctor and Dtor
         */
        FileBrowseDialog(QObject* parent = 0);
        virtual ~FileBrowseDialog();
    
        /*
         * Exposed to QML to start the run loop which creates and displays the dialog.
         * The dialog is shown until a button is clicked.
         */
        Q_INVOKABLE void show();
    
    public:
        /*
         * Getter for the selected filenames QML property
         */
        QVariant getFilePaths() const;
    
        /*
         * Setter and Getter for the filters QML property
         */
        QVariant getFilters() const;
        void setFilters(QVariant const& value);
    
        /*
         * Getter and Setter for the multiselect QML property
         */
        bool getMultiSelect() const;
        void setMultiSelect(bool value);
    
    signals:
        /*
         * Signal emitted when the OK button has been clicked on the browse dialog
         * The OK button is not enabled unless a file is selected
         */
        void selectionCompleted();
    
        /*
         * Signal emitted when the cancel button has been clicked on the browse dialog
         */
        void selectionCancelled();
    
    protected:
        /*
         * Implements the run loop. Dialog stays open until a button is clicked.
         */
        virtual void run();
    
    protected:
        dialog_instance_t m_dialog;
        bool m_multiSelect;
        QVariantList m_filePaths;
        QVariantList m_filters;
    };
    
    #endif /* FILEBROWSEDIALOG_HPP_ */
    

    FileBrowseDialog.cpp

    #include "FileBrowseDialog.hpp"
    #include 
    #include 
    
    FileBrowseDialog::FileBrowseDialog(QObject* parent)
        : QThread(parent)
        , m_multiSelect(false)
    {
        m_filters.push_back(QString("*.*"));
    }
    
    FileBrowseDialog::~FileBrowseDialog()
    {
    }
    
    void FileBrowseDialog::show()
    {
        if (!isRunning())
        {
            m_filePaths.clear();
            start();
        }
    }
    
    QVariant FileBrowseDialog::getFilePaths() const
    {
        return m_filePaths;
    }
    
    bool FileBrowseDialog::getMultiSelect() const
    {
        return m_multiSelect;
    }
    
    void FileBrowseDialog::setMultiSelect(bool value)
    {
        m_multiSelect = value;
    }
    
    QVariant FileBrowseDialog::getFilters() const
    {
        return m_filters;
    }
    
    void FileBrowseDialog::setFilters(QVariant const& value)
    {
        m_filters = value.toList();
        qDebug() << "filter count: " << m_filters.count();
    }
    
    void FileBrowseDialog::run()
    {
        bps_initialize();
    
        //request all dialog events
        dialog_request_events(0);
        if (dialog_create_filebrowse(&m_dialog) != BPS_SUCCESS)
        {
            qDebug() << "Failed to create file browse dialog.";
            emit selectionCancelled();
            return;
        }
    
        //set the selection filters
        if (m_filters.count() > 0)
        {
            char** ext = (char**)new char[m_filters.count()*sizeof(char*)];
            int i = 0;
            for (QVariantList::iterator it = m_filters.begin(); it != m_filters.end(); ++it, ++i)
            {
                QString filter = it->toString();
                if (!filter.trimmed().isEmpty())
                {
                    int length = (filter.length() + 1) * sizeof(char);
                    ext[i] = new char[length];
                    strncpy(ext[i], filter.toAscii(), length);
                }
            }
            if (dialog_set_filebrowse_filter(m_dialog, (const char**)ext, m_filters.count()) != BPS_SUCCESS)
            {
                qDebug() << "unable to set file browse dialog extensions";
            }
            for (i = 0; i < m_filters.count(); i++)
            {
                delete ext[i];
            }
            delete ext;
        }
    
        if (dialog_show(m_dialog) != BPS_SUCCESS)
        {
            qDebug() << "Failed to show file browse dialog.";
            dialog_destroy(m_dialog);
            m_dialog = 0;
            emit selectionCancelled();
            return;
        }
    
        bool shutdown = false;
        while (!shutdown)
        {
            bps_event_t* event = NULL;
            bps_get_event(&event, -1);    // -1 means that the function waits
            // for an event before returning
    
            if (event)
            {
                if (bps_event_get_domain(event) == dialog_get_domain())
                {
                    //0=ok, 1=cancel
                    int selectedIndex = dialog_event_get_selected_index(event);
    
                    if (selectedIndex == 1)
                    {
                        int count;
                        char** filepaths;
                        if (BPS_SUCCESS == dialog_event_get_filebrowse_filepaths(event, &filepaths, &count))
                        {
                            for (int i = 0; i < count; i++)
                            {
                                qDebug() << "selected file: " << filepaths[i];
                                m_filePaths.push_back(QString(filepaths[i]));
                            }
                            bps_free(filepaths);
                        }
                        emit selectionCompleted();
                    }
                    else
                    {
                        emit selectionCancelled();
                    }
    
                    qDebug() << "Got file browse dialog click";
                    shutdown = true;
                }
            }
        }
    
        if (m_dialog)
        {
            dialog_destroy(m_dialog);
        }
    }
    

    This class derives from QObject (by QThread) which means that it can be used by QML when it exposes properties and signals. The FileBrowseDialog class has 3 properties

    -multiple selection: a Boolean flag indicating if single or multiple selection is allowed

    -filepaths: a read only value that returns the list of files selected

    -Filters: a read/write value is where you can specify one or more filters to file (for example, ".doc", "*.jpg") etc.

    The next part is how you call the FileBrowseDialog through the QML. To do this, we must inform the QML of the FileBrowseDialog page. This is done in the App class via the qmlregistertype code.

    App.cpp

    #include 
    #include 
    #include 
    
    #include "app.hpp"
    #include "FileBrowseDialog.hpp"
    
    using namespace bb::cascades;
    
    App::App()
    {
        qmlRegisterType("Dialog.FileBrowse", 1, 0, "FileBrowseDialog");
        QmlDocument *qml = QmlDocument::create("main.qml");
        qml->setContextProperty("cs", this);
    
        AbstractPane *root = qml->createRootNode();
        Application::setScene(root);
    }
    

    The QML is now ready to be able to use the FileBrowseDialog. The example below is a page complete qml which has a button and a label. When we click on the FileBrowseDialog button is open, and all selected files will appear in the label.

    Main.QML

    import bb.cascades 1.0
    import Dialog.FileBrowse 1.0
    
    Page {
        content: Container {
            Label { id: filebrowseDialogLabel }
            Button {
                text : "File Browse Dialog"
                onClicked: {
                    filebrowseDialog.show();
                }
            }
            attachedObjects: [
                FileBrowseDialog {
                    id: filebrowseDialog
                    multiselect : true
                    filters : ["*.doc","*.jpg","*.txt"]
                    onSelectionCompleted: {
                        if(filebrowseDialog.filepaths.length>0)
                            filebrowseDialogLabel.text = filebrowseDialog.filepaths[0];
                        else
                            filebrowseDialogLabel.text = "no file selected";
                    }
                    onSelectionCancelled: {
                        filebrowseDialogLabel.text = "file browse dialog was cancelled";
                    }
                }
            ]
        }
    }
    

    And it's pretty much just invoke the native dialog file navigation in stunts. Please note save the file would follow a similar model, but I found that this dialog box was not particularly useful because it displays only a simple dialogbox with a text file name entry.

    See you soon

    Swann

  • In Firefox 40 I can no longer click on the Blue Star and open the Bookmark dialog box

    When the current page already contains a bookmark, this one by pressing Ctrl + D also does absolutely nothing.

    Fix regressions. Please add automated tests to catch these regressions in the future.

    Thank you very much for all of your volunteer work very hard on the browser.

    Hi WalterGR, for me, 40 Firefox works in the same way as previous versions. One click adds a bookmark in the bookmarks unordered folder (you see the animation of the star in the list). A second click opens the Panel to modify bookmark. CTRL + d also works normally.

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any difference?

  • FieldChangeListener on a ButtonField displays a prompt with named Application Switch and full Menu options dialog box. instead of the action set.

    Hi I use a ButtonField in my class of the screen and adds a ChangeListener and provided the measures required in

    fieldChanged(Field field, int context)
    

    method. But everytime that I click on a button, a dialog box invites you to two play as Application Switch options and full Menu.


    I think that there is a method that must be overridden to avoid this problem. I get this result when I run my app in the device with OS 5.0, but it works fine on the Simulator (7.0).

    Use ButtonField.CONSUME_CLICK as a style.

    your override of navigationclick should also work, but you would raise the event changed yourself field before return true.

  • Research and problem of Tags dialog box

    Hello

    I have problem with the research and marking dialog box. I have properly put tags implemented in my custom portal webcenter application. I can add/remove tags on the pages and I am able to navigate through the results using Tag Cloud. However research component dialog does not return no results when I search tags. There is an additional configuration required to get results of tag in the search dialog component? I would be grateful of any information that might help solve this problem.

    Thank you

    Adam

    You have configured Oracle SES?

    If this isn't the case, you will need to configure your WebCenter portal to use the default search adapter.

    Change adf-config. XML as follows:

    
    

    Set to "false" or comment tag properties.

    Kind regards.

  • After popup showPrintablePageBehavior the dialog box print browser

    Is it possible to open the print browser dialog box after pressing a command button with showPrintablePageBehavior?

    Joost

    Hello

    Yes, there is. However, before describing the solution: be aware that the code below uses a setting of internal application which may change in the future without notice. Not that expected still to do, its an implementation detail of the framework that I use.

    Solution
    ======

    1. on the label f: view of the page, create a method beforePhase to a managed bean reference
    2. in the managed bean method (guess you named "beforePhaseMethod"), add the following code

    import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
    import org.apache.myfaces.trinidad.util.Service;
    
    ...
    
        public void beforePhaseMethod(PhaseEvent phaseEvent) {
            if (phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE){
                FacesContext fctx = FacesContext.getCurrentInstance();
                //use of internal request parameter, be aware of it
                Object showPrintableBehavior = fctx.getExternalContext().getRequestMap().get("oracle.adfinternal.view.faces.el.PrintablePage");
    
                if(showPrintableBehavior != null){
                    if (Boolean.TRUE == showPrintableBehavior){
                      ExtendedRenderKitService erks = null;
                      erks = Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
                      erks.addScript(fctx, "window.print();");
    
                  }
                }
    
            }
        }
    

    Frank

  • How to move an object using Distance and Angle of the dialog boxes only?

    I use Illustrator CS6. When I select an object and open the window move (either by pressing the Enter key or by selecting object > transform > move), I try and move the object at a given angle and at a given distance. I leave horizontal & vertical dialogues empty and just fill the information for the Distance and Angle. When I press OK (or copy), nothing happens. In all previous versions of Illustrator, this feature worked perfectly. I can't make it work in CS6. What I'm doing wrong or what setting I'm missing? Thank you

    http://forums.Adobe.com/message/4746459#4746459

    http://forums.Adobe.com/message/4510415#4510415

  • Missing actor of dialog box Message Maker

    In Labview 2015 should be an actor framework Message Maker dialog box.

    "I create a new project from actor Framwork model, but can not find in the Tools menu" actor framework Message Maker.

    In the context menu of the Task.vi in Alpha.lvclass I have actor framework"create Message.

    So I can create a new message class.

    "But why is-tools ' actor framework Message Maker missing?

    The creator of the Message has been deprecated. The "framework for actor" with the right-click menu in the window project in 2015 of LabVIEW and later should provide all the functionality previously provided by the message author.

    I thought that we removed the help topic, I don't know why she is always displayed in the LabVIEW 2015 online help. I filed the CAR 565761 for the updated documentation.

  • Order of execution for explicit file dialog boxes and query the user input dialogue

    Hello

    In my VI I use 1 and 2 express file dialog boxes prompt the user for input dialogue box. Y at - it any easy way to determine an order of exuction for these express dialog boxes? Or I have to use screws to notify?

    In fact, I just need the input of fo dialogue to prompt the user to be the first.

    Thanks for the tips!

    Martin

    Like most of the functions, the flow of execution can be set by plugging the error / mistake on clusters.

  • suggestion of the cancellation by programming the windows dialog boxes

    For some reason, while a utility that downloads the firmware in a device should be stopped. When using Taskkill mode forced to the command prompt (suggested here in this forum in another thread), the app closed, but the device does not respond properly (it is the poster of device firmware download is still in progress). To avoid this problem when you use taskkill in normal mode (no forced mode), utility like popups display messages "are you sure you want to download the process? Press Yes or no. ». Then when you press Yes it still displays a message to the user, "the firmware download process abandoned by the user.". The utility that downloads the firmware can be redesigned to avoid these pop-up windows, but it is a bit tedious process and is not possible at this time. Taskkill in forced mode also left aside.

    To do some automation, only option is to use taskkill in normal mode and must avoid the dialog boxes for "popup".

    Thanks in advance for any suggestions,

    Mathan

    Hi Mike,.

    You can use PostMassage to send events.

    See these links please

    http://msdn.Microsoft.com/en-us/library/bb775985 (vs.85) .aspx

    http://msdn.Microsoft.com/en-us/library/ms644944 (vs.85) .aspx

    Mike

  • Problems within the hierarchy of the modal dialog box

    I just started watching JavaFx2.0 and I encountered a problem with the creation of a Heirarchal of Dialogs collection (internship). I want to be able to do is to create a windowed application of hand and than create internal dialog boxes and maybe same dialog displayed in in dialog boxes created, it could serve to messages to a user.

    But I've found that I can create a main stage basis, and I am able to create a modal scene in this primary stage. But if the intermodal should create and display another stage, and for this new step to be modal, it always appears as if the 3rd stage is in its own application, (I know, application is not the right word, I'm looking for dedicated to...), it is the 3rd stage seems to work separately from the previous 2 steps.

    Here is a simple configuration of the 3 step of what I'm trying to achieve...
    public class NewFXMain extends Application
    {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args)
        {
            launch(args);
        }
        
        @Override
        public void start(Stage primaryStage)
        {
            primaryStage.setTitle("Main Stage");
            StackPane root = new StackPane();
            primaryStage.setScene(new Scene(root, 600, 400));
            primaryStage.show();
            
            DialogStage dialogStage = new DialogStage(primaryStage);
            dialogStage.show();
            
            
        }
        
        class DialogStage extends Stage
        {
            public DialogStage(Stage owner)
            {
                initOwner(owner);
                initModality(Modality.WINDOW_MODAL);
                setTitle("Dialog Stage");
                
                StackPane root = new StackPane();
                setScene(new Scene(root,300, 200));
                
                MessageStage messageStage = new MessageStage(this);
                messageStage.show();
            }
        }
        
        class MessageStage extends Stage
        {
            public MessageStage(Stage owner)
            {
                initOwner(owner);
                initModality(Modality.WINDOW_MODAL);
                setTitle("Message Stage");
                
                StackPane root = new StackPane();
                setScene(new Scene(root,150, 100));
            }   
        }
    }
    I make a glaring mistake in the code above, or is this a limitation of JavaFX 2.0?


    Just to give a few details, I use JavaFx2.0 and I use Netbeans 7.1 if that helps.

    Hello

    You must call. show() on the dialog box before show you the popup message (with the dialog as the owner).

    If you change it, the behavior is as you want it to be.

    Here is the modified code...

    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Modality;
    import javafx.stage.Stage;
    
    public class ModalDemo extends Application
    {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args)
        {
            launch(args);
        }
    
        @Override
        public void start(Stage primaryStage)
        {
            primaryStage.setTitle("Main Stage");
            StackPane root = new StackPane();
            primaryStage.setScene(new Scene(root, 600, 400));
            primaryStage.show();
    
            DialogStage dialogStage = new DialogStage(primaryStage);    
    
        }
    
        class DialogStage extends Stage
        {
            public DialogStage(Stage owner)
            {
                initOwner(owner);
                initModality(Modality.WINDOW_MODAL);
                setTitle("Dialog Stage");
    
                StackPane root = new StackPane();
                setScene(new Scene(root,300, 200));
                show();
    
                MessageStage messageStage = new MessageStage(this);
            }
        }
    
        class MessageStage extends Stage
        {
            public MessageStage(Stage owner)
            {
                initOwner(owner);
                initModality(Modality.WINDOW_MODAL);
                setTitle("Message Stage");
    
                StackPane root = new StackPane();
                setScene(new Scene(root,150, 100));
                show();
            }
        }
    }
    

    See you soon,.
    Osmoz

    Published by: osmoz on January 28, 2012 09:01

  • What is this dialog box? "Run-time error '380': invalid property value."

    I'm trying to load a registration program and I get a dialog box that indicates that following.

    "Run-time error '380': invalid property value."

    What it means. How can I solve this problem?

    Pescatore

    Hi arthur rossi.

    See the FAQ of the Roemer software that has exactly the problem mentioned.

    Refer to the Question I get an error message that says: one of the following values: "Runtime error 380 invalid property value", "Runtime Error 52" or "Invalid file name" in the following article. "

    Roemer Software FAQ (frequently asked Questions)

  • Foglight display size of the modal dialog box

    Hello

    Dashboards drilled down, I can choose how to display the detailed view.  So I chose popup--> the modal dialog box.  Now when I click on a line, instead of leading me to another page, it will display a popup window and view detail info.  The popup window has a fixed size and I can't change it.  Is there a way to change or set a certain size?

    Yes. You must change the settings from the view of exploration down, not the parent view. The settings are located under Configuration-> Options of Popup. You can play with the default size, size maximum and scroll bar to display the drilled down. It took me a while to figure this one out myself.

  • Helps the modal dialog box a value back to the calling page

    Greetings,

    Apex Version: 4.1.0.0.32


    What I'm trying to do is create a modal dialogue that is called from a form page. The user dialog box will report to IR which allow him to select a line and send a value of this line to a field of the calling page. I work in Firefox, but I get an error using IE 8. I hope that someone can show me why it does not work in Internet Explorer.

    Here's how I do it:

    Of the calling page:

    Created a button
    Action: Redirect URL
    Target URL: javascript:var rc = window.showModalDialog ('f? p = & APP_ID.:70: & SESSION.: & DEBUG.:', ",'resizable: Yes;) Center: Yes; dialogWidth:1000px; dialogHeight:500px ;') ;


    On the page called:

    The called page is an IR report where the query returns this as one of the columns:

    * (Note: I had to put a point '.' before the onclick so he could show in this thread.) It is not there in my actual code.) *
    select
    <a href="#" name="z" style="color:blue; text-decoration:underline;" .onclick="javascript:passBack(''' || LOT_NO ||''');">Select</a>' SelectThis
    , column1
    , column2
    from sometablename;
    This solves the anchor:
    <a .onclick="javascript:passBack('232158');"  href="#">Select</a>
    Here is the function Javascript is called the anchor onclick:
    function passBack(passVal1)
    {
      opener.document.getElementById("P75_ITEM1").value = passVal1;
      close();
    }
    When I run the present in Firefox, it works as expected. I click the button on the parent page. The modal dialog box is open and the report of the IR is displayed. I click on one of the links in the report and it returns the correct value to the appellant and closed page modal dialog box.

    When I run it in IE8, it fails. I click the button on the parent page. The modal dialog box is open and the report of the IR is displayed. I click on one of the links in the report and I get this error: 'opener.document is null or not an object ".

    I hope that it is clear and that someone can help.

    Thank you

    Larry

    A quick google search determines that window.opener does not exist when you use window.showModalDialog

    Range of suggestions to use window.open instead of window.showModalDialog to use instead of window.opener dialogArguments

    Try the following:

    The parent page to define a getPopupValue() function:

     function getPopupValue(){
       var dr =  window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
    
        if ( (dr != undefined) && (dr != '') && (dr != false) ){
         $x("P75_ITEM1").value = dr;
        }
     }
    

    Change the url of the button to call the function:

     javascript:getPopupValue(); 
    

    On the popup page change the valve function for:

    function passBack(passVal1)
    {
      returnValue = passVal1;
      close();
    }
    

Maybe you are looking for