Model Glue - Passing variables between events

Hi,
I am working on coldfusion with model glue architecture. Is
there any method to get the value that is set in the controller
file driven from a particular event to be accessed from another
event.
Example
Code in controller file :-
<cfset arguments.event.setValue("data","some data")>
<cfset arguments.event.addResult("Duplicate")>
Question is can i get the MG variable data in the event
triggered by the result Duplicate?
Pls help.

Hi,
Like this,
arguments.event.getValue("eventVariableName")
(or)
<cfset eventValues = arguments.event.getAllValues() />
and do a find....
HTH

Similar Messages

  • How to pass variables between loaders

    Hi,
    I am trying to load an image, with descriptive text and a back button on the click of a thumbnail of the image. I am using a MovieClipLoader instance to do this.
    Here are my problems:
    1. I tried loading the image, with the text(which is within an external swf), using the same loader, but since I am placing them dynamically, depending on the dimensions of the image, I need to pass variables between the two. The image loader is taking longer than the text (obviously) but I need the dimensions of the image before I can place the text. How do I do that??
    2. I tried using two loaders, with separate listeners, and the problem once again is that the text loads before the image, and is hence placed with default values instead of the values derived from the image. The code is within onLoadInit(). Is it possible for me to get the dimensions of the image from onLoadStart()???
    3. There is a back button within the text.swf. I want the image and the text.swf to be unloaded when this button is clicked. How can I achieve that? Can I call loader.unloadClip(target), from within this? Will it recognize the variable?
    4. Is there a much easier way to do this, which I am sadly unaware of?
    Any help will be appreciated.

    Tried the onloadstart() function, but it gives target._width and _height as 0. So that is ruled out...any other suggestions?

  • Pass variables between form

    Hi,
    I'm using oracle forms 6i.
    How can i pass variables between forms?
    Consider the scenarion of a login form.
    After a user logged in successfully, a new form appears , where his name should be displayed
    like 'Welcome <user>'
    So name should be passed form login form to the home page.
    Is it possible with Oracle?
    Divya

    Arif,
    -- Your CodeTo format a number of lines, write  at the ending and to begin the code area write .
    -- Line of Code
    And if you want only 1 line to be formatted then use >.
    Regards,
    Manu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Passing values between event structure cases

    Hello everybody,
    I have a question concerning the event structure  - how to pass values (let's say a string / the state of a boolean control / the value of a numeric control value / an array of numeric values) between event cases ?
    There seem to be 2 situations here  :
    - when you need to pass the value of the control that triggers an event;
    - when you need to pass the value of a control which is modified in an event case.
    I have read the documentation but i still do not understand very clearly how to do this. Maybe you can point me in the right direction (maybe some threads on the forum that i have missed).
    Thank you very much !!
    (KUDOS for everyone who is interested in this )

    AndreiN2014 wrote:
    - when you need to pass the value of the control that triggers an event;
    - when you need to pass the value of a control which is modified in an event case.
    The first question isn't worded very well.  What exactly are you looking to do?  Are you looking for an event that specifically relates to that control?  If so, just drop it inside of the event and wire it.  Are you looking to trigger multiple events from the same control?  Ie, you hit the control, event1 is triggered which then triggers event2 ... ?  If so, you might consider taking a look at a different architecture.  I can think of very few cases where I'd prefer do this over something like having the button trigger a state and using the state machine architecture. 
    Others have pointed out the Shift Register.  This is the typical way to pass values between one iteration of a loop to another.  We can assume you have some sort of loop outside of the event structure to make it run a second time.  Put a shift register on this loop and the value wired into it will pass each iteration.  But, if it's just a random control, you can also just leave that outside of the event structure and wire it in as well.  This will provide the new value to the next occurrence of the event structure.
    You really need to define your problem before trying to solve it.

  • Pass variables between skillgroups on CTIOS Agent Desktop

    We need pass variables in the next order:
    1. The agent receives the call and insert variables in the CTIOS Agent Desktop.
    2. The agent transfers the call to another skillgroup DN
    3. The call is assigned to another agent.
    4. That agent should see the variables.
    My question is "Is this possible in UCCE 9.x and how configurate that?"
    Thank you.

    Dear All,
    In order to keep the variables passed within the same call leg, you need to use something called Warm Transfer, you need to create the DNP in CCM as CTI Route point, in this case and only thing case the variables can be passed.
    I was able to do it with CVP, even i was able to save the language accross the whole script that the agent can transfer the call to IVR back and the IVR can read the Language from the original entry (before transfering to agent) and the IVR will be played according to that.
    You just need to create the dail number in the UCCE to be in the CUCM PG Routing client (not cvp or IPIVR).
    and you need to create a label for the CUCM in the UCCE.
    Amer

  • The function javascript:doSubmit not passing variables between pages

    Hi,
    I have an report that has a link to another page, and I'm trying to pass 2 variables. If I use a target URL as such the variables do not get passed, but if I use a page target and explicitly add the item name and values it works fine. Here is the call I'm using to javascript:doSubmit:
    javascript:doSubmit('f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#');
    Does anyone have any insights?
    Thanks,
    Joe

    You can't use doSubmit to pass variables; it will only submit your page with the request you passed in.  All normal page processing and branching will be followed..  Why are you using doSubmit?  Just put the URL in the URL field.
    f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#

  • Passing variables between data tag and Java

    Hello all,
    I have a question about using variables between data tag and java.
    Let me explain.
    I would like to populate variable "Test" with
    the information returned by jbo data tag library.
    <code>
    <% String Test = "%><jbo:ShowValue datasource="ds" dataitem="Cod" /><%";%>
    or
    <% String Test = "<jbo:ShowValue datasource="ds" dataitem="Cod" />";%>
    </code>
    This code did not work.
    Some suggestions
    Thanks
    Humberto
    null

    Humberto,
    I'm afraid I do not know the specific answer
    to your question (perhaps Juan the Data Tag
    Wizard will reply ;-). I vaguely recall
    struggling with teh same issue when I was
    playing with the tags for a demo. Here
    is a hack-around lifted from my demo
    that might help:
    <jbo:Row id="privRow" action="CURRENT" datasource="privileges" />
    <%
    String privName = (String)privRow.getAttribute("Privilegename");
    %>
    In other words, I ended up using the Row
    tag to get a local Java variable bound to the
    row instance and then used its methods
    to extract the value. I presume the class
    of the row instance is oracle.jbo.Row
    and you can lookup its supported methods
    in the reference doc.
    I'd be interested to hear if their is a more
    elegant way - the one suggested above is
    pretty tedious.
    Regards,
    Bill
    ----

  • Passing Variables Between Programs in Background Mode

    Hello,
    Can you pls. suggest how I can pass a variable from one program to the other while in the background mode.
    The Export and Import parameters do not work while in the background.
    Thanks.
    Amit

    Hi Amit,
    EXPORT/IMPORT works in Background mode provided the export & import both are done in background.
    Refer this program: it has export/import in background
    /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job
    <b>*----
    Before the export, fill the data fields before CLUSTR
    </b>
      wa_index-aedat = sy-datum.
      wa_index-usera = sy-uname.
      EXPORT s_matnr
           TO DATABASE indx(st) FROM wa_index ID wa_index_key.
    <b>*----
    Before the import, fill the data fields before CLUSTR.
    </b>
      wa_index1-aedat = sy-datum.
      wa_index1-usera = sy-uname.
    To Import the selection screen data from Calling Program
      IMPORT i_mara
      FROM DATABASE indx(st) ID wa_index_key1 TO wa_index1.
      FREE MEMORY ID wa_index_key1.
    Message was edited by:
            Prashant Patil

  • How to pass variable between CRM Fact sheet and BI web template

    Hello,
    I am looking for someone who has integrated a custom web template with the CRM fact sheet (I am on 2004s).
    I have created a custom web application design template for displaying on the portal for a CRM factsheet (TPL_FACT_SHEET).
    This template is based on a query which has a variable (CHOOSE_CUST, ready for input, input: optional type) on 0CUSTOMER char.
    When the sales rep queries the CRM FactSheet on the portal- based on the 0CUSTOMER he is demanding the fact sheet for,  the appropriate 0CUSTOMER value needs to be parsed to my custom web template and it should return him the report. The report is very simple with just sales for current and previous year by material group. There is a std template to do this but we are using cutom data providers and hence need to create this custom web template.
    Thus far I have created a 'filter pane' in my web template but do not know how to link this with the CRM fact sheet or even how to link it to my query variable. Currently when my template is called from the factsheet (portal) it displays results for multiple customers without any filter!
    Please advise how to proceed in linking the CRM fact sheet 0Customer number with my web template filter pane!
    Full points for useful answers!
    Thanks
    Naresh

    Hello,
    I am looking for someone who has integrated a custom web template with the CRM fact sheet (I am on 2004s).
    I have created a custom web application design template for displaying on the portal for a CRM factsheet (TPL_FACT_SHEET).
    This template is based on a query which has a variable (CHOOSE_CUST, ready for input, input: optional type) on 0CUSTOMER char.
    When the sales rep queries the CRM FactSheet on the portal- based on the 0CUSTOMER he is demanding the fact sheet for,  the appropriate 0CUSTOMER value needs to be parsed to my custom web template and it should return him the report. The report is very simple with just sales for current and previous year by material group. There is a std template to do this but we are using cutom data providers and hence need to create this custom web template.
    Thus far I have created a 'filter pane' in my web template but do not know how to link this with the CRM fact sheet or even how to link it to my query variable. Currently when my template is called from the factsheet (portal) it displays results for multiple customers without any filter!
    Please advise how to proceed in linking the CRM fact sheet 0Customer number with my web template filter pane!
    Full points for useful answers!
    Thanks
    Naresh

  • How to pass variables between applications?

    I am able to send fixed string from InDesign to Bridge like in my "sample 1", but not able to send variable like in "sample 2" (myDocName is the variable). How to solve this?
    // sample 1
    var bt = new BridgeTalk;
    bt.target = "bridge";
    bt.body = "var mydoc = 'MacintoshHD/MyFolder/Bot02.indt'; app.document.thumbnail = new Thumbnail(File(mydoc));"
    bt.send();
    // sample 2
    var bt = new BridgeTalk;
    bt.target = "bridge";
    var myDocname = "MacintoshHD/MyFolder/Bot02.indt"
    bt.body = "var mydoc = myDocname; app.document.thumbnail = new Thumbnail(File(myDocname));"
    bt.send();
    regards
    Erkki

    Hi,
    a little late, but try this:
    bt.body = "var mydoc = " + "\"" + myDocname "\"";
    Stefan

  • How can i pass variables between classes?

    Hi.
    i have three classes and i need use a variable from 'Battleship' and use it in 'BattleWindow', these summaries of the classes, if anyone could give me a solution without editing it too much it would be greatly appreciated
    public class Ship{
    public Ship(){
    int missilesLeft;
    int shots = 10;
    for (int i=0;i<8;i++) {
         missilesLeft = shots - 1;
    //Panel
    public class PanelWindow{
         public static void main (String [] args) { 
         System.out.println(missilesLeft.Ship);
    Andrew

    i still can get it to work.. but i think that you got me quite close;
    this is where i need to get missilesLeft from
    //BattleShip
    public void mouseClicked(MouseEvent e){
         tries--;
         for (int i = 0; i < 8; i++){
          for (int j = 0; j < 8; j++){
           if (e.getSource().equals(buttons[i][j]) && ship[i][j] == true){
            buttons[i][j].setBackground(new Color(80,80,80));
            hit++;
            System.out.println(hit+" "+total);
           else if (e.getSource().equals(buttons[i][j]) && ship[i][j] == false){
            buttons[i][j].setBackground(new Color(0,0,255));
         //Win
          if (isWin()){
           int hits = 64 - tries;
           int misses = hits- hit;
           int score = ((tries+hit)/misses)*64;
           missilesLeft = tries - 30;
           mis = missilesLeft;
           JOptionPane.showMessageDialog(this, "You WIN!\n \nMissiles used: "+hits+"\nMissiles left: "+missilesLeft+"\nHits: "+hit+"\nMisses: "+misses+"\nScore: "+score );
         //Game Over
         if (isGameOver()){
           JOptionPane.showMessageDialog(this, "  GAME OVER!!\n*******************\nYou have run out of missiles!\nTRY AGAIN");
    //BattleWindow
    private void build(){
              main = new JPanel(new BorderLayout());
              title = new JPanel(new FlowLayout(FlowLayout.CENTER));
              right= new JPanel(new FlowLayout(FlowLayout.CENTER));
              left = new JPanel(new FlowLayout(FlowLayout.CENTER));
              bottom = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              displayField = new JTextField("000", 8);
              displayField.setEditable( false );
              b = new Battleship();
              JLabel t = new JLabel("Battleship Potemkin");
              Font myFont =  new Font("Arial",Font.BOLD,32);
              t.setFont(myFont);
              title.add(t);
              help = new JButton("Help");
            exit = new JButton("Quit");     
            help.setFont(new Font("Arial", Font.BOLD, 17));
            exit.setFont(new Font("Arial", Font.BOLD, 17));
            displayField.setFont(new Font("Arial", Font.BOLD, 22));
              main.add(title,BorderLayout.NORTH);
              main.add(left,BorderLayout.WEST);
              main.add(right,BorderLayout.EAST);
              main.add(bottom,BorderLayout.SOUTH);
              main.add(b,BorderLayout.CENTER);
             this.add(main);
              help.addMouseListener(this);
              exit.addMouseListener(this);
              bottom.add(displayField);
              bottom.add(help);
              bottom.add(exit);
              setSize(500,600);
              setResizable(false);
              String aString = Integer.toString(bob);
              displayField.setText(displayField.getText() + bob);
              //displayField.setText("bob");
              }the variable bob in must have the same value as missilesLeft
    thank you

  • Passing variables between data tag and JSP-scriptlets

    Hi,
    There were some questions about this issue. However, the answers were not satisfactory.
    I would like to assign the value returned from data tag to a variable in JSP-scriptlets as follows:
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <br>
    <jbo:ApplicationModule id="isae.OPKv1.OPKv1Module" configname="isae.OPKv1.OPKv1Module.OPKv1ModuleLocal" username="t1" password="t1"/>
    <br>
    <!-- a record is selected -->
    <jbo:DataSource id="ds" appid="isae.OPKv1.OPKv1Module" viewobject="AePk100View" whereclause=" <%= ic %> " />
    <br>
    <jbo:Row id="privRow" action="CURRENT" datasource="ds">
    <%
    String privName = (String) privRow.getAttribute("ArBau325"); // this is the suggestion of William Dwight (Jan 21, 2001 this forum)
    %>
    </jbo:Row>
    This code did not work. I have obtained an error :
    java.lang.ClassCastExeption
    Any help would be greatly appreciated.
    Thanks

    The value return by the getAtribute might not be of type String. If you want to return a String value you need to convert the value using the toString method as follow:
    <jbo:Row id="privRow" action="CURRENT" datasource="ds"/>
    <%
    String privName = "";
    Object obj = privRow.getAttribute("ArBau325");
    if (obj != null)
    privName = obj.toString();
    %>
    Also note that you do not need to put the scriplet code inside the body of the row tag.
    Charles.

  • How to pass variables between 2 jsp pages-help

    Hi,
    I have a question like this.
    As an example consider I have 3 .jsp pages.
    page1.jsp - In this html form it has some textboxes to enter employee details.
    page2.jsp - In this page it has a "PRINT" button which allows the user to click.
    page3.jsp - A new popup window which having the same content as page2.jsp, but without the PRINT button.
    But my problem is this. In this page3.jsp,it should be display the entered textbox values as page2.jsp. But these values are not displaying here. They display as NULL.
    I use as follows, but it still not working.
    <%= request.getParameter("effDate")%>.
    Could you please tell me how to hold these values when I came from page2 to page3.
    I'm using JSP 1.2 with javaBeans.
    Thanks.

    Well,
    If you are popping up a new window, and you insisting on pulling the data out of the request's parameter map. Then you will need to add the values to the query string of your url.
    window.open("http:localhost/page3.jsp?itemOne=itemOneValue&itemTwo=ItemTwoValue, '', '');
    Alternative Option:
    When posting from page 1 to page two, store your information into session scope
    request.getSession().setAttribute("valeuOne", "valueOneValue");
    Then instead of pulling from the paramter map, use request.getSession().getAttribute("valueOne") in your third page.
    Hope that helps.
    Thanx
    Cardwell

  • Still having trouble passing variables

    So, I read some on the MVC as my problem in my previous post
    was trying to pass variables between classes in the same package.
    I've got three classes, ListLoader, SectionPanel and TagWidget...
    MVC respectively. Or at least I think I've set them up that way.
    ListLoader is responsible for querying the db via PHP when
    TagWidget asks it to and then supplies a string variable. I'm
    trying to get TagWidget to pass that variable to the
    viewer/SectionPanel to display in a textfield but can't seem to get
    ListLoader to reflect that. Now, the problem is in how I've
    formatted ListLoader, I believe so I'll only show that class and
    just know that TagWidget is calling the variable using
    "trace(loadFTPList.fulllist);" where loadFTPList is the instance
    name of ListLoader. What am I doing wrong?
    Here is my class in question:

    You want to dispatch the event after fulllist is ready.
    If you do this:
    this.dispatchEvent(event.clone());
    fulllist = record;
    the event is dispatch before fulllist can be properly read,
    so your listener
    (whatever that may be) will find and empty/null/undefined
    list.
    but if you do this:
    fulllist = record;
    this.dispatchEvent(event.clone());
    then in your listener
    myListLoader.addEventListener(Event.COMPLETE, myListHandler);
    function myListHandler(evt:Event){
    if(evt.type == Event.COMPLETE)
    // the list is ready
    trace(ListLoader(event.target).fulllist);

  • How to use a variable between interfaces or class?

    Hello All;
    Far by now I can say that the forum is very helpful for me. Thanks for all the people who have the time and generosity to help our problems. Thank you.
    Unfortunately I have a problem <Again :( >
    I want to use a variable in two different *.java files.
    Is it possible?
    The Variable i want to use is; int CiftSayisi
    The variable is declared in the CamCalib.Java under a button's Action Listener.
    Here is the code;
    public void actionPerformed(ActionEvent arg0) {
                        ImagePair.main(null);
                        String[] ImPath = list.getItems();                                           //Storing Items in an Array
                        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();                     //Dimensions of the Screen Storing in an object
                        int ScreenHeight = dim.height;                                           //Definition ScreenHeight
                        int ScreenWidth = dim.width;                                          //Definition ScreenWidth
                        // System.out.println(ScreenHeight);                                                    //Testing of the Dimensions
                        // System.out.println(ScreenWidth);                                                     //Testing of the Dimensions
                        int CiftSayisi = ImPath.length -1 ;
                        if (CiftSayisi == 0){
                             System.out.println("Added Images do not Construct a Pair");
                        else {
    }Now i want to use it in another java file which is ImagePair.Java in the loading part of the interface;
                 setType(Type.UTILITY);
              setTitle("Image Pair Selection");
              setResizable(false);
              setAlwaysOnTop(true);
              setBounds(100, 100, 450, 68);
              contentPane = new JPanel();
              contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
              setContentPane(contentPane);
              contentPane.setLayout(null);
              textField = new JTextField();
              textField.setBounds(61, 11, 22, 20);
              textField.setEditable(false);
              textField.setEnabled(false);
              contentPane.add(textField);
              textField.setColumns(2);I have a text field in here that i need to fill with the value of CiftSayisi
    Any help please?
    ömer kaya
    METU-GGIT
    Edited by: Ömer K. on Apr 10, 2012 12:43 AM

    I didn't bother reading the code, since you didn't format it.
    But to answer your question (if I understand it correctly), yes, it is possible to pass variables between different object instances (not from an interface specifically, since interfaces don't have members). The simplest way to pass the variable as an argument to a method or constructor. If these aren't available, you could create a static global variable, though in a multithreaded app you'd have to synchronize access.

Maybe you are looking for

  • Problem while Calling Webservice from ABAP

    Hello All,              I am Calling the Webservice using ABAP-Class from abap,i getting the following HTML response error from the Webservice.Can any one help me. tional//EN">###### ####td {font-family : Arial, Tahoma , Helvetica, sans-serif; font-s

  • PhotoShop Starter Ed 3.2

    I am trying to remove Photoshop Starter Edition 3.2, and just use Elements.  I have tried to remove it in Add/remove Programs.  It tells me This action is only valid for products that are currently installed.  I then registered the eddition that I ha

  • Change book size mid-design

    I'm creating a book to print with blurb. I started on this project last year and I'm just getting around to finish it now, but I've designed the whole book to the wrong size. Is there any way to change the size of the book now? Or can you drag everyt

  • How to make my files readable but not copyable on Mac OS X?

    Hi there, We've got a valuable picture library forour business on our Macs. Computers are public, files are JPG pictures. Is there any way to protect these files from being copied but simultaneously being seen by the users. Thanks, Alex

  • Swing button to insert row in displayed table records set

    Hi, I have been trying to insert custom row by pressing button in Swing form, this row should be displayed as last record in the records set fetched from table shown in the Swing form, can I have a help on this. cheers.