Problem passing int values to Flash Islands

ypos isn't the value of the column of hte dataSource itself. It is just an alias to hold the actual column name.  It therefore must be type STRING.  The columns in the dataSource will be created automatically with matching types from the WD Context - so they are int already if the context is type I.  For instance send an alert or check the value of ypos in the debugger.  You will see it contains the context attribute name of the matching column in the dataSource.

That's clear now, Thomas, thanks for the explanation
Have a nice day
Manuel

Similar Messages

  • BPEL : Problem Passing Header Values

    Hi All,
    I am facing problem in calling a web service from BPEL. This web service is anticipating specific values in header for WSA tags such as To, Action, MessageId and so on. I am setting these values for header in Invoke in Bpel. On test console on SOA server I can see these values being passed as a part of Invoke activity but they don't reach the Web Service. SOA suite version is 11.1.1.6
    Any input on this would be of great help.
    Thanks in Advance!!!
    Animesh

    "execution just seems to stop" -- by stop you mean the program exits, right? (Not hangs).
    How are you handling exceptions? You should have something like
        try {
            ...sql stuff...;
        } catch (SQLException e) {
            log the error with stack trace; // This is the important bit!
        } finally {
            if (results != null)  {
                try {
                    results.close();
                } catch (Exception e) {
                    log the error;
            ...close statement similarly...;
            ...close db connection similarly or return it to the connection pool...;
            // (I like to have small static close() functions for the
            // common closing patterns to keep the code more concise.)
        }With proper logging, you don't get unexpected silent program exits.
    (In command line programs, I like to do "catch(Exception)" or even "catch(Throwable)" at the top level main() function to make sure I get a stack trace; some others dislike such catches. Make your own compromise there.)
    Another thing: instead of doing
        workDay(results.getString(1),results.getString(2),results.getString(3), ...do this:
        String worker_name = results.getString(1);
        String job         = results.getString(2);
        String manager     = results.getString(3);
        ...etc...;
        workDay(worker_name, job, manager, ...etc...);Any stack traces will be more informative since the line number will show where the problem is.

  • Problem passing a value to a loop through a method?

    I am simply trying to design a program that will offer a pop up menu and prompt the user to enter a digit 1-4. If the user enters a 1,2, or 3 I want the menu to pop up again. If the user enters a 4, I want the program to end.
    I have created stubs for a few of these methods. However, I want to have a working version of the menu method.
    When I run the program the program executes the start_program method stub and then the menu method executes and up pops the menu. However, when I type in a number, the menu disappears never to return...Unless I type in "4" and then the menu pops up again and upon typing "4" again, the program exits.
    I am not sure if I have a poorly constructed loop or if I am improperly returning the value of the variable "number" back to the main method. Here is my code...I appreciate any and all help. Thanks,Ed
    package YMCA;
    import javax.swing.JOptionPane;
    public class YMCA {
    * This is the first phase of our YMCA interface. This phase utilizes a menu and various methods.
    public static void main(String[] args) {
    int number;
    //call start_program method
    start_program();
    //call menu method
    number = menu();
    //while loop to process user number input
    while (number != 4);
    {if (number == 1)
    //call modify_member method
    modify_member();
    else if (number == 2)
    //call modify_registration method
    modify_registration();
    else if (number == 3)
    // call report method
    report();
    //in case of error
    else
    System.out.println("Enter a valid selection");
    //send control back to menu method
    menu();
    //call exit_program method
    exit_program();
    System.exit(0);
    //start_program method
    public static void start_program(){
    System.out.println ("The program has begun");
    //menu method
    public static int menu(){
    String menuOutput, snumber;
    int number;
    menuOutput = "Moon Area YMCA \n" +
    "\n" +
    "1. Add/Modify Member Information \n" +
    "2. Add/Modify Class Registrations \n" +
    "3. Report Section \n" +
    "4. Exit the System \n" +
    "\n" +
    "Please Make Your Selection> \n";
    snumber = JOptionPane.showInputDialog(null, menuOutput);
    //convert string to integer
    number = Integer.parseInt(snumber);
    return number;}
    //modify_member method
    public static void modify_member(){
    System.out.println("Member Information method has been executed.");
    //modify_registration method
    public static void modify_registration(){
    System.out.println("The class registrations method has been executed.");
    //report method
    public static void report(){
    System.out.println("The report method has been executed");
    //exit_program method
    public static void exit_program(){
    System.out.println("The exit program has been executed");
    }

    hi
    here is your working program
    import javax.swing.JOptionPane;
    public class YMCA {
    * This is the first phase of our YMCA interface. This phase utilizes a menu and various methods.
    public static void main(String[] args) {
    int number;
    //call start_program method
    start_program();
    //call menu method
    number = menu();
    //while loop to process user number input
    while (number != 4)
    {if (number == 1)
    //call modify_member method
    modify_member();
    else if (number == 2)
    //call modify_registration method
    modify_registration();
    else if (number == 3)
    // call report method
    report();
    //in case of error
    else
    System.out.println("Enter a valid selection");
    //send control back to menu method
    menu();
    //call exit_program method
    exit_program();
    System.exit(0);
    //start_program method
    public static void start_program(){
    System.out.println ("The program has begun");
    //menu method
    public static int menu(){
    String menuOutput, snumber;
    int number;
    menuOutput = "Moon Area YMCA \n" +
    "\n" +
    "1. Add/Modify Member Information \n" +
    "2. Add/Modify Class Registrations \n" +
    "3. Report Section \n" +
    "4. Exit the System \n" +
    "\n" +
    "Please Make Your Selection> \n";
    snumber = JOptionPane.showInputDialog(null, menuOutput);
    //convert string to integer
    number = Integer.parseInt(snumber);
    return number;}
    //modify_member method
    public static void modify_member(){
    System.out.println("Member Information method has been executed.");
    //modify_registration method
    public static void modify_registration(){
    System.out.println("The class registrations method has been executed.");
    //report method
    public static void report(){
    System.out.println("The report method has been executed");
    //exit_program method
    public static void exit_program(){
    System.out.println("The exit program has been executed");
    }

  • Values from Flash to PHP

    I am using AS2 and passing some values from flash to php,  flash files is on page file1.php   values are passing fine , it pass values when user click button
    when button is pressed {  var myVal:LoadVars = new LoadVars(); myVal.flieName = "fileid1 "; myVal.send("file1.php", "_parent", "POST"); }
    Problem: when it pass the values , it refresh the page and Flash File is also refreshed and Flash file start from frame 1 and all the values on flash becomes default  in other words when user click "file1.php" is sumbitted , so the page is refreshed What is the solution , that after passing values the page remains or flash reamins as it is ( not refresh the contents )

    use:
    var receiveLV:LoadVars=new LoadVars();
    receiveLV.onData=function(src){
    var myVal:LoadVars = new LoadVars(); myVal.flieName = "fileid1 "; myVal.sendAndLoad("file1.php", receiveLV,"POST"); }

  • SWT: Passing text value to Mouse Event

    I am a little new to java and I am having problems passing the value from Text to mouseDown to be used in the event. When I try to place the name variable into mouseDown it says it must be declared final to do this, but if I declare it final then I can't receive the user input, what do I need to change?
    public class SearchForm {
         public SearchForm(Composite parent)
              GridLayout layout = new GridLayout();
         parent.setLayout(layout);
         Label l = new Label(parent, SWT.NONE);
         l.setText("Please Enter a Name: ");
         l.pack();
         Text name = new Text(parent, SWT.BORDER);
         name.pack();
         Button b = new Button(parent, SWT.PUSH);
         b.setText("Search");
         b.setLocation(0,0);
         b.pack();
         b.addMouseListener(new MouseAdapter()
              public void mouseDown(MouseEvent e)
                   /*Ch4_Contributions sw = new Ch4_Contributions();
                   sw.open();*/
         parent.pack();
    }

    I'm not familiar with SWT, but using Swing, the following example works just fine.
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Test {
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    JFrame frame = new JFrame("Test");
                    frame.setLayout(new GridLayout(2, 1));
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    final JTextField testField = new JTextField("Some text");
                    frame.add(testField);
                    JButton testButton = new JButton("Test");
                    testButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            System.out.println(testField.getText());
                    frame.add(testButton);
                    frame.pack();
                    frame.setVisible(true);
    }

  • How to pass querystring value to swfobject and set it in adobe flash

    Hi,
    I must tell that I have not much knowledge about flash.
    I have a flash slideshow on my homepage which displays news by a xml file under http://bit.ly/q48UmE and I am using slideshowpro for it. That slideshow xml file path must be set within adobe flash program.
    Xml file path is under http://bit.ly/pBeaUX if you would add ?lang=en, it would output english version.
    What I need in here, when a language is changed from language selector at header, News must be set as selected language respectively. My question is how to get querystring value and pass it to adobe flash so it is changed and set according to the selected language.
          var flashvars = {
          var params = {
            bgcolor: "#000000",  
            allowfullscreen: "true",
            wmode:"transparent",
          var attributes = {}
              swfobject.embedSWF("swf/slideshowpro.swf", "flashcontent", "550", "400", "10.0.0", false, flashvars, params, attributes);
              //attributes.addVariable("dil", "<%=request.querystring("lang")%>");
    Any help much appreciated

    Since there are only two languages to choose from, you could simply use a Javascript document.write() function to write out the alternate object and embed section of that page when/if the user selects English. In any case, you don't want to use Flash vars(). There is no way to get the Flash movie to read a new value after the movie has loaded. You could store the language value change in a Javascript variable and then read that variables value from the Flash movie.
    If you are changing out the entire movie when the language is changed, I would use the first method: Javascript document.write(). If you have both the Turkish and English language content in the same movie then I would use the second method and have Flash read a variable from the language selector. You can use the ExternalInterface class for that.

  • I am facing a problem in passing multiple values as out parameters from fo

    Hi All,
    i am facing a problem in passing multiple values as out parameters from for loop.
    EX:
    i have a select statment inside a loop like.....
    PACKAGE SPEC:
    create or replace PACKAGE EMP_PKG AS
    TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
    TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
    TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
    temp_table TAB_NUM;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB);
    END EMP_PKG;
    PACKAGE BODY:
    create or replace PACKAGE BODY EMP_PKG AS
    v_e_no NUMBER;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB) IS
    BEGIN
    select EMPNO bulk collect into temp_table from emp;
    for i in 1..temp_table.count loop
    v_e_no := temp_table(i);
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    end loop;
    end test;
    END EMP_PKG;
    PROBLEM FACING IS:
    I am expecting all rows returning from bellow select statment ...
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    But,while running the SP , i am getting error like
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "SCOTT.EMP_PKG", line 16
    why i am not getting all values as out parameters.please provide a solution for me.
    Thanks in advance my friend.

    user9041629 wrote:
    Hi All,
    i am facing a problem in passing multiple values as out parameters from for loop.
    EX:
    i have a select statment inside a loop like.....
    PACKAGE SPEC:
    create or replace PACKAGE EMP_PKG AS
    TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
    TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
    TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
    temp_table TAB_NUM;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB);
    END EMP_PKG;
    PACKAGE BODY:
    create or replace PACKAGE BODY EMP_PKG AS
    v_e_no NUMBER;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB) IS
    BEGIN
    select EMPNO bulk collect into temp_table from emp;
    for i in 1..temp_table.count loop
    v_e_no := temp_table(i);
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    end loop;
    end test;
    END EMP_PKG;
    PROBLEM FACING IS:
    I am expecting all rows returning from bellow select statment ...
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    But,while running the SP , i am getting error like
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "SCOTT.EMP_PKG", line 16
    why i am not getting all values as out parameters.please provide a solution for me.
    Thanks in advance my friend.Probably not a bad thing that this isn't working for you.
    This is a horrible way to return the contents of a table.
    Are you doing this for educational purpose, or ... what is your goal here? If you just want to return a result set to a client you'd want to look in to using a REF CURSOR and not a bunch of arrays combined with horribly procedural (slow) code.

  • Passing Interactive report item values to flash chart.

    Hello,
    I am trying to pass an interactive report item value to a 2D column chart type in the chart query as :IR_EMPNO but the item value comes as null and the chart does not show any data. when I am passing this value to another form item and referencing it in the chart query as :P2_EMPNO, it works fine!! have anyone encountered such problem? Please help.
    Regards.

    Thank you Varad...
    Unfortunately, I am still getting no data found. (and there IS data).
    a) Do you mean in the link column section of the report attributes? that is done: item 1 name= IR_P2_FID, value = #FID#
    b) Do you mean my changing my hidden page item to ir_p2_fid with its source value as #FID# ? also done.
    Do I need this hidden item?, and if not how do I refer to link in the where clause of the called page's sql region?
    3) Where Fishery_id = :IR_P2_FID
    Where Fishery_id = &IR_P2_FID
    Thanks again!
    Pamela

  • How to pass a value to javascript from flash using externalinterface

    hi,
    i'm currently trying to call a javascript function and pass values to it. but i'm not really familiar in using the addcallback since i only tested on calling a function from flash without passing anything to the function.
    Basically, i'm going to retrieve the values of a node from xml.
    and then i will assign those values to a variable in flash.
    now what i'm going to do next is pass this value to a javascript parameter..is it done using externalinterface?
    Could anyone give me an example.
    I just need to throw the value to the javascript function parameter and no return values to the actionscript.
    The event is that whenever an image is click, the corresponding value for each image is passed to the javascript function.
    here is my unfinished script.
    function imageClicked(e:Event):void {
        for each (var imageURL:XML in xml.images.link_to)
            ExternalInterface.call("TestButton",imageURL);
    thanks so much in advance.

    first, it seems that the 'TestButton' funciton in JS will be called several times when an image is clicked - for each loop in the 'for each' loop you wrote.
    second, in order to test the communication between AS and JS, try starting with something simple, like -
    ExternalInterface.call('alert', 'OK');
    if this doesn't work try tracing the ExteranlInterface.available property/
    if it does work, place an alert within the 'TestButton' in the JS code, to see its actually being called.
    and so forth...
    good luck,
    eRez

  • Convert XML "values" to be passed as CDATA into Flash

    Hello all,
    I found the following XML - Flash quiz template on the net
    and I was wondering how can I adapt the XML doc to pass CDATA
    instead of "Value". The code is currently sending the "answers"
    values into Flash as value, instead of values I will like to type
    the answers inside of CDATA tags. I don't know how and what to
    change in the XML as well as in the AS file.
    I tried to contact the author but no use, I guess his email
    is no more
    Please see the link
    http://actionscript.org/showMovie.php?id=831
    where you can see and download the files. I will appreciatte your
    help
    Mark this message as the answer.

    http://www.explorinlauren.com/repository/xml/using-cdata-to-escape-character-entities.html

  • Problem with prepared statement where cluase when passing string value.Help

    I am updating a table using the following code. I am using string parameter in where clause. if I use Long parameter in where clause with ps.setLong , this code is working. Is there any special way to pass string value? Am I doing anything wrong?
    ===================
    updateMPSQL.append("UPDATE MP_Table SET ");
         updateMPSQL.append("MPRqmt = ?,End_Dt = ? ");
              updateMPSQL.append("where POS = ? ");
              System.out.println(updateMPSQL.toString());
              con     = getConnection(false) ;
              ps      = con.prepareStatement(updateMPSQL.toString());
              ps.setLong(1,MPB.getMPRqmt());
              ps.setDate(2,MPB.getEnd_Dt());
              ps.setString(3,MPB.getPos());
    result = ps.execute();
              System.out.println("Result : " + result);
    ==========
    Please help me.
    Thanks in advance.
    Regards,
    Sekhar

    doesn't Pos look like a number rather than a string variable?
    if I use Long
    parameter in where clause with ps.setLong , this code
    is working.
    updateMPSQL.append("where POS = ? ");
    ps.setString(3,MPB.getPos());

  • Problem in Passing the value from child window to Parent window.

    Hi Frenz,
    I have a requirement like this. i have to pass a value from child window to parent window to one test field. That text field is not a normal text field.
    It was created like the following as SQL query.
    select
    ''LNo,
    apex_item.text(25,'',0,15,
    'style="width:100px;" onblur="javascript:showUpsell(this.value);" onkeypress="javascript:validateKeyPress(event,this.value,this.id);" onkeyup="javascript:this.value=this.value.toUpperCase();" id="P37_ITEMNO"') ItemNo
    Now i want to pass a value to the Item no from child window.
    i wrote the java script like this,
    opener.document.forms[0].f25.value="100";
    It was not working..Any suggestions for that..
    Thanks in advance

    Dear Baaju,
    How do you redirect your control from Child to Parent window.
    If you use a button to do this, then you can set this value in the branching of page.
    Rana

  • Adobe Flash Islands for Web Dynpro ABAP Data Binding problem

    I have downloaded the NetWeaver 7.1 Trial (includes Adobe Flash Islands for Web Dynpro ABAP). I try to create a very simple FlashIslands component running within the Web Dynpro Application, everything looks good. However, all binding to the Flex component is not working. Does anyone know why?
    Since it's trial version, I login as BCUSER into NSP system. When I load up the build-in sample, such as Chart Demo, the binding to Flex seems working. I suspect if it has anything to do with package? I could only create my Web Dynpro under the $TMP package, as all the build-in sample are defined in SWDP_DEMO.
    Please help.
    Alan

    hi,
    Check out this link. It will give you an idea how to integrate Aobe island comp with web dynpro.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307b434f-ff32-2b10-e885-991247270480
    Thanx.

  • Problem in passing multiple values between reports

    Can anyone help me in passing multiple values in prompts between reports in CRYSTAL REPORTS 2008  using opendoc or any method. I am able to pass single value from main report to second report. but not able to pass multiple values. Plz help me . Thanks in advance

    Hi Ramy,
    How you are passing your prompt values ? where you have created these prompts ? i.e. created these prompts in report level or stored procedure or Add command ?
    Thanks,
    Sastry

  • Problems passing value to an APEX application URL

    Greetings,
    My environment is:
    Apex 4.0.1
    Oracle 11g
    Apex Listener (Weblogic 10g)
    I am trying to pass a value to an Apex application from outside of Apex. Here is the URL I am using:
    http://<servername>:<portno>/apex/f?p=138:2:0::::F138_ID:abcde
    What happens when I enter this URL is the Login page is presented and I can successfully log in. I am directed to page 2 but the value of F138_ID is empty. I have tried it with an application item and a page item but still no value is passed. I have tried creating the page item where the value is populated from the application item. I have tried setting the value in a PL/SQL process. (:P2_ID := :P138_ID;) again no luck.
    Should this work? And if so, does anyone have any idea why it isn’t?
    Thanks for your help,
    Larry

    Thanks Sarvan,
    Unforunatly that did not work. I have been working with it some more and noticed that if the page I am trying to access has an Authentication of 'Page is Public' the passing of the value works as expected. It is only when Authentication is set to 'Page Requires Authentication' (i.e. the user needs to provide a userid and password) that it fails. Do you have any idea how to get around this?
    Thanks
    Larry

Maybe you are looking for

  • Users using server with netinfo database security. Better/Worse than Ldap?

    Hello, I have a small department of Mac users and I am in the process of setting them up to access a new Mac os/x 10.4 server. I created the accounts for the users in the local netinfo database with access rights granted to network shares via groups.

  • NEED A GOOD EXTERNAL HD

    Im looking for a good external drive strictly for running music off Logic. I have already delt with Lacie and have had my share of issues with those drives. What are some other drives that I can look into and get a good performance as well as reliabi

  • Display issue with old TV and more questions

    Hi, I'm trying to connect my 24" iMac to an older model TV with RCA and S-Video input. I haven't attempted to connect using S Video but i do have the adaptor for the iMac to use the Yellow RCA cable. I understand that it automatically changes the res

  • (Webdynpro Java)Business Graphics -  Speedometer Color settings

    Hi All, I want to implement Speedometer for a Webdynpro(Java) application which should show one value dial(Arrow) and one limit dial.  Limit dial Arrow should be in red color and the Speedometer area after the limit dial area should be in red.    I d

  • Iniciando con camara wep en labview

    Buen día espero este en el foro correcto y espero que puedan ayudarme, estoy iniciando a usar labview con una cámara web, quisiera saber qué es lo que necesito para poder usar los elementos de Visión and Motion los cuales no me aparecen y tengo enten