Send data from a pop-up window

I place various controls in the pop-up window. And I transfer data to the main application. I tried to use the method proposed here http://www.adobe.com/livedocs/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Book_Parts & file = layouts_065_50.html, but fails to send the variables, that text in the textbox control.

How can I pass variables (data) from the main application pop-up windows? Or how close a popup window to call a function of the main application?

Hi Astraport,

You can call and pass the data to the function in the main application of the file using... Application.application.SomeFunc (param1, param2);

In your pop-up... depending on the removePopUp() file...

private void removePopUp(event:Event):void {}

Application.application.SomeFunc ("Value1", "Value2"); where somefunc is public service defined in the main application file...
PopUpManager.removePopUp (pop1);
}

Function of the main application file

public void somefunc(param1:String,_param2:String):void

{

write your logic

}

You can also follow another approach using custom events... Dispatch a custom event say "popUpCloseEvent" and dispatches the event in your function removePopUp() and listen to this event in your main application and manage your logic in the main application.

It's the best approach, as I say, that you can use at any time.

Thank you

Jean Claude Chari

Tags: Flex

Similar Questions

  • How to send data from the client to the server using tcp

    1. as I am new to watch I need help with sending data from client to server. I went through various examples of labview, but each of them also explains transfer of data to the client server. But I need help regardng send data from the server to the client.

    2.i would use the data type variant for sending my data.

    Can someone help me please. Thank you

    Regardless of the meaning. Once you have a connection each end allows it to send data to another. Just create what you want to look like interaction.

    Do you want the client sends a command that request data?
    How do you think the response data to look like?

    You can send variants, but probably not worth the effort.

    Mike...

  • graphical representation of data in the pop up window

    Hello

    I would like to chart a selection of data in a pop-up window, the data are selected and produced within a vocation while loop. I would also like to be able to close the pop-up of in the pop-up, or appeal vi.

    That's what I got so far, any suggestions?

    Thank you

    Hello

    Watch attachments

  • An FTP error occurred - cannot establish a connection to the host. Internal data error. Unable to send data from network.

    Recently, I started out of the blue to get this message when I try to connect to an FTP of Dreamweaver. I have CC was last updated. I have like 50 sites, more on different servers and none of them will connect. So I don't know, it can't be a server problem. Yesterday, everything was fine. I made no change what so ever. I uninstalled Dreamweaver and reinstalled him and I get the same thing. It is not the site for 30 seconds and then exhale. As soon as I hit the button to connect as 1 second later, I get this error. I have reset all modems and routers, etc. I can't find anything online about this specific problem. I'm at my wits end. I have projects due, but cannot connect. It's Thanksgiving and trying to solve this problem instead of spending time with the family. Any help would be much appreciated.

    "An FTP error occurred - cannot establish a connection to the host." Internal data error. Unable to send data from network. »

    Nope, that is not the case, I have disabled this service and now it works fine!
    He was not the firewall, but the update 25-nov2014 of Norton Protection against vulnerabilities.  ! Norton is the note and fix it for the next update in the coming days...

    I have

  • Sending data from one component to another

    I want to send data from one component to another.

    Both are on the page of Main.mxml

    What is the best way to do it (without going into a frame)

    Who send data up to the main.msml via an event then complex treatment of vars public and pick up in the second pane, but is it possible to go straight?

    Thank you

    Dan

    Once the element keeps one reference to another. Or you set it to a global var shared by two components.

    C

  • Messages from a pop up window

    I use PopUpManager to launch a pop-up window (in the Air). But shipped from the pop-up messages seem to be disappearing into the ether. I tried childlist is of APPLICATION setting, but the application does not seem to receive all messages from the pop-up window. Any suggestion would be appreciated!

    Thank you.

    If this post has answered your question or helped, please mark it as such.

    SystemManager, popup windows here in their own display list. Add the event listener to systemManager, as in my post from Flex 3 cookbook.

    en_US http://www.adobe.com/cfusion/CommunityEngine/index.cfm?Event=ShowDetails&postid=15466&Loc= & productid = 2

  • How can I use notifications to send data from different sources for the same chart?

    Hello

    I use the model of 'Continuous measurement and logging' project comes with LV 2013.

    It is extremenly helpful in understanding the messaging between the acquisition, graphic and loops of newspaper. (Thank you NEITHER!)

    I ran into a snag though.

    I want to change so that my graphic loop receives notifications of data from two sources of acquisition by the declarant.

    I have trouble getting the data from the two sources to display on one graph.

    I've isolated the problem in the attached vi.

    Here's what happens:

    1. I create 2 parallel loops data and send the data to a third parallel loop with the notifiers.

    2. the third loop receives data from one of the loops because one of the authors of just receiving notifications is to expire instead of receive data.

    Can anyone suggest how can I fix?

    Thank you.

    -Matt

    Here's my modification of your VI. I put notes on the block diagram to explain the changes. He uses a queue for data transfer to avoid data loss. It uses a notifier to stop loops. All local variables and value property nodes have been eliminated.

    The way loops are arrested probably let some data in the queue. No more of one or two iterations of each of the loops of data acquisition. If you need ensure that all data has been displayed (or recorded in a real application), then you must stop acquiring loop first and read the queue until you know it's empty and both other loops stopped. Then stop the render loop and release the queue and the notifier.

    Lynn

  • How to send data from CANOE to LABVIEW

    Hello

    I need to receive data from canoe in Labview.

    I prepared the VI (ex command.vi) sender and receiver VI (Simple UPD - receiver.vi) attached.

    My problem is:

    (1) when I run Canoe (arrested measure) and send the command start-> Canoe starts measurement. (OK)

    (2) when I run VI receiver and send the command Start-> receiver receives the command. (OK)

    (3) when I run the canoe, then run VI receiver and send the command start-> receiver VI receives command but DO NOT canoe starts measurement (canoe does not receive order). (NOK)

    I use the FDX Protocol (UDP-based) and it looks like canoe and receiver VI can work simultaneously on the same port (2809).

    How can I solve this problem?

    PS: Later I want to put the canoe in free run mode to control the Labview application so I need to work VI receiver with canoe.

    OK, now I get it.

    Is there a reason that you need three applications (transmitter + receiver + canoe) at the same time?

    Could not put the sender and receiver in a VI? That would solve your problem of port.

    Another way would be to send messages to general circulation, so canoe and the other VI can receive.

    A third option would be to send the message twice, once at canoe, once the receiver VI.

  • How to send data from the Page with a form to fill out?

    How can I automatically include the page title or any text in my Web page when my client click on the Submit button in a form to fill out?

    This may seem obvious, but if you want to receive data from a form, and then place it in the form. A hidden form field with the title page and the text of your Web page will send these data on the form submission.

    best,

    Shocker

  • Ask Timedout error when sending data from planning thorugh Smart view

    Hello

    We receive Request Timed out error when trying to send data to the planning application by using Smart view.

    "Unable to connect to the provider because: the request has timed out." Contact your administrator to increase netRetryCount and netRetryInterval. "Is someone can you please tell me where I can increase the time-out settings? Can someone give me the link to the document that detailed the steps to do this.

    Go to the knowledge base and search for document ID 744559.1

    Cause
    By design, Internet Explorer imposes a time-out for the server limit return data. Internet Explorer does not indefinitely wait for the server to come back with data when the server has a problem.

    Smart View communicates via HTTP to which Internet Explorer DLLs are used. Smart Display users who run large queries or have a slow network connection might encounter the error, "the request has timed out. Contact the administrator to increase NetRetryCount and NetRetryInterval. »

    This error message may be misleading because this error also occurs if Internet timeout settings Explorer does not respond to large farms. By default, Internet Explorer has a value of KeepAliveTimeout to a minute and another factor limiting (ServerInfoTimeout) of two minutes.

    Solution
    Please see the following two Microsoft articles for more information:

    http://support.Microsoft.com/kb/813827
    http://support.Microsoft.com/kb/181050

    The following steps must be made with the help of your systems management group. It is recommended that a backup of the registry is performed before making any changes.

    On the client computer, add/update the following registry keys:

    1. open the registry, Start-> Run-> Regedit.

    2. Locate the following section:

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings].

    3. create the new DWORD key with decimal values:

    ReceiveTimeout = 480000

    KeepAliveTimeout = 180000

    ServerInfoTimeout = 180000

    In this example, the ReceiveTimeout setting is 8 minutes. KeepAliveTimeout and ServerInfoTimeout settings are 3 minutes. These values are set to demand longer running more.

    4 restart the machine for the new settings to take effect.

  • Sends data from LaunchPad MSP430G2553 Labview

    Hi all

    So, I have a MSP430G2553 LaunchPad and I want to be able to send data to Labview via USB to UARTusing.

    What I do in the MSP430G2553?

    Well, I wrote code that whenever I press a button on the LaunchPad it I send hollow text USB using UART. Using a program on my PC that monitors my serial port, I can confirm that, whenever I press the button, the text comes to the PC. I was also able to send commands to the monitor (it has a 'send the command' field) to the MSP430. If the connection works fine, between LaunchPad and PC.

    What I did in Labview?

    On the piece attached "" Labview_MSP430. "» JPG"you can see my code. Whenever I click on the "VISA resource name" there is no COM. It is said that "Refresh", and even when I click on it nothing happens. As you can see in the file "Device_Manager.JPG" PC can see my device in COM3 MSP430.

    So my question is, what should I do for Labview can see my device COM3/MSP430G3553? And then, my correct code so that it can read the port series?

    What is important is that the com port is visible in MAX (Measurement and Automation Explorer) and for the port is visible, you must install the driver NI-VISA.

    In your code, you must also add the VISA configure the Serial Port. Replace the VISA open with her. Inside the loop, you should not use VISA bytes to the Serial Port. The msp code must be set up to add a newline of endpoints (i.e.) and simply set the number of VISAS read of bytes to an arbitrarily high number. Playback will be automatically terminated when the character is detected.

  • Retrieve my data from 2013 on my window calendar 8.

    Original title: the loss of data on the timing of window 8

    Hello

    I noticed that I lost my data (year 2013) on my window calendar 8. It shows only the data on 2014. I was wondering if you could tell me how to recover my data on my window calendar 8 2013.

    -------------

    Sok san

    Windows 8 calendar is not actually store any data at all, it shows just the most recent stuff he finds the real source of the data.

    To access the true source of the calendar data, go to http://calendar.live.com (if you use Microsoft Calendar of Outlook/Hotmail/MSN/etc.).

  • Opening a popup window from another pop-up window

    I am difficult to do this, I am again the directory of companies at this address:

    http://www.localeyenewspaper.com/business.html

    When you click on an ad, on some companies that have Web site I want to put a link below the ad in the pop up window and when the user clicks on another window pop up opens with their site. However when I tried to do this instead of another opening of the window, the window with the announcement went to the site and he also stayed the same size without resizing for the dimensions I need to view the Web site, can someone help me? Thank you

    I must also highlight that, depending on the behavior, you are
    are looking for, making it only ONE of the changes I suggested here could be
    adequate. If you do nothing other but add the «;» return false"as shown,
    that might give you the desired behavior.

    --

    E. Michael Brandt

    www.divaHTML.com
    www.divahtml.com/Products/scripts_dreamweaver_extensions.php
    According to the standard scripts and the Dreamweaver Extensions

    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, and alia

    --

  • Windows Vista. I can't restore data from backup after reinstalling windows.

    Regularly, I backed up my Dell laptop Vista hard disk independent. I just had to reinstall windows and now when I go to restore my data, I get a message saying the backup location is not available. I ran a backup on the same drive as before, but the problem remains. Even backup always lists all the backups I made before resettlement. How can I restore my data?

    Here's an article from someone who was essentially the same problem as you and finally resolved itself do the restore again (although some other suggestions can help more in your situation). http://social.answers.microsoft.com/Forums/en-US/vistaprograms/thread/f9d74b19-5eec-4453-a3b4-ff11940ec83a.

    Frankly, at this point, I'm puzzled.   I don't know what else to try.  Maybe someone with more knowledge (a support technician or MVP) will read and respond to this topic.  I suggest you try this announcement in the Technet forums: http://social.technet.microsoft.com/Forums/en-US/itprovistaapps/threads.  They are a little more technically oriented than here and may be able to find a solution to your problem.

    Good luck and I hope you get your problem resolved and can recover your lost .pst files. Lorien - a - MCSE/MCSA/network + / A +.

  • How to send data from c ++ to qml to an another qml.

    Hello

    I'm quite confused about a simple problem, I'm sure. Let me put some of my code and then I'll ask my question

    hand. QML

    // Default empty project template
    import bb.cascades 1.0
    import bb.data 1.0
    
    // creates one page with a label
    
    TabbedPane {
        Menu.definition: MenuDefinition {
            actions: [
                ActionItem {
                    title: "Refresh"
                }
            ]
        }
        showTabsOnActionBar: true
        Tab {
            title: qsTr("Employee")
            NavigationPane {
                id: everyonePane
                Page {
                    id: everyoneFeed
                    ListView {
                        objectName: "FeedView"
                        id: FeedView
    
                        layout: StackListLayout {
                            headerMode: ListHeaderMode.Sticky
                        }
                        listItemComponents: [
                            ListItemComponent {
                                type: "item"
                                DetailFeed {
                                }
                            }
                        ]
                    }
                }
                attachedObjects: [
                    ActivityIndicator {
                        objectName: "indicator"
                        verticalAlignment: VerticalAlignment.Center
                        horizontalAlignment: HorizontalAlignment.Center
                        preferredHeight: 200
                        preferredWidth: 200
                    }
                ]
                onCreationCompleted: {
    
                }
            }
        }
        Tab {
            title: qsTr("TimeSheet")
            Page {
            }
        }
        Tab {
            title: qsTr("Calendar")
            Page {
            }
        }
    }
    

    detailView

    import bb.cascades 1.0
    
    Container {
        layout: StackLayout {
            orientation: LayoutOrientation.TopToBottom // this line stacks everything below
        }
        bottomPadding: 20
        Container { // single row
            id: row1
            // individual row container
            layout: DockLayout {
            }
            preferredWidth: maxWidth
            Container { // container for image
                preferredWidth: 150 //size of image if known
                preferredHeight: 150
                topPadding: 10
                leftPadding: 20
                horizontalAlignment: HorizontalAlignment.Left
                verticalAlignment: VerticalAlignment.Center
                ImageView {
                    preferredWidth: 150 //size of image if known
                    preferredHeight: 150
                    imageSource: "asset:///images/person.jpg" // some image
                }
            }
            // stack labels
            Container { // container for labels
                horizontalAlignment: HorizontalAlignment.Left // align this container to the left
                translationX: 200
                verticalAlignment: VerticalAlignment.Center
                layout: StackLayout {
                    orientation: LayoutOrientation.TopToBottom // this stacks the labels
                }
                Label {                objectName: "firstname"
                    text: "first label"
                }
                Label {
                    text: "second label"
                }
            }
        }
        Divider {
        }
    }
    

    Employee.cpp

    // Default empty project template
    #include "Employee.hpp"
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    #include 
    #include 
    
    using namespace bb::cascades;
    
    QString mQueryUri;
    
    Employee::Employee(bb::cascades::Application *app) :
            QObject(app) {
        // create scene document from main.qml asset
        // set parent to created document to ensure it exists for the whole application lifetime
        mQml = QmlDocument::create("asset:///main.qml").parent(this);
    
        // create root object for the UI
        mRoot = mQml->createRootObject();
    
        // Retrieving my activity indicator
        //mActivityIndicator = mRoot->findChild("indicator");
        //mActivityIndicator->start();
    
        // Retrieving my list from QML
        mListView = mRoot->findChild("dribbbleFeedView");
        GetFeed("everyone");
    
        // set created root object as a scene
        app->setScene(mRoot);
    }
    
    void Employee::GetFeed(QString feedType) {
        // First off we initialize our NetworkManager
        QNetworkAccessManager* netManager = new QNetworkAccessManager();
        if (!netManager) {
            qDebug() << "Unable to create QNetworkAccessManager!";
            emit complete("Unable to create QNetworkAccessManager!", false);
            return;
        }
    
        // First off we initialize our NetworkManager
        netManager = new QNetworkAccessManager();
        if (!netManager) {
            qDebug() << "Unable to create QNetworkAccessManager!";
            emit complete("Unable to create QNetworkAccessManager!", false);
            return;
        }
    
        mQueryUri = "http://mycompany" + feedType;
        // We setup our url
    
        QUrl url(mQueryUri);
        QNetworkRequest req(url);
    
        // Setup the reply and connect to the reply function
        QNetworkReply* ipReply = netManager->get(req);
        connect(ipReply, SIGNAL(finished()), this, SLOT(onReply()));
    }
    
    void Employee::onReply() {
        QNetworkReply* reply = qobject_cast(sender());
    
        QString response;
    
        bool success = false;
        if (reply) {
            if (reply->error() == QNetworkReply::NoError) {
    
                int available = reply->bytesAvailable();
                if (available > 0) {
                    int bufSize = sizeof(char) * available + sizeof(char);
                    QByteArray buffer(bufSize, 0);
                    int read = reply->read(buffer.data(), available);
                    response = QString(buffer);
                    success = true;
                    Q_UNUSED(read);
                }
            } else {
                response =
                        QString("Error: ") + reply->errorString()
                                + QString(" status:")
                                + reply->attribute(
                                        QNetworkRequest::HttpStatusCodeAttribute).toString();
                qDebug() << response;
            }
            reply->deleteLater();
        }
        if (response.trimmed().isEmpty()) {
            response = "Request failed. Check internet connection";
            qDebug() << response;
        }
    
        bb::cascades::GroupDataModel* dm = new bb::cascades::GroupDataModel(
                QStringList() << "id");
    
        dm->setGrouping(bb::cascades::ItemGrouping::None);
    
        // parse the json response with JsonDataAccess
        bb::data::JsonDataAccess ja;
        QVariant jsonva = ja.loadFromBuffer(response);
    
        QVariantList feed = jsonva.toMap()["employee"].toList();
    
        QVariantMap player;
    
        foreach (QVariant v, feed)
        {
            QVariantMap feedData = v.toMap();
            dm->insert(feedData);
        }
    
        mListView->setDataModel(dm);
        mListView->setVisible(true);
    }
    

    OK so here is my question. I load a listview, in my hand, calling another qml, detailview. Given that my PPC is load my json file how can I send what I receive in my datamodel in my detailfeed can I change we tell the label with objectName: "firstname" to change the text for datamodel.name?

    Hope I am clear enough.

    Thank you

    I think that you can access ListItemData in detailView.qml. Say ListItemData.id.

    Why do you add only a mapping in groupdata. I think you need to add all the necessary fields such as firstname and so on. Right?

    bb::cascades::GroupDataModel* dm = new bb::cascades::GroupDataModel(
                QStringList() << "id");
    

Maybe you are looking for