Forum Stats

  • 3,855,352 Users
  • 2,264,499 Discussions
  • 7,905,976 Comments

Discussions

Application Item values in Session State in APEX 4.2

Johnny98
Johnny98 Member Posts: 150
edited Mar 18, 2013 3:55PM in APEX Discussions
In 4.2, I am not able to see the session state values of my Application Items if I click "Session" at the bottom of a page. We just migrated from 4.1 and we login to a separate app than where we land upon login. I thought the "Global" scope of the Application Item would allow this to track across apps, but its not working. Is this a known issue?
«1

Answers

  • Howard (... in Training)
    Howard (... in Training) Member Posts: 905
    edited Feb 27, 2013 2:23PM
    Someone correct me here if I stray but Application items are global only to the pages on the application in which they are created. Even when an application, say with some menu pages, transfers from one application -- say with a top-level menu on a page, to another application -- say with a second level menu, only the application whose page is active, will have it's application items (or page items for that matter) in the active session state.

    Does this help? What were you expecting to happen?

    Kind regards,
    Howard
  • Johnny98
    Johnny98 Member Posts: 150
    I login to App 1, but land in App 2. My Application Item lives in App 2. Upon login of App 1, an authentication scheme calls a back end function that assigns variables to the Application Item in App 2.

    In APEX 4.1 I can see the session state of my Application Items by clicking on the Session button. I cannot see the session state of Application Items after moving everything to APEX 4.2.
  • In that case, can you change the title of this thread to "BUG 4.2?: ..."? Then one of the moderators will get around to checking it out. If it's possible to illustrate with a simple example on apex.oracle.com, please do that as well.

    Regards,
    Howard
  • fac586
    fac586 Senior Technical Architect Member Posts: 21,237 Red Diamond
    Howard (... in Training) wrote:
    Someone correct me here if I stray
    Happy to do so.
    but Application items are global only to the pages on the application in which they are created. Even when an application, say with some menu pages, transfers from one application -- say with a top-level menu on a page, to another application -- say with a second level menu, only the application whose page is active, will have it's application items (or page items for that matter) in the active session state.
    From APEX 4.2 application items with global scope are session global, with values available to all applications sharing the session.
  • Then is this unchanged from 4.1? Or is some modification to the code required in 4.2?

    Howard
  • fac586
    fac586 Senior Technical Architect Member Posts: 21,237 Red Diamond
    Johnny98 wrote:
    In 4.2, I am not able to see the session state values of my Application Items if I click "Session" at the bottom of a page. We just migrated from 4.1 and we login to a separate app than where we land upon login. I thought the "Global" scope of the Application Item would allow this to track across apps, but its not working. Is this a known issue?
    When you say +"Global" scope of the Application Item+ do you mean the true global scope introduced in APEX 4.2, or are you using the term colloquially, as in "not a page item"?
    Johnny98 wrote:
    I login to App 1, but land in App 2. My Application Item lives in App 2. Upon login of App 1, an authentication scheme calls a back end function that assigns variables to the Application Item in App 2.
    What back end function? How does this function assign values to application items in App 2?
    In APEX 4.1 I can see the session state of my Application Items by clicking on the Session button. I cannot see the session state of Application Items after moving everything to APEX 4.2.
    Have you selected Application Items from the View select list on the session tab and clicked the Set button?
  • Johnny98
    Johnny98 Member Posts: 150
    edited Feb 27, 2013 2:50PM
    Global scope doesn't work...I think thats where the bug lies. Application scope doesn't work either. The only good news is that the Application Item does get set...its just not viewable from the Session window, which is frustrating.

    Edited by: Johnny98 on Feb 27, 2013 12:50 PM
  • fac586
    fac586 Senior Technical Architect Member Posts: 21,237 Red Diamond
    edited Feb 27, 2013 2:57PM
    Howard (... in Training) wrote:
    Then is this unchanged from 4.1?
    This is a new feature in APEX 4.2, as described (unsurprisingly) in the New Features section under Other New Features > Share Session State across Applications.
    Or is some modification to the code required in 4.2?
    The Scope selector with values "Application" or "Global" is added to the Application Item definition page in APEX 4.2.

    The value of application items with "Global" scope can be accessed using standard session state references in any application sharing the session.
  • Johnny98
    Johnny98 Member Posts: 150
    fac586 wrote:
    Johnny98 wrote:
    In 4.2, I am not able to see the session state values of my Application Items if I click "Session" at the bottom of a page. We just migrated from 4.1 and we login to a separate app than where we land upon login. I thought the "Global" scope of the Application Item would allow this to track across apps, but its not working. Is this a known issue?
    When you say +"Global" scope of the Application Item+ do you mean the true global scope introduced in APEX 4.2, or are you using the term colloquially, as in "not a page item"?
    The new global scope introduced in 4.2
    >
    Johnny98 wrote:
    I login to App 1, but land in App 2. My Application Item lives in App 2. Upon login of App 1, an authentication scheme calls a back end function that assigns variables to the Application Item in App 2.
    What back end function? How does this function assign values to application items in App 2?
    APEX_UTIL.SET_SESSION_STATE('APP_ROLE', rec.user_type);
    >
    In APEX 4.1 I can see the session state of my Application Items by clicking on the Session button. I cannot see the session state of Application Items after moving everything to APEX 4.2.
    Have you selected Application Items from the View select list on the session tab and clicked the Set button?
    Yes, thats what started this thread
  • Jeff E
    Jeff E Member Posts: 723 Bronze Trophy
    I noticed the same thing and added it to the APEX feature request page: https://apex.oracle.com/pls/apex/f?p=55447:1 - search for feature AEMY

    This is making it difficult to troubleshoot/debug pages that are using values that are stored in global application items. (Application Items where the Scope is set to "Global")
This discussion has been closed.