assign the value in the variable

Hello

I use the 4.2 APEX and an Oracle 11g DB.

I made an APEX Page where I have a text field should show the value of a SELECT statement. The name of text field is TEXTFIELD_3.

SELECT anr IN: TEXTFIELD_3 FROM article 1 of the LIMIT;

When I run the statement directly on the DB I get a value, but all running in my APEX Application, I get the error ORA-01403.

You have a suggestion, why I get this error?

Can you give more details please? What is the source of the text field? Version of the APEX? where you have used this "SELECT anr IN: TEXTFIELD_3 FROM article LIMIT 1" statement? check if the 'article' table or not, data?

Thank you

Lacombe

Tags: Database

Similar Questions

  • Marquee Learning Interaction; Assign the Variable does not transfer all text.

    Captivate v9. The use of the Interaction of learning of text scrolling to capture text user input by assigning a Variable name. On the next slide, insert the Variable in a text caption. The text entered in the previous slide in the scrolling text is truncated. For example, the entry of 2 or 3 sentences (100 + characters) generates only the first 50 or so displayed in the text caption.

    When you inserted the variable in the dialog box did increase the length of the default 50 to what you want?

  • The user select several shapes and assign the variable

    Hello

    I worked mainly Storyline articulate and now I'm back in Captivate 8 I really miss simplicity of the scenario

    I need to create a very simple interaction "select all the boxes." I want the text in boxes and the user to select as much as they wish (there are 10 in total) and that selected they should change their 'down' State, so it is obvious that they have enabled the box on and then a variable is assigned to show later in the course.

    I told the Action for the award of variable when the user clicks on but just slide forward and I can't select several options. Also, there is a pause on the button continue for the slide does not move on to the next.

    Can someone tell me how I can do this SIMPLE interaction quickly?

    A simple action will always be out of reading, replace it with a standard advanced action (can be a single line, but I think you will need more than one).

    Why choose Standard Simple action? -Captivate Blog

    It also has a link to a YouTube video.

    Keep with scenario then... for me it's very simple, but that's just me.

    What should be stored in the variable? The number of texts chosen? Or do you want a text variable and change this variable from 0 to 1 if the corresponding text is selected?

    Why not use the interaction of checkboxes? It's pretty simple to use, it will store the answers selected in the variables.

    If you explain better what you want to, have solutions for all situations.

  • Assign a value to a variable

    Kind of a matter of newbie here.  In TestStand, I use an action (ReadTemp see table) to call a .vi who reads a temperature of a sensor.  One of the parameters in action (the return of the vi) is the value of the temperature as a DBL.  I would attribute this numerical value to a variable FileGlobal to decide at what stage of test that is run then.  It doesn't seem like this should be difficult, but I don't know how to do it.  Any help would be appreciated.

    I can't read your attachment for the moment, but I noticed that you use TestStand 4.1

    Then you should be able to set the output of your VI connection your FileGlobal, but please make sure that you have connected to this output in your VI to the part of the connector of the VI. Back to TestStand SeqEditor, if you do not see this connection try to make a prototype of reloading.

  • How to assign the variable element of dynamic page?

    Hello

    I am facing following problem:
    I need assign a variable with a value of a page element - for example apex_application.g_f04 (i).
    My problem is, that f04 maybe everthing between f04 and f52 (or whatelse was number of page elements?).
    I've tried several things, among others, something like this:

    v_test: = apex_application.g_f | x | (i) / * where x can be another variable * /.

    or

    v_stat: = 'SELECT apex_application.g_f ' | x | "(i) the double '.
    EXECUTE IMMEDIATE v_stat INTO v_test

    but I do not understand so far...
    Any ideas?

    Published by: DFiles on 06.01.2011 13:57

    apex_application.g_f0x variable package are associative arrays and are not accessible to the dynamic SQL. You must use the dynamic PL/SQL:

    declare
    
      i pls_integer;
      x pls_integer;
      v varchar2(32767);
    
    begin
    
      /* However you get values for x and i... */
      i := 1;
      x := 4;
    
      execute immediate 'begin :1 := apex_application.g_f' || to_char(x, 'fm09') || '(:2); end;'
        using out v, i;
    
      return v;
    
    end;
    
  • Assign the variable text tag number...

    Yes, I'm fairly new to Flex and coding in general... but I'll try!

    I have everything works ok, except at the end, I want the var z: number assigned to the resultLabel.text field...

    I can calculate z very well... I can't do it in resultLabel to display...

    Here is my code... This is a simple calculator...

    I want to get z resultLable to display... any help?

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >
    < s:layout >
    < s:VerticalLayout gap = "10" horizontalAlign = "center" / >
    < / s:layout >

    < fx:Script >
    <! [CDATA]
    private void more (): void {}
    showLabel.text = ' + ';.
    }
    private void less (): void {}
    showLabel.text = ' - ';.
    }
    private void times (): void {}
    showLabel.text = ' * ';
    }
    private void divide (): void {}
    showLabel.text = ' / ';.
    }

    private void go (): void {}
    var x: Number = Number (text1.text);
    trace ("x is:" + x);
    var y: Number = Number (text2.text);
    trace ("is:" + y);
    var: number of z;
    trace ("Z is:" + z);
    {Switch (showLabel.Text)}
    case ' + ':
    z = x + y;

    trace ("Z Plus is" + z);
    trace ("text is" + resultLabel.text);
    break;

    case ' - ':
    z = x - y;
    trace ("Less Z is" + z);
    break;

    case ' * ':
    z = x * y;
    trace ("Time Z is" + z);
    break;

    case ' / ':
    z = x / y;
    trace ("Div Z is" + z);
    break;

    by default:
    break;

    }
    }
    []] >
    < / fx:Script >

    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    < s:HGroup width = "436" height = "53" gap = "10" verticalAlign = "top" paddingTop = "10" >
    < s:TextInput id = "text1" / >
    < s:TextArea id = "showLabel" width = "65" height = "22" borderVisible = "false" editable = "false".
    focusEnabled = "false" textAlign = "center" / >
    < s:TextInput id = "text2" / >
    < s:Button label = '=' id = "equalsButton" click = "getCurrentCard" / >
    < / s:HGroup >
    < s:VGroup width = "200" height = "57" horizontalAlign = "center" >
    < s:Label id = "resultLabel.
    x = '31 '.
    width = '139 '.
    height = "38".
    fontSize = "15" / >
    < / s:VGroup >
    < s:HGroup width = "436" height = "200" gap = "10" paddingLeft = "50" >
    < s:Button
    Label = ' + '.
    a click = "plus().
    ID = "addButton" / >

    < s:Button
    Label ="-"
    ID = "subButton".
    Click = "MINUS ()" / >

    < s:Button
    "" Label = "*".
    ID = "multButton".
    a click = "times()" / >

    < s:Button
    Label = ' / '.
    ID = "divButton".
    a click = "divide()" / >
    < / s:HGroup >
    < / s:Application >

    In the function 'print' after your switch statement, resultLabel.text = String (z); should work... unless I'm missing something

  • How to assign the variable in the SQL script?

    I have the below running to generate the XML from the file.
    set long 100
    set pages 0
    set trimspool on
    set serveroutput on
    set echo off
    set terminal off
    variable out CLOB
    begin
            pack.proc('&&1','&&2',:out);
    end;
    /
    spool /dir/loc/file1.xml
    select :out from dual;
    spool off
    I'm queue in the order of the coil, the output to a file named file1.xml. I invoke this SQL script from a shell script, I will pass variable association 3rd since the shell script which I want to use in the file ' & & 3'.xml. Help me set this variable to the DIGITAL field in this SQL script and how can I add to the command of the coil?
    set long 100
    set pages 0
    set trimspool on
    set serveroutput on
    set echo off
    set terminal off
    variable out CLOB
    define var1='&1' -- to allow for more readable code
    define var2='&2'
    define var3 ='&3'
    begin
            pack.proc('&var1','&var2',:out);
    end;
    /
    spool /dir/loc/file&var3..xml -- note the substition variable has  . appended
    print out
    spool off
    

    ------------
    Sybrand Bakker
    Senior Oracle DBA

  • Assign a value to a variable ODI or Java in a KM

    Hi gurus,


    I develop a new km and I need to get the name of a dblink calling an Oracle function. How to store the result of a function in an ODI or Java variable in a KM stage?
    And if it's in a Java variable, how to use it in this kind of step (line 7):

    create or replace view < %=odiRef.getObjectNameDefaultPSchema ("L", "", "W") % > < % = odiRef.getInfo ("COLL_NAME") % >
    (
    < % = odiRef.getColList ("", "[CX_COL_NAME]", "\n\tclick", "", "") % >
    )
    in select < % = odiRef.getPop("DISTINCT_ROWS") % >
    < % = odiRef.getColList ("", "[PHRASE]", "\n\tclick", "", "") % >
    from < % = odiRef.getSrcTablesList ("", "[SCHEMA].) [RES_NAME]@"+++*#PROJECT. VARIABLE * +++ "[POP_TAB_ALIAS]", ",", "") % >
    where (1 = 1)
    < % = odiRef.getFilter () % >
    < % = odiRef.getJrnFilter () % >
    < % = odiRef.getJoin () % >
    < % = odiRef.getGrpBy () % >
    < % = odiRef.getHaving () % >


    Thanks a lot for your help.


    Best regards

    Insted of jython, if you're going to take java beanshell, it would be great.

    Source technology: Oracle (also select the logic diagram where the sql query runs)
    The target technology: Java BeanShell

    put the codes below in the target tab Source tab will be empty.

    <>
    import java.sql. *;

    String val ="";
    String sqlquery = "select sal from emp;
    Connection conn = odiRef.getJDBCConnection ("SRC");
    Statement st = conn.createStatement ();
    Res ResultSet = st.executeQuery (sqlquery);
    While (res.next ()) {}
    Val = res.getString (1);
    }
    Conn.Close ();
    @>

    Just substitute your query.
    SQLQuery = "SELECT DBLINKNAME (< %="odiRef.getOption("SRC")%"><%=getContext("CTX_NAME")%>) FROM DUAL"; "

    Now you can use this variable of java (val) in your procedure.
    Thank you.

  • Multiple values in the Variable.

    How can I assign multiple values to a variable in the RPD?
    I want 'NY', 'CA', 'HE', 'TX' declares a variable, is it possible? If so, how?
    Thank you.

    Hello

    In your init block change for initialization and use SQL statements like this:

    Select 'STATE', Sun-places where the State IN ('NY', 'CA', 'HE', 'TX')

    This will create a STATE variable that has all of these values in it.

    You can then use it in a report as a filter [column name] = STATE the server OBIEE should automatically turn this into one for physics SQL.

    Kind regards

    Matt

  • Set the value of a variable using a conditional, on a sliding scale?

    Basically what I'm doing, is assign the variable "supplement" a number of base on the Variable 'numberOfSheets '. The only problem is that I need to assign a different variable for each leaf up to 6,000. All about 6000 will have the same variable.

    Someone has any idea how to write something like this, without having to show the sources individually each sheet?

    Here's an example of my code...

    function calculateUpCharge (): void {}

    {if (numberOfSheets = 1)}

    upCharge = number (20);

    }

    ElseIf (numberOfSheets = 2) {}

    upCharge = number (19.5);

    }

    ElseIf (numberOfSheets = 3) {}

    upCharge = number (19);

    }

    ElseIf (numberOfSheets = 4) {}

    upCharge = number (18.5);

    }

    ElseIf (numberOfSheets = 5) {}

    upCharge = number (18);

    }}

    What is a linear function?  If so, use:

    var m:Number;

    var b:Number;

    paramF (6000,2,1,20);

    function calculateUpCharge (): void {}

    upCharge = m * numberOfSheets + b

    upCharge = Math.max (upCharge, m * 6000 + b;)

    }

    function paramF(x1:Number,y1:Number,x2:Number,y2:Number):void {}

    m =(Y1-Y2) /(x1-x2);

    b = y1 - m * x 1;

    }

  • Dynamically create a file using the variable

    HI, I am facing a problem in creating file on the time of execution using the variable.
    I have a variable file name. In the tab refresh, I wrote a query SELECT TO_CHAR (SYSDATE, 'YYYY, MM, DD') | 'TEST' FOR DOUBLE. I tested the variable and its value is correct.

    I've created an interface allowing to extract the data in the table and store it in the file. I assigned the variable file name in the file.

    Now when I run the interface... the file is created, but the header is created in different file and its name is ambiguous, g (19) and the data are placed in the other file with the name that matches the value of the variable filename...

    It is two ODI creates two files a single header and other data...

    When I run my interface in a package of the file created perfectly... but one i want to use package I want to create a file via the interface only running

    What is the name of the second file? (the file that does not have the name of the variable)

  • AS3 SWF is not updated to the variables through javascript

    Do not find this one: I have a C4 project with 2 slides.  First slide has a button that executes a Javascript call:

    SetStringVariable("myVar");
    

    Where myVar is an internal variable of the user of C4 with a default value of "Hello World".

    The second slide a myVar is displayed in a text caption.

    I publish the SWF (AS3) and add this javascript function in the .htm file:

    function SetStringVariable(n)
    {
         document.getElementById('Captivate').SetVariable(n, "I set my variable!");
         alert("my var: " + document.getElementById('Captivate').GetVariable(n));
         
    }
    

    When you run the project on the web, the alert comes up with 'I put my variable!', but the legend of slide 2 still says 'Hello World '.  Not sure why this happens since I just did a round trip with the variable.  It is as if the C4 assigns the variable behind the scenes, but is not updated in the user interface.  This will not occur if the C4 project is published in AS2.

    All this experience?  No work around?  I would like to be able to use the SetVariable function in AS3 projects.

    TIA,

    Jim Leichliter

    Sweet - I think I need this thing... :-)  Thank you!

  • How to display a value constant and variable

    Hello
    I'm trying to display a variable in sql the line of command and oracle xe object browser. Here is a small code to assign a value to a variable of an existing column name id that has value 4567 plane of the table. I'm a newbie, so forgive my ignorance:

    Report the number of new_num;
    Start
    Select code in new_num of aircraft where id = 4567;
    end;
    /

    Issues related to the:
    1. something wrong with the code?
    2. How can I he discovers via sql more command line?
    3. can I see it in Oracle XE gui object browser?

    Kind regards
    Valerie

    Dbms_output.put_line ();

    declare new_num number;
    begin
    select id into new_num from airplane where id=4567;
    dbms_output.put_line('new_num:'||new_num);
    end;
    /
    
  • How to assign the next value in the sequence directly in a variable?

    How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.

    BluShadow wrote:

    How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.

    ...

    Nope... no obvious difference.

    This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.

    create sequence s;
    alter system flush shared_pool;
    declare
    l_num number;
    begin
    l_num := s.nextval;
    end;
    /
    select sql_text from v$sql where parsing_schema_name = user;
    
    SQL_TEXT
    Report the number of l_num; begin l_num: = s.nextval; end;
    Select sql_text from v$ sql where parsing_schema_name = user
    Select double S.NEXTVAL
  • Question of assignment to the value of the variable ODI

    Hello

    I have a value assigned question of one ODI variable to another

    Scenario:

    I have 2 variables var1 and var2 and you want to assign the value of var1 and var2. Assuming that var1 has a value of 11

    I want in the end

    var1 = var2 = 11

    What do I do?

    At the project level, stated 2 variables var1 and var2 alphanumeric two, without history

    In the package

    (1) I said as a refreshment var1 variable assigned a value via refreshing option

    (2) declared a second SET variable var2

    (3) assigned (tried various options) value with different options

    # < Project code > .var1

    "# < Project code > .var1.

    "# < Project code > .var1.

    < % = odiRef.getOption ("var1") % >

    The value of VAR2 attaches not to the value of VAR1.

    Hello

    I am sure that I answered a question similar at least twice in recent months. Please do a search...

    However do this changes

    • put your variable to the most RECENT VALUE
    • Rename them in capital LETTERS
    • Equip your package the following steps
      1. declare VAR1
      2. say VAR2
      3. Refresh VAR1
      4. Assign VAR2 with this #PROJECT value. VAR1

    Let us know.

  • Assign a value of "dynamically created the sequence" to a variable

    in my procedure I am creating a sequence on the fly, I prepare the name with some parameters passes as below

    .
    .
    v_seq_name: = "seq_". loadid | v_table_name;
    run immediately 'CREATE SEQUENCE'. v_seq_name | "MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 increment of 1 hiding 20';
    .
    .

    and now after doing some operations I need to assign the current value of the sequence to a variable number, I tried but does not subsequently

    (1) v_curr_value: = v_seq_name.currval;
    (2) select v_seq_name |'. nextval' in double v_curr_value;

    can you please suggest me how can I get the value in plsql block.

    And what is - this?

    v_curr_value: = v_seq_name.currval;

    Of course, it will fail. If you want to get currval in a sequence whose name is stored in a variable, you must use dynamic SQL:

    SQL> declare
      2      v_seq_name varchar2(30);
      3      loadid number := 1;
      4      v_table_name varchar2(10) := 'tbl';
      5      v_curr_value number;
      6  begin
      7      v_seq_name := 'seq_' || loadid || v_table_name;
      8      execute immediate 'CREATE SEQUENCE ' || v_seq_name ||
      9                        ' MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 increment
    by 1 cache 20';
     10      for i in 1..5 loop
     11        execute immediate 'select ' || v_seq_name || '.nextval from dual'into v_curr_value;
     12        dbms_output.put_line(v_curr_value);
     13      end loop;
     14  end;
     15  /
    1
    2
    3
    4
    5
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

Maybe you are looking for