Reference application item from page template

Hi friends,
How can refere to application item from page template (i.e. one level tab).
set or get value from application item.
thank you

Alaa,
If the item name is X put &X. in the template. Don't forget to use upper case and provide the trailing period.
set or get value from application item.
That is not a complete sentence, please clarify.
Scott

Similar Messages

  • How to set an Application Item from PL/SQL

    I am attempting to set an Application Item
    After login to my app, I want to retrieve a row from my SETTINGS table and populate some Application Items with the settings information so that I can
    display some of that settings information on every page.
    Just to start, I created one Application Item named F106_YEAR
    I then created a Shared Components Application Process which executes on New Session: After Authentication
    I created this process as an Anynomous PL/SQL block.
    declare
    aucyr varchar(4);
    begin
    select year into auctyr
    from settings;
    :F106_YEAR := aucyr;
    end;
    I've tried a couple of other Syntax tricks attempting to reference the Application Item F106_YEAR from within PL/SQL (like V('F106_YEAR') but nothing seems to be working.
    I'm sure that I am missing something simple. Can someone tell me how to set an Application Item from PL/SQL?
    Thanks in advance.

    I'm still doing something wrong because this is not working for me.
    I've tried both of the following versions as an Application Process set to run on New Session after Authentication:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    :F106_AUCTION_YEAR:=auction_year;
    end;
    and I also tried:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    APEX_UTIL.SET_SESSION_STATE (p_name, p_value);
    end;
    F106_YEAR is a global Item (shared components).
    The select statement works just fine in SQL*PLUS so I know that it is correct.
    If I run the debugger and log into the application, here is the output. Shouldn't I see my Application Process get called if it is set to run on New Session after Validation?
    My Application process is named RETRIEVE_AUCTION_SETTINGS
    0.01: A C C E P T: Request="P101_PASSWORD"
    0.01: Metadata: Fetch application definition and shortcuts
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Fetch session state from database
    0.02: ...Check session 695371898690095 owner
    0.02: ...Check for session expiration:
    0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.02: Session: Fetch session header information
    0.02: ...Metadata: Fetch page attributes for application 106, page 101
    0.03: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P101_USERNAME" - saving same value: "jps"
    0.03: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: Branch point: BEFORE_COMPUTATION
    0.03: Computation point: AFTER_SUBMIT
    0.03: Tabs: Perform Branching for Tab Requests
    0.03: Branch point: BEFORE_VALIDATION
    0.03: Perform validations:
    0.03: Branch point: BEFORE_PROCESSING
    0.03: Processing point: AFTER_SUBMIT
    0.03: ...Process "Set Username Cookie": PLSQL (AFTER_SUBMIT) begin owa_util.mime_header('text/html', FALSE); owa_cookie.send( name=>'LOGIN_USERNAME_COOKIE', value=>lower(:P101_USERNAME)); exception when others then null; end;
    0.04: ...Process "Login": PLSQL (AFTER_SUBMIT) wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID||':1' );
    0.06: ...Process "Clear Page(s) Cache": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 101
    0.06: Nulling cache for application "106" page: 101
    0.00:
    0.00: S H O W: application="106" page="1" workspace="" request="" session="695371898690095"
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Application 106, Authentication: CUSTOM2, Page Template: 2904114531488186
    0.01: ...Session ID 695371898690095 can be used
    0.01: ...Application session: 695371898690095, user=JPS
    0.01: ...Determine if user "JPS" workspace "1040027630222986" can develop application "106" in workspace "1040027630222986"
    0.01: ...Check for session expiration:
    0.01: Session: Fetch session header information
    0.01: ...Metadata: Fetch page attributes for application 106, page 1
    0.01: Fetch session state from database
    0.02: Branch point: BEFORE_HEADER
    0.02: Fetch application meta data
    0.02: Computation point: BEFORE_HEADER
    0.02: Processing point: BEFORE_HEADER
    0.03: Show page template header
    0.03: Computation point: AFTER_HEADER
    0.03: Processing point: AFTER_HEADER     
    0.04: Computation point: BEFORE_BOX_BODY
    0.04: Processing point: BEFORE_BOX_BODY
    0.04: Region: Auction_Title F106_AUCTION_YEAR

  • Set application item from javascript?

    Hi!
    Is it possible to set an APPLICATION ITEM from javascript? If so can some one please point me to the thread, or a FAQ or an example, etc?
    Thanks!
    Dave Venus

    dvenus1,
    Sure. In the script below I check variables and populate based on what I find...
    <script language="JavaScript" type="text/javascript">
    function Populate_fld()
    var formVehicle = document.getElementById('P9_HIDE_VEHICLE').value;
    var formState = document.getElementById('P9_HIDE_STATE').value;
    var formTag = document.getElementById('P9_HIDE_TAG').value;
    var formName = document.getElementById('P9_HIDE_NAME').value;
    document.getElementById("P9_VEHICLE").value = formVehicle;
    document.getElementById("P9_TAG").value = formTag;
    document.getElementById("P9_STATE").value = formState;
    document.getElementById("P9_VISITOR_NAME").value = formName;
    if (formState = " ")
    document.getElementById("P9_STATE").value = "FL";
    </script>
    Keep Smiling,
    Bob R

  • Preference or Page Item in Page Template

    Hi,
    I'm trying to place dynamic header and footer text on my pages. I am trying to include a variable reference in the Body section of my page template. I can reference Static Substitution strings, but I cannot get either preferences or page items to display. How do I get data driven values into the page template? Thanks!

    Bill,
    Sorry for the misdirection. I made the popular error of thinking that I had knowledge which I did not, in fact, possess.
    I adjusted your page so that it might work the way you intend. It turns out that it is not possible to reference preferences using &ITEM_NAME. notation, only page/application items and static substitution strings. Setting and getting named preferences must be done with the API as illustrated in the new page process:  htmldb_util.set_preference(p_preference => 'IIR_CLASS',p_value => 'TESTING99');
      :IIR_CLASS := htmldb_util.get_preference(p_preference => 'IIR_CLASS');... although items can be sourced from named preferences and those items themselves can have "User" persistence just like preferences.
    Scott

  • Read application item from LDAP

    We are using OpenLDAP authorization. The configuration data resides in the APEX authorization definition.
    Now my question: should it be feasible to read further attributes from the user logging in, without the need to redundantly define host, base dn etc. on page level?
    I imagine a LDAP authorization that gives me back more than only the APP_USER.
    Comments welcome.
    Tom

    The user and password are still available in the post-authentication part of the authentication. You could fetch more values here into application items without having to prompt the user for credentials again. If you do need to connect at a later point then you're out of luck really, since the password is blanked out after the authentication.
    I implemented a solution before where i connected to the ldap directory in post-authentication to retrieve the user's groups: {message:id=10197833}
    I'm also not sure since i haven't tried yet, but you could probably use the apex_ldap package to reduce the amount of code

  • How to Obtain the Value of a ***Global*** Application Item from JS

    If we declare an Application Item, i.e. NOT a page level item, how do we obtain the value of that Item in a JavaScript Dynamic Action on a page?
    For example, we declare a "global variable" as an Application Item named DEFAULT_AJAX_SEPERATOR and set its value with an Application Computation "On New Instance" At some later point, on a page in the application, we'd like to obtain the value of DEFAULT_AJAX_SEPERATOR via JavaScript.
    The page* level item syntax...
    $v( 'DEFAULT_AJAX_SEPERATOR' );...does not work. I do understand why this is as $v can only access items on the page. However, APEX is clearly able to obtain such global values since, for example, they are available in PL/SQL blocks. Also, I know it's on the session object because I can see it when viewing the session.
    So...what's the secret sauce for obtaining that value?
    Thanks,
    -Joe

    Hello Joe,
    >> on a page in the application, we'd like to obtain the value of DEFAULT_AJAX_SEPERATOR via JavaScript … So...what's the secret sauce for obtaining that value?
    The secret is to define a global JavaScript variable and set it with the value of the item, using Substitution String notation. For example:
    var default_ajax_separator = &DEFAULT_AJAX_SEPERATOR.This code should be placed in the Function and Global Variable Declaration field, under the JavaScript section of the Edit Page. As we are talking about a global JavaScript variable, it will be available to every other JavaScript code on the page.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Navigation item in page template makes postback reload current page first

    Hi,
    in Jdeveloper 11g we have a page template for our app, which includes navigation items.
    Looking at server log it seems that when a navigationItem is clicked, the current page loads first, is processed and only then redirects to the target page. The problem of course is performance impact, I guess this takes a page to load almost twice as slow as it needs to.
    Is there any way to change the behavior so that navigationItem immediately redirects to the target page?
    Regards
    Jernej

    Hi,
    The Lifecycle will always process the current page, that's part of the JSF specification. I suggest you do some reading on JSF http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html. There's two ways to reduce the amount of nodes evaluated by the Lifecycle implementation though, make your navigationItem partialSubmit="true" and/or immediate="true".
    Regards,
    ~ Simon

  • How do you navigate to:Library/Application Support/iWork/Pages/Templates/My Templates/

    The quote above is from the 09 User's guide.  I want to delete a template from My Templates but I can not find it using Finder.

  • Masking items from page background Right & Left

    Is it possible to mask the browser background right and left of the live page so that items animating into frame do not show outside of the page area? If not, please consider adding the feature. It's distracting to see them outside the frame!
    Thanks,
    D

    Hi Aish, thanks for the followup question. I'm attaching some marked-up screen shots that show what I'm talking about. I previewed my project in Safari with the browser set wider than the active web page to show the plain background that I set up in gray. If Muse had a masking feature, we could make the animating page elements slide onto the page from the live page edge, rather than from the browser edge across the background and onto the page.
    Cheers,
    D

  • Moving items from a template file to active document

    Hello Everyone,
    What I am currently doing is I will leave a template file open and I will have to go to that file really quick and copy what I have selected in that file, go back to the file I am currently working on, then I will use an action that will paste it in the correct place. I was wondering if a script could copy what I have selected in my template file and paste it into my active file so I won't even have to leave my active file. Here is what I have so far.
    var template = app.documents.getByName ("sig.ai");
    var tempSelected = template.selection;
    var docRef = app.activeDocument;
    if ( tempSelected.length > 0 ) {
    for ( i = 0; i < tempSelected.length; i++ ) {
    newItem = tempSelected[i].duplicate( docRef,
    ElementPlacement.PLACEATEND );
    else {
    alert( "Please select one or more art objects in your temp file" );
    It is not working, I just get the alert message, unless my template is my active file too, which does me no good. Not sure if this is possible to do I have trouble finding scripts that involve files other than the active file so I am not sure what all is capable. Thanks for taking the time to look at this for me I really appreciate it. I tried messing around with placing files but it is not editable enough for me to use.

    Hi djbgraphicdesign,
    please try this:
    if (documents.length == 2) {
        // your template should be the active document and one item should be selected (as minimum)
        // a second document should be opened in the "background"
        var template = app.activeDocument;
        var tempSelected = template.selection;
        var anotherDoc = app.documents[1];
        if ( tempSelected.length > 0 ) {
            for ( i = 0; i < tempSelected.length; i++ ) {
                newItem = tempSelected[i].duplicate( anotherDoc, ElementPlacement.PLACEATEND );
            alert (i + " items duplicated");
            //app.activeDocument = anotherDoc;
            } else {
                alert( "Please select one or more art objects in your temp file" );
    Have fun

  • Reference Application TabNavigator from a Module

    I have a LinkButton in my module and when it is clicked I
    would like to change the selected tab of the TabNavigator that
    resides in my Application. When the LinkButton was right in my
    Application I simply added
    "click='tabNavName.selectedChild=tabName;'". I feel as though I
    need to prepend something to my click event to reference the
    application but I don't know what I need to add.

    you can always use Application.application prepend (it works
    like a charm , "little bit of "hackorama" way but if you are not
    doing reusable component that is fine).

  • Assign Application item from PL/SQL package-not possible? Right?

    I have to be sure about tittle statement...
    If is possible please some lead where to look for that.
    THX!

    If I have in "Aplication items" item, in plsql is there any way to change it's value.
    FSP_SET_PREFERENCE is making some things for named user (AFAIK)...and I want to change some vars on session based ... but not in WEB but in PLSQL enviroment .
    Hope now is clear...
    THX for replies
    Message was edited by:
    Funky

  • How to use application item in the page template

    How to use application item in the page template.
    Thanks,
    rajendra

    Hi,
    You can refer application item value in template like &MY_ITEM. (note period at end)
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_sub.htm
    Regards,
    Jari

  • Deleting templates from Pages.

    I want to delete self created templates from Pages.
    I go to Application Support/iWorks'09 but all that is there are 'content' and 'frameworks' folders.  
    I am running on Lion 10.7.2. 
    Please can someone assist me. 
    Thanks

    For some reason the Apple has hidden the Library you need to go to.
    The way to the user's Library is hidden in Lion but it is easy to open. In Finder, hold down the Option key while clicking on the Go menu & your users Library will appear about halfway down the list.
    Pages stores those you created & saved as templates in (your account) > Library > Application Support > iWork > Pages > Templates > My Templates.

  • How to delete a template from pages

    Hi
    Does anyone know how to delete a template fom pages?

    Pages stores those you created & saved as templates in (your account) > Library > Application Support > iWork > Pages > Templates > My Templates. The user's Library is hidden in Lion & Mountain Lion but it is easy to open. In Finder, hold down the Option key while clicking on the Go menu & your user Library will appear about halfway down the list. Or you can choose Go to Folder from Go menu in Finder & paste this line in the box:
    ~/Library/Application Support/iWork/Numbers/Templates/My Templates/

Maybe you are looking for