Problem with the setting session state variable...

So, I try to understand the context of variables.

I have a package with a few procedures that were hard coded so I decided to change some of them to use variables in them.

I'm in APEX 4.1 g 11 backend.

When I run:
BEGIN
APEX_UTIL.set_session_state('p_collection_var', 'STORAGE_TABLE');
END
I thought is a variable that would be accessible by:
v('p_collection_var');
in the package I have.
ERR-1002 Unable to find item ID for item "p_collection_var" in application "4500".
It seems that as the first code is not setting the variable. I'm not sure what I am doing wrong with that.

Published by: bostonmacosx on November 27, 2012 15:36

Hello

You have a page or application P_COLLECTION_VAR in your application?
You call APEX_UTIL. Procedure SET_SESSION_STATE and V session function valid apex?

BTW, I think you still need to write the name of the element with capital letters.

Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • Problem with the 'Set Up' for CS4 application

    Still no luck - I'm on a mac under OS 10.9.5 and I'll have an iEdition with the 'Set Up' app for the teacher/student CS4 version: I had to reinstall my CS4 Design premium. The trouble begins after I click the app Set Up - I get to the section "installing applications" of the process, but then window in Set Up will not let me scroll down to select applications to install InDesign, Photo shop etc. If I try to start checking the boxes, the installation process seems just to stall and no progress bar appears. When I select 2 boxes of application as a test, I get a msg of error "Setup error". I have both version CS4 I bought the disc and the downloaded version that the cat office sent me too and the error occurs on two versions of the Set Up. I hope someone can help because I need this software pkg working again as soon as possible. TKS

    Too old for Adobe to support and I'm not Mac

    kglad links in response to #1 here https://forums.adobe.com/thread/2017859 can help try another download

  • I have a problem with the setting screen.

    I moved my computer from one room to the other. The screen now goes beyond the edges of the visible screen. I use a Samsung TV via the HDMI interface. I have two screen resolution options and doesn't solve the problem. I need to adjust the size of the screen vertically and horizontally in a few cms. TV doesn't have this adjustment, but can change the picture widescreen 4:3 when I do this the edges of the screen are black and yet the visible part does not always show the edges of what needs to be displayed. I have no Menu bars without scroll bar.

    Go to your computer manufacturer's support web site and search for Windows 7 drivers for your specific model number.
    If there is no driver, your PC may not work correctly (No. LAN or WiFi, Audio, USB, etc.) after the installation of Windows 7.

    If there are Windows 7 drivers, then to download to a folder on your hard drive and install all of them, starting with the card drivers mother/chipset, LAN, Audio, USB, Graphics, SATA, Webcam, Etc., and so on.

    Graphics/video card drivers:
    Check the download site of the manufacture of the graphics card for the latest Windows 7 drivers for your card.
    ATI: http://support.amd.com/us/gpudownload/Pages/index.aspx
    NVIDIA: http://www.nvidia.com/Download/index.aspx?lang=en-us

    J W Stuart: http://www.pagestart.com

  • Problems with the implementation of State machine enemies spawn

    Hi guys,.

    I am developing my own 2D shoot-em - up and using a book called "The essential guide to Flash games" as reference to create my own state machine enemies spawn where the game keep enemies spawning (game will always until the player dies). I tried to trigger each enemy spawn that occur at the level of the game with a variable called 'chance '.

    With my current attempts, the game does not an enemy and does not other or not spawning all enemies at all. I was wondering everyone here has suggestions/advice for this question, I will have?

    Here is the sample code from the book that I used:


    public void Main()
    {
    Level = 1;
    score = 0;
    chance = 0;


    enemies = new Array();
    makeEnemies();

    }

    public function makeEnemies (): void {}
    var chance: Number = Math.floor (Math.random () * 100);
    var tempEnemy:MovieClip;
    If (< 2 + level of luck)
    tempEnemy = new EnemyImage()
    tempEnemy.y = 435;
    tempEnemy.x = Math.floor (Math.random () * 515)
    addChild (tempEnemy);
    Enemies.push (tempEnemy);
    }
    function checkCollisionWithEnemies(bullet:MovieClip)
    {
    If (enemy.meter.width < 1)
    {
    Enemy.Stop ();
    swapProperies (enemy, b);
    removeChild (enemy);
    enemy = null;
    level ++;
    }

    Occurring in the book lines:

    "var chance: Number = Math.floor (Math.random () * 100);"
    "If (< 2 + level of luck).

    should create + 2 enemies according to the level of the game, but no enemies to reproduce at all. I also tried a different method with "if (level > = 1)" but that creates a single enemy.

    Anyone have any suggestions of what I'm doing wrong? Any help would be greatly appreciated.

    Thank you

    Jonesy

    > is not new spawning enemies when the former enemies are killed

    You have nothing to create new enemies in the function "checkCollisionWithEnemies()".

    > three enemies are created in the beginning instead of one

    The for () loop based on makeEnemies() is configured to run 3 times (I I = 0, 1, 2)

  • Problem with the setting on Windows 7 Remote Desktop connection

    Former title: remote access

    Dear Forum,

    I had a problem trying to help a friend with problems of view (running Windows 7), I'm on Windows 10.  When I try to make the necessary connections on his laptop I do not get the options I see in the help videos.  Rather than get three options;

    • Do not allow connections to this computer
    • Allow the connection of computers running any version (less safe) remote access
    • That allow the connection of computers running Office remotely with network level authentication (more secure)

    I get the screen below and clicking on advanced not me these options either!  Can anyone help?

    Thank you

    Stuart AV

    Hi Stuart,

    Please contact Microsoft Community.

    For better support and advice in this regard, I suggest post you your request in The Forums TechNetsupport. Hope they help you accordingly.

    I appreciate your cooperation in this regard.

    Let us know if you need assistance.

  • Problem with the simple Select statements

    Hi experts,

    I have with SQL Server and I'm going to hurt when I use the similar syntax in sqlplus to query an Oracle table.

    For example... my table contains column SCHID SET in the numeric form. Table has thousands of lines and the SCHID column is filled.

    Select TOP 100 AFTSCHAUXDATA SCHID;

    Get the "Word FROM key not found where expected" error

    Select DISTINCT from AFTSCHAUXDATA SCHID;

    Download "no selected lines.

    Can someone help me please?

    Thank you, John

    Can someone tell me how to find the names of the 20 largest tables (bigger which means that most of the files)?

    Once you have updated statistics on the table, you can query the DataDictionary: USER_TABLES/ALL_TABLES/DBA_TABLES.
    I'm assuming that user_tables will do:

    select *
    from ( select table_name
           ,      num_rows
           from   user_tables
           order by num_rows desc nulls last
         )
    where rownum <= 20; 
    

    You can find more explanations about the DataDictionary in the Oracle Online Documentation.
    Just do a quick and easy search
    http://www.Oracle.com/pls/db112/homepage
    or
    http://www.Oracle.com/pls/db102/homepage
    Depending on your version of the database.

  • Problem with the update CFQUERY statement

    I can't get an SQL Update statement works correctly and I am scratching my head as to why.

    The result I get is:

    Syntax error in UPDATE statement

    SQLSTATE 42000
    "SQL UPDATE businesses SET CompanyName ="Insight Data Ltd", Address1 =" 5 Boulevard", address2 =", Address3 = ", city ="Weston-super-Mare", County is"North Somerset", postal code ="BS231NN", OfficeBranch ="BR", contacttitle1 = 'Mr', contactname1 is"Andrew", contactsurname1 ="Scott", contactposition1 ="Owner", mail1 = 'Yes', TelNumber = ' 01934 123456 ', GST = 'no', number of Fax =", FPS = "no", phone =", MPS = 'no', email = '[email protected]', EPS = 'no', Adresse_web =' http://www.insightdata.co.uk', = 'Mr' contacttitle2, contactname2 is"David", contactsurname2 ="Lewis", contactposition2 =" Office Manager " mail2 = 'no', contacttitle3 = 'Mr', contactname3 = ", contactsurname3 =", contactposition3 = "Owner", mail3 = 'no', contacttitle4 = 'Mr', contactname4 = ", contactsurname4 =", contactposition4 is 'Owner', mail4 = 'no', wPVCUfab = 'Yes', wALUinst = 'yes', WHERE companyid = 33415 information
    VENDORERRORCODE-3503
    Idv6 DATA source

    I checked all the data fields are in the correct format, and I don't see why I'm getting a syntax error. Any help on this would be appreciated

    Okay, but it looks like you already have the sql code. Take the query in the error message above and run it in your database. However, I have noticed have a comma between the last column and there WHERE clause.

    wALUinst = 'Yes', WHERE the companyid = 33415 information

    For optional columns, put the first comma to avoid errors due to the leak, or too many commas

    UPDATE Table
    SET column1 = 'value '.
    , Column2 = 'another value '.
    WHERE ID = 123

    Two other points to consider: use cfqueryparam and consider to normalize your table. The names of column as to Contact1, Contact2, Contact3... usually is a sign of his time to normalize.

  • problem with the order of statements

    Hello

    I know that, in the declaration section, the cursor should be at the top of the statement and only then I can declare the internal procedures, functions etc.
    But what happens if in this slider, I need the result of the internal function said after the cursor? The cursor does not see this feature because is declared after.
    How do I write this slider, is it possible?

    Thank you!

    The SQL engine is aware of the standalone procedures and functions as well as public packet methods. He is not aware of the private methods in a package or nested procedures & functions. The PL/SQL engine always runs all PL/SQL blocks, it's just a question of which blocks exposes it PL/SQL in SQL engine.

    If you need to call a nested function or a private function declared in your package, it is normally relatively simple just call the function in an iteration on the cursor rather than in the cursor declaration itself, i.e.

    declare
      l_dname dept.dname%type;
      cursor employees is
        select *
          from emp;
      function get_dname( p_deptno in number )
        return varchar2
      is
        l_dname dept.dname%type;
      begin
        select dname
          into l_dname
          from dept
        where deptno = p_deptno;
        return l_dname;
      end;
    begin
      for i in employees
      loop
        l_dname := get_dname( i.deptno );
      end loop;
    end;
    /
    

    rather than trying to call the GET_DNAME procedure in the context of the cursor EMPLOYEES.

    Justin

  • global scope &amp; pl/sql variable in open_form with the new session

    Hello

    What will be the global scope of the Oracle variable shape & variable declared in a pl/sql pckage, if the value of these variables is updated from the form interface Oracle, if the form is opened using open_form with the new session or a session Active.

    My requirement is, I developed an application with custom user login name & password - not the Oracle username and password.
    But I need follow the user actions on forms - action insert/update / delete, for this user_name i included as one of the column in the table base and shape, initialize this field with the login user name.

    I have implemented this in the detent of the base table. But to remove them, I don't get the username which were deleted, only for the user who created this folder, because that: NEW is not in the scope according to the delete trigger. So for the delte, I created a variabe in a PL/SQL package and created two procedure to set and get the username to this variable, and form, before you delete using the set method I assign the user name of the current connection to the variable and in the trigger using the get() method get the user name from the variable , Until now it works very well, my doubt is what will be the value of the variable, if two different users delete action of in same time, if the first user name will be replaced by second or this variable will be different session, if I opened the forms using the SESSION parameter. Also can I use Oralce forms global variable instead of the PL/SQL varibale.

    I thank in advance.

    The scope of a package-db variable is per database session. So different forms-session or even different DB - inside a session of forms "will not overwrite" between them.

  • Big problem with the variable PATH approx. need help!

    Hello
    I had a problem with the PATH environment variable. Instead of updating client Informatica & server paths PATH env variable, I created new PATH env variable and to establish client & server paths and saved. When I revisited this PATH Env variable, I was shocked to see the content of the PATH variable. I have to set back the old values like windows OS, DB etc paths paths. Could someone tell me how to make or do I have to reinstall the OS, DB, etc. Am on WIndows server 2003.

    I saved my PATH before configuring Informatica. Here's what I had:

    Path = C:\oracle\10gclient\bin; C:\OracleBI\server\Bin; C:\OracleBI\web\bin; C:\OracleBI\web\catalogmanager; C:\OracleBI\SQLAnywhere; C:\OracleBAM\ClientForBAM\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\OracleBAM\BAM; C:\Informatica\PowerCenter8.1.1\client\bin

    The critical components of the OS dependent PATH is % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem.

  • How do I monitor/find where is the State of my download?  I don't know how long it takes or if there is a problem with the download that I can't find anything.  Also, is it supposed to be an icon for my purchase of Photoshop and light in my apps folder

    How do I monitor/find where is the State of my download?  I don't know how long it takes or if there is a problem with the download that I can't find anything.  Also, is it supposed to be an icon for my purchase of Photoshop and light in my apps folder?  Where can I find that when it's done download?

    Could you please confirm the operating system you are using.

    You can see the status of the application of CC desktop download.

    The CC app desktop click the creative cloud icon located in the taskbar (Windows) or the Apple bar (Mac OS) menu, to open the creative cloud desktop application.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Problems with the buttons (on the area of State/Hit)

    The site I'm getting is:

    http://www.RelicRockBand.com

    If you go to the "Biography" section, you'll see four links that work as buttons of reversal.  Now, if you go to the 'Media' section, you will see 6 links that do not appear to react correctly as buttons of reversal.  They fulfill their function, but it is difficult to get the button to appear in its "underline" in the State.  I don't know if it is a problem with the over State, the status of success or another problem with how I built the site.  If you want to take a look at this, go to:

    http://www.uvm.edu/~nmphilli/Relic_Website/Flash/Relic_Webpage.fla

    to get the FLA for the site.  The concerned items are nested as follows: in scene 1, on the content layer, label image 'Media' (frames, 16-21), you will find Media_Fader, where is Media_Content, in which are several buttons, each with getURL actions that are applied to them.  Any help would be fantastic!  Thank you!

    -Nic

    The question always involves using the textfield links.  Remove the textfields in all settings inside the buttons and your problems should go away.

  • Failed to perform recovery of factory setting - error 0x8007045D Code / product key error - "ERROR!" We encountered a problem with the request for approval.

    Original title: product key error

    Hi all...

    I have ' tried to download the disc Image of Windows 7 (ISO file), but when I insert my product key, the system cannot check it.
    I use the laptop Sony Vaio VPC EG35EG with preinstalled Windows 7 Home Basic 64 bit inside.
    Now, after that there is error (I cannot yet perform plant pose recovery; always finished with error 0x8007045D Code), I need to install clean my laptop with the USB or DVD Installer key. But then, when I try to download it, my product key (I found it on the sticker at the bottom of the laptop) are not validated by microsoft. It is said:

    "ERROR!" We encountered a problem with the request for approval.

    What should I do now? Y does it can someone help me?
    Thank you.

    Consider the following text:

    How to: What are my options for Windows 7 reinstall media?

    Make sure you scroll down and read the section:

    What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?

    also check:

    https://techingiteasy.WordPress.com/2012/04/13/how-to-activate-Windows-7-OEM-license-using-a-retail-disc/

  • Problem with the creation of variable names

    Hi, I have a problem with the following function:

    private function whichLevelToLoad (): void {}

    If (levelToLoad == "no") {}

    currentLevel = null;

    }

    var thisObj:Object = new Object();

    {if(levelBtnArray!=null)}

    for (var j: int = levelBtnArray.length - 1; j > = 0; j-) {}

    If (levelToLoad == String ("level" + (j + 1))) {}

    thisObj ["level" +(j+1)] = new ["Level" +(j+1)] (); - > The Problem

    thisObj ['level' + (j + 1)] .x = 0;

    thisObj ['level' + (j + 1)] there = 0;

    addChildAt (thisObj ["level" + (j + 1)], 0);

    currentLevel = thisObj ['level' + (j + 1)];

    }

    }

    }

    }

    I am trying to instatiate 75 objects by using a loop. The line should look like this "thisObj.level1 = new Level1(); with the numbers from 1 to 75. Is this possible? How

    can I do it?

    Thank you...

    getDefinitionByName solves this problem.

    Example of

  • problem with the CURSOR and WITH clause

    Hi guys,.

    I have never created a package before. I try to run it, but I get:
    ORA-06550: line 8, column 16:
    PLS-00382: expression is of the wrong type
    ORA-06550: line 8, column 3:
    PL/SQL: Statement ignored

    I know that my problem is in the next section

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)


    Is the above correct?

    When I copy paste the "heart" of the query, it works very well. I really have a problem with the CURSOR and the declaration.

    Here's the code in its entirety. I know that the code is much more then he returned, but ignore this overload that was to do some tests to make sure that I can achieve any query request.

    CREATE OR REPLACE
    PKG_SPF_NATIONALREPORTS PACKAGE BODY IS

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor IN OUT C_RESULTS)
    IS
    v_io_cursor C_RESULTS;

    BEGIN

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)
    SELECT
    -START P_SelectFields
    r.cli_served,
    r.EIER,
    -END P_SelectFields
    r.RC,
    r.Year_ID,
    r.period_id,
    r.agreement_type_ind,
    CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT,
    YEARS.year_desc,
    RC_CODE.rc_code_id,
    RC_CODE.rc_code,
    AHRDA HOLDERS. AHRDA_ID,
    AHRDA HOLDERS. REGION_ID,
    AHRDA HOLDERS. PROVINCE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_DESC_EN,
    ROW_NUMBER() over (partition R.YEAR_ID, R.CONTRACT_Number_Text
    order by
    P.PERIOD_desc
    (/ / DESC NULLS LAST) AS r_num
    RESULT r
    JOIN period p ON r.period_id = p.period_id
    JOIN CONTRACT_NUMBER ON r.contract_number_text = CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT
    JOIN RC_CODE ON contract_number.rc_code_id = rc_code.rc_code_id
    JOIN AHRDA holders ON ahrda.ahrda_id = rc_code.ahrda_id
    JOIN AGREEMENT_TYPE WE AHRDAS. AGREEMENT_TYPE_ID = AGREEMENT_TYPE. AGREEMENT_TYPE_id
    JOIN the YEARS WE r.year_id = YEARS.year_id
    )
    SELECT year_desc
    -START P_SUMFields
    SUM (cli_served) AS sum_cli_served
    The SUM (eier) AS sum_eier
    -END P_SUMFields
    OF got_r_num
    GROUP BY year_desc
    ORDER BY year_desc
    ;

    io_cursor: = v_io_cursor;

    END GET_NATIONAL_TOTAL_RESULTS;

    Agree - all this talk of loops FOR is completely irrelvant.
    A refcursor is usually the exact mechanism to return a result set.

    What is C_RESULTS?

    Just use SYS_REFCURSOR.

    No need for local variable.

    OUT why? Not just walk OUT?

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS
    (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor OUT SYS_REFCURSOR)
    IS
    BEGIN
     OPEN io_cursor FOR ...
    END;
    

Maybe you are looking for

  • How to import bookmarks? Import is not in the file menu.

    Where is the field of import. It is not men file where it should be... Turn on the Version 8 Firefox and OS X 10.7.2

  • Replacing hard drive

    How can I begin again after the replacement of my hard drive. I know how to replace.

  • unknown device of the V570 with win8.1

    I upgraded LENOVO V570 win8.1, every thing looks good except the unknown question mark device in Device Manager. It seems to come from the driver manager power, because in the message center, it is the management of that power does not work with a co

  • Bluetooth connection turns off

    Bluetooth loses the connection when I listen to music on my headphones, it seems to work fine when on a call. I tried to use the headset on my nexus 5 and it works fine but on the bike x it goes off every time, is it some kind of difficulty or adjust

  • How can I rotate my office back to horizontal view?

    my nephew has been watching his film, when he accidentally pressed a button and now my computer desktop is vertical, and I need to go back to horizontal. any help?