Pass values between components

Hello, this is my first questions in this forum and I hope that someone can help me.

I use components in my application and I want to get a single value that I create a component in another component. I know that there is more that I can do in different forms, but I just want to choose the best. Here's the code to better explain my questions.

Component1:

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="164" height="36"> 
   <mx:Script>
      <![CDATA[
         
       //Metemos el id de la cuenta que queramos cargar
       public function queCuenta():Number {
            var idAccount:Number = Number(accountnumber.text);
            return idAccount;
       }
      ]]>
   </mx:Script>
   <mx:TextInput id="accountnumber" x="74" y="8" width="36"/>
   <mx:Label x="25" y="10" text="Cuenta" width="62"/>
   <mx:Button x="118" y="8" label="OK" width="42" click="queCuenta()"/>
   
</mx:Canvas>

I want to use idAccount in another component. I want to print this number in an another component label. What is the best code what to do?

Thanks and sorry, but my English is not very good.

It is placed before the script tag, I mean inside the main tag.

as:

http://www.Adobe.com/2006/mxml"width ="164"height ="36">

[Event (name = "valueChanged", type = "flex.events.Event")]

.

.

.

.

seems you have to study a little more about custom events:

http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=createevents_1.html

Tags: Flex

Similar Questions

  • Passing values between tabs, using a structure of housing.

    At the risk of exposing my ignorance, I have a problem of substance; How to pass values in a controlled tab structure of the case.

    I have a simple user interface that uses a control tab control container a structure of all cases wrapped in a while loop. I use

    LabVIEW 2012.

    The basic intent is to run VI in tab 1, whose results would be available for the VI tab 2 ect...

    (See the attached example; an experience I wish that changes to the controls to page 1 int & string will appear

    the indicators corresponding to page 2).

    I can "pass" the values of a case outside the case itself (through a tunnel of output) structure, but can't seem to do

    available for all other cases by a tunnel entrance.

    I tried to tunnel of the case in a registry to lag on the while loop, but am upset by retrieving that data again in another case.

    I tried to use local variables, but obviously do not understand the paradigm brought LabVIEW for variables. I can create a local

    variable but can't seem to 'plug in' to an indicator on the second page.

    First question: is a reasonable method for execution of the loop control program structure business controlled within a certain time tab?

    I chose it because I have literally dozens of parameters to define, validate and want to manage Visual space

    for the operator. For example, I would that this sequence:

    1. Question and list of facilities available on my PC
    2. Select a device to use, make sure it works properly
    3. Set the parameters for this particular device (30)
    4. run the device, collect data and save the results

    Second question: it is clear that I don't know how to use variables, and the examples I read involve transmission of data to parallel structures

    and not in a case. Is a local variable to a reasonable method of transmission of data between the "tabs"? I will gladly make

    accept the reprimand to 'RTFM' until 'FM' required is identified.

    Thank you in advance for your kind attention to my wisely first year survey

    Shift registers are simple to get data from.  Where is your problem with their use?  However, have you considered just using the terminals directly in the case of the Page 2?

    You must learn to use the Structure of the event.  You shouldn't care what tab you are on.  It's all in the same VI.  Therefore use a Structure unique event for all your control value changes.

  • Pass values between different areas on the same page.

    Hi guys!

    I'm developing a simple application where we have the list of students. I'm displaying information on a separate page for each student. Do you have any idea how and if I can pass parameters between regions, on the same page? I have a view showing, student card name information etc, and I want to create another view on the same page, which will be the student and will return a list of its subscribed courses.

    Part of my database is something like this:

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

    Students

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

    ID (PK)

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

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

    Student_course

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

    ID (PK)

    Student_id (FK)

    Course_id (FK)

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

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

    Course

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

    ID (PK)

    You have no idea how this can be done? I found information how to pass parameters between pages, but not on the same page.

    Thanks in advance!

    P.S. I am using the Application Express (declarative programming via a web browser), the use of the Application Builder.

    I discovered that I really had to. I just had to replace the "1" in my sql query with: P9_STUDENT_ID

    Thanks for your help anyway!

  • Navigate between the report and dashboard and pass values between another column

    Hello

    I have a question about navigate from 1 report to a dashboard page passing value from column 1 to column 2 in the second report...

    In OBIEE 11 G, I create link action report 1, column 1 and this link from the action is go to the content of the BI and the destination is a dashboard page, which has used 2 column as a dashboard and there are 3 reports that all use column 2 to filter. Now, the dashboard page 2 column is an alias for column 1 report 1, from the point of view of users, these are the same, but OBIEE point of view, they are different.

    My action link is able to access the dashboard, however, the value in column 1 which I clicked on run navigation, not are placed in column 2 as the line of dashboard does not receive this value when navigating...

    Since I can't put column 1 in dashboard 2, nor that I can put the 2 column in the report 1. Because our data model is done in the way that if I use column 1 or 2 in both cases, it will be o-ring...

    Is there a way around this problem?

    Let me know if I need to elaborate

    Thank you

    Hello

    You are going to have three main dashboard page (i.e., dashboad1, 2, 3) in the dashboard you will be having 3 different relationship with different column aliases (e.g. columnx_alias1, columnx_alias2, columnx_alias3) and you're going to have a dashboard more page say dashboardx a report with columnx. Now if you click on report of dashboard1 to go to dashboardx, click on report of dashboard2 also should go to dashboardx, click dashboard3 report should also go to dashboardx.

    1 > you can create 3 variable presentation for column 3 aliases and hide. {{{You can use the union query in sql result say columnx select from table where columnx='@{column1}' union select columnx table where columnx='@{column2}' union select columnx table where columnx='@{column3}'.
    2 > now you can hide these guests with variables.

    Please let me know if you are facing a problem.

    Thank you
    Yacoub

  • passing values between different vi

    Hi guys, it's perhaps a question very basic but could not able to find the solution.

    I have main Vi and one under Vi, in which my main vi produces random data and send it to the Subvi. Here, I want to open the window of Subvi permenently I wanted to say that if I click on the display button, the value has to get the update, but in the example attached each time on the screen flashes because of the reason each time is called, I even tried passing random values using a queue more and read in the Subvi nthng work, thanks in advance,

    John

    Hi John,.

    One of the causes of her flashing, it's the sub vi property has been set to 'Close thereafter while initially closed'.

    Even if you set the "sub - VI Configuration node... ' to 'Close thereafter while initially closed'.

    The two places must be defined correctly.

    I've done a few other mods. See if it's what you wanted.

    Steve

  • Reports 2-navigate and pass values between 2 different columns

    Hello

    I have a question about navigate from 1 report to another while passing the value of column 1 to column 2 in the second report...

    In OBIEE 11 G, I create link action report 1, column 1 and this action link is access BI content and the destination is report 2. Now, report 2 column 2, which is an alias for column 1 report 1, from the point of view of users, these are the same, but OBIEE point of view, they are different.

    My action link is able to navigate to point out 2, however, the value in column 1 which I clicked on run navigation, not transmitted in column 2 in the report 2...

    Is there a way around this problem?

    Let me know if I need to elaborate

    Thank you

    Hello

    1 > create a report with the column 1 and column 1 of the brand is requested in this report (this will be your interim report).
    2 > in the second report of the condition implemented column2 filter is equal to (filter based on another through the analysis of the above-mentioned report and give the column).

    Please let me know if it solves your problem.

    Thank you
    Yacoub

  • Passing values between reports built on a different domain

    Hi all

    I was struck with a problem of passing parameters of rep1 (built from business line 1) and rep2 (built from domain 2), I have metric in rep1 values, when you click on this metric value, he should go to rep2 which is built on a completely different area...

    Thank you
    Anthony

    Hello

    Please see the link below:

    http://oraclebizint.WordPress.com/2008/04/30/Oracle-BI-EE-101332-understanding-dashboard-prompts-passing-prompts-to-multiple-subject-areas-aliases/

    Re: How to use URL GO?

    Thank you

    Deva

  • Passing values between form

    Hi all!

    I have a small question. I started to work on ORacle APEX today and have to pass on the value of my Login Page to the employee detail Page. I know that there is a similar to position
    How to pass a value in form
    But I could not get my reply in this way. As I am lack of time, I can't get a lot.

    Scenario:

    Login page has P111_EMP_NO AND P111_PASSWORD. On submit, there is a process called "Login", where he calls a custom authentication package and verifies its authenticity. After its success, I want this P111_EMP_NO to go to the details used report Page where it displays information about the employee.

    Your help is appreciated.
    Thank you

    Hello

    The value contained in P111_EMP_NO should be available in the APEX provided the substitution string "APP_USER.

    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref166

    CITY

  • Passing variable between components

    FD: I am a newbie to Flex.
    I have a web application of simple consumer where a user connects and gets authenticated (this is inside the #1 element), it is presented with a screen (it is a condition of the child). In this screen is the #2 component that has a shape. The user fills out the form, and the component that writes to a database with the user_id. The user_ID was initially adopted component to connect to the application through an event. Why this user_id is not visible within the #2 component?
    I need user_id in each component in the main application. Is there a way I can make it available in the world for this session of the user. Thanks in advance. See you soon

    I've solved for now, although I'm not sure it's the best way to accomplish what I wanted. Here's what I've done in the main application, if anyone is interested

    1. I've added the following tag

    2. I've updated the tag with the value obtained from the event
    user_id = profile.getUserID ();
    3. I coded the component by using the user_id property


    In Comp 2
    I have step 1 and I could easily use the user_id.

  • passing parameters between pages

    Hello

    I have 2 custom pages, navigate from one page to another. I want to perform certain conditions on the other page-based features. For this I need to pass Boolean parameters between pages, but don't know how.

    I checked the putsession, putparameter, but somehow, they don't work.

    Thank you

    You can use pageContext.putTransactionTransientValue () and pageContext.getTransactionTransientValue () to pass values between pages.

    Prasanna-

  • Passing VARs between flex components

    Hello

    How can I pass VARs between flex components?


    I try: public var TypeGaleria:String = 'Fotos';

    but does not work!

    You can communicate between the application main and components, as well as between the components using 'mx.core.Application.application' (or parentDocument and parentApplication), but which is considered bad practice, as it results in a loosely coupled application.

    Import mx.core.Application;

    public var app:Object = mx.core.Application.application;

    myComp1 = app.myComp2.myVar;

    For a loosely coupled application, use custom events to pass data autour. Here's my message to Flex cookbook on the use of the custom in a wizard based MVC events:

    http://www.Adobe.com/cfusion/CommunityEngine/index.cfm?event=ShowDetails&ProductID=2&postI d = 11246

    If this post answers your question or assistance, please mark it as such.

  • Passing variables between LabVIEW and TestStand

    Hello

    I'm just learning how to use TestStand and although there are a multitude of resources available, I always find me at a loss on how to pass variables between TS and LV, leaving me to think that there is one fundamental thing that I'm missing which is likely, given that I have a weeks experience with LabVIEW and a days of experience with TestStand.

    I took a glance to the example of 'Clusters' to the Code Modules in TestStand examples (I use TS 2016 if it matters) because I thought it would be quite ideal for what I hope. In this case, I hope to be able to pass a string (a file path) to LabVIEW and VI power take this string and use it as part of an order for the Exec.VI system.  Then, I would be able to pass strings back to TestStand to show the user if an error occurred, but I thought I should get the first part of work.

    I guess my question is what do I have to wait to see in clusters to the example of the Modules of Code? The Watch window displays all defined variables premise on which has the ContainerOut in the Variables pane, but I don't see any kind of update on facades (VI1.vi and VI2.vi) LabVIEW code. Should I be?

    I looked at a few other discussions of the forum here and here, as well as the document of the basis of knowledge here, but could not recreate their solutions. It seems that the connector pane would be a viable way to go, but I'm not sure on how we create and use effectively. According to this document , it makes it seem like it should be simple enough to makes these terminals, but I am still missing a key step. I was able to follow all the steps on the knowledge base document and run the sequence, but then had no idea if it worked or not; I have the report show me the values of the variables I put, but I have no idea whether or not he actually did anything with the LabVIEW VI, or how I could see that.

    Please let me know if you need further information or clarifaction everything I ask.

    Thank you for your time,
    JColvin

    Digilent, a company of National Instruments

    If you want to enter values, you must create a vi for instance dialog box

    The OK button will allow new values to pass to the output terminals.

    A Cancel button will pass just the original through the output values without alteration. The VI will close when either the OK button or cancel were pressed.

    Concerning

    Ray

  • Pass data between panels

    I have a digital slide on a Panel. When I move the cursor, I need the value update on another Panel.

    How can I do this?

    The two panels are loaded as a senior-level windows.

    It seems that I read something on the use of queues to pass data between the panels, but I can't seem to find where I read that.

    A basic concept that differentiate the CVI to other languages, it's that there is no relationship between a sign and a specific source file. I mean, you do not need to put a sign functions in a specific source file: they can be spread over multiple sources; Conversely, you might have a source only that collects reminders for all panels of files in your application. What readers recall execution are Panel handles and control ID. (One effect of this paradigm is, you might have a reminder installed on controls on different panels).

    For this reason, there is no problem by putting the cursor callback in panel1.c. In addition, you can call the file source in a different way.

    Arriving at the base of your problem, a DAQ multithreaded application is really different from a UI single-threaded application.

    Put the functions of data acquisition in a separate thread can be beneficial for your application, because they are not likely to suffer user interface events.

    CVI provides also the different methods of transmission of data between threads. the most powerful in data acquisition applications is probably a Thread Safe queue.

    I suggest you look at Programmer's Reference > chapter of the creating multithreaded Applications to aid, where the basic principles of programming are explained multithreaded and information are provided on all instruments CVI includes.

    If you want to discuss on this scenario, I suggest yu to start a new thread, as it has nothing to do with the original question with which you started this discussion.

  • passing variables between the pop-up windows

    I'm moving one popup to the other variables. It works fien if I spend bvariable of main application as soon as I'm moving from variable popup to popup window it does not work here is what I am trying ro:

    That works fine

    hand. MXML

    private function launchMoreInfo (): void {}
    var win: view = PopUpManager.createPopUp (this, opinion, true) as point of view;
    //

    victory. AccountNum = list1.selectedItem.accountNum;
    Win.User = user;

    }

    But if I try to pass variables to the pop-up window, created from popup component, is not ' work

    View.MXML

    private function dsclientevents (): void {}
    var win2:view = PopUpManager.createPopUp (Thi, dsclienteventlog, true) like point of view;
    //

    win2. AccountNum = 'test ';

    }

    AccountNum is declared in dsclienteventlog.mxml

    Is it possible to pass variables between the pop-up windows?

    I would much apreciate your help

    Thank you

    Hi friend!

    I have faced this kind of problem and solved using 'Public static var '.

    Just, you declare a public static variable in your class Popup. Then you can directly set the value to this variable as,

    ClassName.StaticVariableName = value;

    In your case,.

    say PopUp2.mxml or PopUp2.as

    =======

    In the PopUp1 script:

    OnItemSelectionChange (event): void

    {

    PopUp2.m_iSelectedID = DatagridID.selectedItem.AccountID; It will change the value of this variable, even if the popup2 is open.

    your stuff here...

    }

    Try this, I hope this will help you.

    Thank you

    Merlina.

  • pass variables between form

    Hello

    I use oracle forms 6i.
    How can I pass variables between Forms?
    Consider the scénarion of a login form.
    Once a user logged in successfully, a new form is displayed, where his name is to be displayed
    like '< user > welcome. '
    If name must be past form at the home page login form.

    Is this possible with Oracle?

    Adkins

    Adkins,

    For Global Variables just assign a value to that, and it's initialization. Or you can use

    DEFAULT_VALUE(NULL, 'GLOBAL.');
    

    Make sure that you assign the appropriate value to the global variable before opening the new form.

    And for the parameter, try.

    DECLARE
         Pl_Id PARAMLIST;
    BEGIN
         Pl_Id := GET_PARAMETER_LIST('tempdata');
         IF NOT ID_NULL(Pl_Id) THEN
              DESTROY_PARAMETER_LIST(Pl_Id);
         END IF;
          Pl_Id := CREATE_PARAMETER_LIST('tempdata');
          ADD_PARAMETER(Pl_Id, '', TEXT_PARAMETER, '');
          Open_form('', ACTIVATE, SESSION, Pl_Id);
    END;
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

    Published by: Manu. April 14, 2010 09:16

Maybe you are looking for

  • Why is the "purchase Date" for my tracks showing that 25/08/1974?

    I just bought a few albums off the coast of the iTunes store and for some reason that the date of their purchase appears in the column as the 25/08/1974... Can someone tell me why this is? iTunes 12.4.1.6 Thank you Harvey

  • Windows 8 got it wrong my location.

    I just bought computer windows 8 and leave the bing to find my position, but it said that my position is different than where I am.  He identified the property belonged to a partner of mine, but I am not a partner in that property?  Where bing gets l

  • Place to query windows event log?

    Hello: Is it possible to query the CVI windows event log? I don't see all the Windows event recorder functions available in the windows SDK provided with CVI 8. What are the functions of windows recorder that I refer: http://msdn.Microsoft.com/en-us/

  • connection problem G-mode network show limited

    I use the alfa AWUS036H wireless card there are two types of network available (G & N, G) mode I could connect only N, G. G-mode network mode network show limited.

  • Cannot change the screen resolution. Help, please

    I recently reinstalled Windows XP (service Pack2) on my computer and restored the office to the factory settings. Now, the screen resolution is stuck at 640 x 480 and 16-bit color quality as this was not a problem before. The screen that appears unde