How to pass a variable value to a Manager click for a function of ACEs?

I wish I could click a button, pass a value to a variable, then pass this variable to assess within the case routine.

MXML:

Click = "someClickHandler (Event);    <!- like the variable to prepare you with the click-> handler

AS:

public void genericFunction(event:MouseEvent):void

{

Switch (VariableName)

{

CASES1:

action;

Action2;

break;

CASE2:

action;

Action2;

break;

.

.

.

caseN:

action;

Action2;

break;

}

}

Thank you.

The click handler is your function to set how you want.

MXML

a click = "someClickHandler (event, 5).

AS

public function someClickHandler (event: MouseEvent, someVar:int): void

{

switch (someVar)

...

Tags: Flex

Similar Questions

  • How to pass a variable value into a hyperlink?

    Hello

    I put a variable value by using <? xdoxslt:set_variable ($_XDOCTX, 'tstview', concat ((xdoxslt:get_variable($_XDOCTX,'env_url')), (xdoxslt:get_variable($_XDOCTX,_'testpage')))? >)
    I am able to the value of the variable is displayed correctly. I would use this value to create a hyperlink by specifying {$tstview} {ID} in the text of the hyperlink box. However, when I do that, I get the error message: Undefined Variable: "tstview."

    How can I pass the value of the variable to create a hyperlink? Is there another way to do this? I want to be able to build the hyperlink in a dynamic way. Please let me know.

    Thank you!!
    
    

    or try

    {xdoxslt:get_variable($_XDOCTX,'env_url')}{ID}
    
  • By passing the quick values of dashboard as input for a function

    Hello world

    I would like to pass quick values of dashboard as parameters in a function as described below, but I'm a little hesitant how to proceed.

    In the physical layer, I defined a table in a select statement - something like:

    Select a, b, c
    table (minutevals.get_minute_vals (para1, para2, para3)

    minutevals is a stored procedure
    get_minute_vals is the stored inside on a function procedure
    Para1... para3 are input to the function parameters.

    Right now (for testing) para values are hardcoded.

    How can I pass values to a quick dashboard in the para1, para2 or para 3?
    Is it possible to define (editable by the user) session variables to receive the quick selection of dashboard
    and then use these session variables as the para1... para 3 values?
    If so - how can I do for session variables in the function parameters (use to evaluate?)?

    Thanks for your help

    concerning
    Andy

    See this link which will be useful

    Variable passage of presentation to the physical layer in SPR

    Thank you
    Vino

  • How to pass a dynamic value to display the criteria

    Hello

    I have a requirement to indicate the hierarchy. Here, I want to spend the connected in the id of the Manager to the view criteria so that the hierarchy can change based on the connected Manager.

    Can anyone help how can I accompolish this.
    Can I use the binding variable to pass the value to display the criteria?

    If you get the Director based on the user id, you can run the display criteria based on the user, as follows:
    http://jobinesh.blogspot.com/2010/10/how-to-set-bind-variable-values-at.html

    Ensure that the method is executed until the viewer of the hierarchy is responsible.

    Thank you
    Nini

  • How to pass a variable to a swf file in another using the Loader?

    I'm loading a swf file from another swf using the method as follows:

    var myLoader:Loader = new Loader();

    addChild (myLoader);

    var url: URLRequest = new URLRequest ("myExternalMovie.swf");

    myLoader.load (url);

    How to pass a variable to the first SWF in the second?

    I'm not sure that "passage" is a term there, given that this generally applies to what happens with functions that can host variables to pass as arguments in the.

    When using the charger, you can assign an event listener to determine whether the activity of loading is complete and have an event handler that targets its contentLoaderInfo property to the event.currentTarget.content, which in your case would be the loaded swf file.  At this point, you can assign a value to a variable in this swf file by targeting...

    var myLoader:Loader = new Loader();

    addChild (myLoader);

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);

    myLoader.load (url);

    var loadedSWF:MovieClip;

    function loadComplete(evt:Event):void {}

    loadedSWF = MovieClip (evt.currentTarget.content);

    loadedSWF.someVariable = ';?

    }

    It is probably possible you may also have the loaded swf the value rtrieve by targeting to the parent swf file, which would be both parents away because of the charger is the relative of the SWF loaded... unevariable = MovieClip (parent.parent) .someValue;

  • How to pass the return value of VO1 VO2 parameter?

    Hi friends,
    I have two of VO, in a page.
    In the first VO1 I pass 2 parameters, then this vo return a value unique ex: 1234
    Now my second VO2 I want to pass the parameter, the value of first result VO1.
    How to get there.
    But I don't want to capture VO1 result in the form value.

    Could you please any body explain how to achieve this requirement.

    Thanks in advance.
    Jocelyne.

    RAMU

    //Modify the code as per your requirement
       String position = null;
       //First VO
       OAViewObject vo = (OAViewObject)findViewObject("EmployeeVO1");
       if(vo!=null)
      {
                     vo.executeQuery();
                     OARow row = (OARow)vo.first();
                     position = (String)row.getAttribute("PositionCode");
       }
    
     //Pass the same value to the new VO as your value returned will be into position variable
    
       OAViewObject vo = (OAViewObject)findViewObject("ManagerVO1");
       if(vo!=null)
      {
                     vo.setWhereClauseParam(0,position );
                     vo.executeQuery();
       }
       
    

    Kind regards
    GYAN

    Published by: Gyan on February 23, 2011 01:30

  • How to pass form variable javacript to java BackingBean

    Hello

    I'm trying to pass the variable Javascript (what is written in jspx) method a Java BakingBeanpage.

    Javascript code is shown here:

    <SCRIPT type="text/javascript">
    function OnSave() {
    alert("The signature you have taken is the following data: " + SigPlus1.SigString);
    }
    </SCRIPT>
    
    
    

    of course, this method is called after the use press save button as follows:

    <INPUT id="submit1" name="Save" type="submit" value="Save" onclick="OnSave()"/>
    

    As you can see it this Javascript will notify the result to the user. IAther I want to pass the object ( SigPlus1) to a Java Bean.

    I use the ADF with JDveloper 11.1.2.3 technology

    Here's the answer:

    ADF RichClient API - af:serverListener

  • How to pass a variable to the nearby operator

    Hello! does anyone know how can I pass a variable to the proximity operator?

    with this query variable1 and variable2 are read as words, not as variables.

    SELECT *.
    FROM t1
    WHERE CONTAINS
    (essay, "near ((variable1, variable2), 1)'") > 0;

    Thank you!

    Best regards
    Sara

    You may not use a link within a string variable. This is not a restriction of Oracle text, it's just the way bind variable work in Oracle.

    You can build a string literals and variables, although, like this:

    SELECT *
    FROM t1
    WHERE CONTAINS
    (test, 'near(('||:variable1||', '||:variable2||'), 1)') > 0; 
    
  • Header of page-how to pass a dynamic value?

    Hello

    I created a page - which redirects to an external link.
    I have following code in the page header.

    < META HTTP-EQUIV = "refresh" CONTENT = "2; URL = XYZ.com ">".
    < b > < p > < p > < p > < p > < p >

    < /b >


    When I run this page, redirects after 2 seconds to this particular url: xyz.com.

    My query is: Ii would there the URL value dynamically.

    I tried with the following code in the header:

    var abc = $v ('P97_TEST');
    < META HTTP-EQUIV = "refresh" CONTENT = "2; URL = abc ">".
    < b > < p > < p > < p > < p > < p >

    < /b >

    where P97_Test is an element of text field.

    But he directs me to a url: my_apex instance/abc. It does not work.

    No idea how to pass the value of the url dynamically? I need to get the success of a particular URL.

    Thank you
    Archana

    Dear Archana,

    I found the following solution work:

    (1) create an element on the page to the URL (in this example, P3_URL)

    (2) create a pl/sql process
    type: PL/SQL anonymous block
    address the point: on the laundry before header
    Source:

    begin
    :P3_URL := 'http://www.google.de/';
    end;
    -- this can be as sophisticated as you need
        
    

    (3) according to the Page Properties / header before HTML

    
    

    Marc

  • How to pass a prompt value to the RPD.

    Hi all, I have a unique requirement.

    I need to create a quick Date.
    After have created you, I need to move to the physical layer of the repository.
    I need to create a view in the physical layer in the view has a function that takes the fast values.

    This view would be my dimension with a single record date, based on the value quickly past.
    and I would join this point of view (table Date, date dimension) to all the other tables.

    Please guide me in this issue. It is very crucial and urgent.

    I didn't know where to start...

    Hello

    Try to create a Server Variable or the Session Variable in RPD and use it in your level of content where you actually bring the table.
    So, whenever you make this table by default you will pass the variable, select guest... and you must set the value of the variable through confirmation.

  • How to pass the variable in the lov using like operator SQL

    Hello.
    I want to use a lov I pass a variable using like operator.
    my query is
    Select empno, name of the table where empno as ': ed %';

    I want to show a % or B empno % so my empno is A001 to A199 AND B001 to B199
    How can I do this?


    regards

    Set the property default_where to the block and run the query

    set_block_property ('myblock ', default_where,' like upper (Ename)' |: mybind |) » %');

  • How to pass a variable to a builder?

    If I have a CFC as below:
    < cfproperty >
    <!--> init() call automatically when the CFC is instantiated
    < cfset init() >
    < cffunction "init" access = output = "public" name = "" returntype = "shoppingCart" >
    < cfargument = 'cartID' type name = "UUID" required = "yes" >
    < cfset variables.cartID = arguments.cartID >
    < cfreturn this >
    < / cffunction >
    < / cfproperty >

    .. . How do I pass a variable required in the constructor? (I use Flex my front end with Flash Remoting to call my CFCS so that I don't this instantiation of ColdFusion).
    Any help appreciated...

    For example, suppose I have the following CFC called test.cfc:








    .. and I have the following cfm file which called it... test. cfm



    This will cause an error indicating the cartID parameter to the init() function was necessary but not last, because the constructor call ( ) does not switch from parameter to the init function. The only way I can get this to work is to comment out the line. I guess I don't need this in my script because I call the method init directly in any case.

    FYI: I did phone selector example Ben Fortas (a good example of creating a simple Flex/CF application):
    http://www.Adobe.com/devnet/flex/articles/coldfusionflex_part3_02.html

  • How to pass a variable to a sub - VI a vi in real-time?

    The main calls a Subvi where there is a loop for. is possible to pass a variable from inside the loop for handmade in real-time, this is while the for loop is still running?

    I tried with a global variable. The global itself is updated, but if I put for the most part the global variable with a wire to an indicator, the indicatore is not updated until what the sub that VI has not completely passed control to hand.

    Is it possible to do?

    If you are running in windows, see example vi

  • How to pass the variable in the table?

    Hello. I try to pass the variable created in RTF and after I enter in the table.

    In RTF:

    <? xdoxslt:set_variable($_XDOCTX,_'var',500)? >

    After the table:
    chart:
    .....................
    < DataValues >
    < RowData >
    [< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
    < cell >
    xdoxslt:get_variable($_XDOCTX,_'var')
    < / cell >
    < / xsl: for each group->
    < / RowData >
    < RowData >
    [< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
    < cell >
    50
    < / cell >
    < / xsl: for each group->
    < / RowData >
    < / DataValues >
    < / LocalGridData >
    < / chart >

    And it isn´t work :-(

    Any ideas?

    Hi, Benito,.

    It wil work

     
    
  • How to add data to the table using Manager POST for restful Apex application

    Hi all

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Hi jerry2134,

    jerry2134 wrote:

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Check out the following tutorials OBE, that explains the creation of GET and POST RESTful Web Services and how to use them in the APEX.

    Also what yo mean "looking forward on how to proceed? Do you want to or created for use/consume in your Oracle APEX application hosted RESTful web services?

    If Yes, in your Application, you must create a RESTful Web Service reference -> shared components. Then, create a form/report based on Web Service reference.

    Kind regards

    Kiran

Maybe you are looking for