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;

Tags: Database

Similar Questions

  • How to assign the value to a dynamically created flash variable.

    I want to change the value of a variable that is in another flash movie. I loaded the swf file. Inside the function "onLoadInit", I wrote code like below.

    loadListener.onLoadInit = function(target_mc:MovieClip):Void
    {

    This [target_mc + "."] contents.obj.' + mcSelfObj. m_TemparVariables [w] .varname] = 'Left ';

    where mcSelfObj. m_TemparVariables [w] .varname contains 'position', which is the variable I want to change. This declaration is not assign a value to the variable.

    If I hardcode the above statement as below it works

    target_mc.contents.obj.position = 'Left ';

    }

    In the previous version of flash, we used eval() to make over assignments.

    While you don't seem to use AS3, try...

    [mcSelfObj.m_TemparVariables [w] .varname] target_mc.contents.obj = "Left";

    based on what you say works, which is the best I can do to determine where the media should be.

    If these are all a form of variable identity rather than the names of instnance, then you will need to use parentheses for each instance and do not use points

  • 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

  • How to assign the permit system to a page

    I confess that I am clearly missing something, but I've spent the last hour by clicking on the attempt to add a schema authorization to a page - quick easy answer, surely?

    I'm in the definition of the Page and by security section, I saw and create buttons, but all this doing is either see my created authorisation schemes, or create new ones - do NOT connect them to this page.

    Page > edit > authorization

  • 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
  • How we use the variable checkbox?

    I use Cap 8. Finally, I want to set a variable to store the user's decision to play any narration automatically, or do not play automatically narration.

    A check box appears as a perfect way to let the user make this decision, so I used the box widget to display only a single checkbox. Successfully, I set the text property of checkbox and entered a unique variable name (myNarrationDefault) to store the State of the checkbox. Now how to access the variable?

    I added a text field, so I could see the value of this variable. However, when I try to insert a variable, I don't see the new user variable, in the list. Then I tried to add an action to a button just to see if the variable appears in the tool; There can be no.

    I'm doing something wrong?

    Thank you

    Pete

    In fact, you will need to create so that the variable you made in the interaction interface, CP does not do it for you, project/Variables in the top Menu.

    When the box is checked, the value is then assigned to the variable.

  • How to remove the variable created when using definedNamedWhereClauseParam()

    Hello

    My Jdev version 11.1.1.7.0.

    I'm Executive where clause programatically where I need to bind two bind parameters under certain conditions. Example, I have two bind variables X, Y.

    Here's the problem:

    Assume that the first time I'm setting one variable X, so I define X bind variable and execute the query.

    What second time I send only Y but not X. In this implementation of the scenario of VO throw an exception, given that the variable X is already created in the VO object and where clause does not have this setting.

    So how to remove variables created in the original Version all in definedNamedWhereClauseParam(). I need to erase what ever the previously created variable every time I execute method.

    I can make the similar functionlity using setWhereClauseParam (using literals). But I have a few technical restrictions for use.

    Could you please help me how to remove the variable before vo using definedNamedWhereClauseParam.

    Caused by: java.sql.SQLException: try to set a parameter name that does not intervene in the SQL: itemNumber
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15969)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
    at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName (unknown Source)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4669)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3687)
    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:22742)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1298)
    ... more than 96



    Thank you.

    -Diette.

    Published by: Vidya Diette on February 28, 2013 08:43

    Hello

    You need access to the variable Manager. Order of reading in the JavaDocs:

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManagerOwnerBase.html#getVariableManager%28%29--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableValueManager.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManager.html#removeVariable%28java.lang.String%29

    Frank

  • How to resize the window elements 11 photoshop on mac? no green +.

    How to resize the window elements 11 photoshop on mac? No button green + out of the screen.  cannot resize monitor - no option on macpro

    Go to System Preferences > displays and your descent of resolution. Let the OS X to open with the new resolution. Place it back up to the highest available resolution and the window should position themselves correctly.

  • How to assign the temporary tablespace to a table

    How to assign the temporary tablespace to a table

    temporary tablespace can be attributed to the user.

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • How to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

  • NOTEBOOK: HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED...                                                                                                                                                                                      Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    Go to file, Page Setup and remove header and footer text.

    "jimmcanany" wrote in the new message: * e-mail address is removed from the privacy... *

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED... Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    * You have problems with programs
    * Error messages
    * These recent changes made to your computer
    * What you have already tried to solve the problem, HOW can I STOP THE WORD EMBEDDED 'UNTITLED' of BEING PRINTED on the PAGE that I USE

  • How to stop the printer printing an extra page after that I have print something, with getting http: /h10141 on top

    How to stop the printer printing an extra page after that I have to print something, with mGET http: / h1014.www1.hp.com/pup/inkjet/updates/va/mamifests/b_bu_c_p00_348e88c

    Host: h10141.www1.hp.com

    Accept-encoding: identity; q = 1.0 *; q = 0

    User-Agent: HP - inkjet ink-WebUpdate - 1.1

    printer

  • How to reverse the direction of turn of page in first pro cs6?

    How to reverse the direction of turn of page in first pro cs6?  The two clips are on video 1.  I passage of tour page between clips of drugs and it works perfectly.  The tour takes its source in the Northwest corner and end in the southeast corner.  I want the exact opposite.

    Click on the transition.

    Window > controls

  • How to view the last element in a dynamic table 1 d

    Hello..

    I want to display the value of the last element in a dynamic array 1 d... / I mean... If I stop the vi race, I need to display the last element of the array... How can I do this?

    and is it possible to use a button to start the vi... instead of using the Run button on the face before of the vi?

    An array of index!.  Size of table allows to determine the size of your array, subtract 1, that feed into the terminal array of Index index.

    You start the VI running somehow.  It can be assigned to run when opening.  Assuming that what you want is a way to type values in a front panel, press a GO button you created on the front panel, then have the real part of the VI to run.  You can use a structure of the event.  Or put a while loop at the beginning with a small wait next statement which basically just asks the GO button.  When you press this button, the Boolean value true stops the whole loop and allows the program to move on the main body of your program.

Maybe you are looking for

  • Win 7 - Vista Recovery

    The release of Win 7 in October, a clean install will be necessary, who will rub Vista. It will be possible, if you wish, to return to Vista, using the DVD (s) recovery or the recovery partition? It will be necessary to repeat the recovery DVD creati

  • Upgrade memory ThinkPad Tablet 2 (367927U) possible?

    I can't seeem to find a position or instructions on how to improve the memory of 2 GB 4 or 8. Is it still possible?

  • Windows har fundet en ukendt r. 800F080D

    Hvad, jeg skal gore? MIT internet does which ned.

  • installed newprinter and turns off print spooler

    installed hp 9640 printer. keep XP turning the spooler to offshore and have to restart it every time I use IE

  • Cannot install FL Studio 9.

    Whenever I boot the cd, the menu screen has a picture of empty, black background behind it, as well as a larger grey behind the two. When I order 'INSTALLFL STUDIO ' my dvd player made this winding noise like a vacuum on and it takes forever to load