Page 0 item vs. Application Item

Hello All,
Is there any advantage of using an application item over page 0 item .
My requirement is to store a value in a global item so that I can access it across all pages in the application . The value of this item is computed from an SQL query.
Now my concern with creating an application item is if at a later stage I have to change the query that computes the value, and then if i have to patch that change to production , I will have to send the entire application(2 hrs to import) since application items are shared component . But if I create an item in page 0 , I need to only patch the page .
1) Is there any way I can patch application items without having to send the whole application ?
2) Is it okay to use page 0 items (hidden) instead of application items ?
Thanks,
Dippy

I've used page 0 items for "globals" with no issues. A few things I like about them:
1) They're visible in the standard tree view, without having to go to the shared components section. Much easier to remember that they're there. (This is the same reason I like using dynamic actions for page-level javascript, rather than tucking it into the page attributes.)
2) I can use the standard page item source processes. Application items are just harder to deal with--you either have to use an after-login process to set the value, or create your own application/page process to do so. Which is harder to track/remember.
3) Inherent "global" naming convention. When I'm creating a page item, APEX helps me remember to use the PX_* notation; there's nothing like that for application items. Which means I can (and probably will) tend to get sloppy--not to mention any other programmers I have to work with. Once you understand page items and page 0, however, it's trivial to remember that P0_* means global. (Incidentally, is there a recommended standard convention for naming application items? APP_* would be obvious, but there's risk of colliding with APEX there...A_*? G_*? GLOBAL_*?)
And as has been noted, they're available to javascript, though I haven't needed that particular feature (yet).
-David

Similar Messages

  • The App Store indicates that 5 items need to be updated. When I go to the Update page, only a blank page appears and no application logo appears for updating. Would appreciate receiving a solution for this.

    The App Store indicates that 5 items need to be updated. When I go to the Update page, only a blank page appears and no application logo appears for updating. Would appreciate receiving a solution for this.
    Sridhar

    Okay - let's cut to the chase...
    If the Menu Bar (File, Edit... Help) shown in my screenshot below is not visible, use CTRL+B to display it. Then click on Help/Check for Updates. If one is available, you will be able to select it at this time.
    Note the item at the bottom of the list; About iTunes. Selecting that will show you which version of iTunes you are using.
    An alternative method to display the Menu Bar is click on the box in the top left of your iTunes window...

  • Quotes in a page level item not showing up as " when used in a hyper link

    Hi all,
    In my app, I need to hyper link to a crystal report application with parameters from my page. I have a page level item that puts my parameter in quotes, but when the item is utilized in the hyperlink, the quotes come across as & q u o t ; (spaces were put in to the post to avoid html conversion) how can my string be used to appear the way I want?

    I don't use Crystal Reports, but, in general, you should encode your URL. When you create your link, run the URL through utl_url.escape() first. Put it in your select statement.
    E.G.,
    select utl_url.escape('http://oracle.com/foo"bar') from dual;
    will escape/encode the quotation mark and give you:
    http://oracle.com/foo%22bar
    This translates the " into a URL-safe escape code, %22, that should (I hope) be understood properly by your Crystal Reports server.
    Good luck.

  • Using Page Text Item in an Authorization Scheme

    Hello,
    I will be having a text item is every page say, Px_RESP_ID (hidden and its value set in an earlier page), and want to use its value in an authorization scheme to verify if the user has an access to the page.
    I'm using the following SQL in the authorization scheme -
    Apex Version: Apex 3.2
    Scheme Type: Exists SQL Query
    SQL:
    SELECT 1
    FROM zs_users zu
    , zs_responsibilities zr
    , zs_user_resp_groups zur
    WHERE
    zu.user_name = :APP_USER
    AND zr.resp_id = '&P'||:APP_PAGE_ID||'_RESP_ID.'
    AND zu.user_id = zur.user_id
    AND zr.resp_id = zur.resp_id
    For some reason this approach is not working. Any ideas to help me move forward will be greatly appreciated.
    Regards,
    Seshu

    AFAIK an application item, or maybe a page 0 item, is the only way to do this (as those items effectively exist across all pages of an application). Unfortunately since authorization schemes are application-level, you can't really effectively reference page items at runtime since you aren't necessarily on that page.
    The other option is an ugly one. Instead of creating one auth scheme (e.g.: "user_has_whatever_authority"), create one for every page (e.g.: "user_has_whatever_authority_1", "user_has_whatever_authority_2", etc.) and attach each auth scheme to each page by matching up the number in the name with the page. But this is a maintenance nightmare and terrible style IMHO, but it'll work. Your colleagues will hate you for it when you're gone though.

  • Page 0 items

    Hi All.
    I have a number of page 0 items that we use as the labels for buttons and other items. I populate these items in an application process that runs for each page by means of a pl/sql procedure that reads from a table and uses apex_util.set_session_state to put a value in the item. Looking at the debug timings for page load we suspect that this process is taking a unacceptably long tiime for each page.
    Does anyone know of a way that I can cache these values so I only have to set them up once.
    Andy Boyd(Northgate).

    Andy,
    I'm still curious about how you're using page 0 items for labels of items and buttons throughout the system. Are these hidden items on page 0? Are these items appearing on every page?
    That aside, you could switch from an page level process to an application level process and set the firing point as "On New Session: After Authentication". This would ensure that the code only fires once. Note that you'll have to logout of the application and back in before it fires.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Assign from Page 0 items

    I have a page 0 item. Value gets assigned there when the user selects a value from a LOV in the same page. User will now populate the values in the rest of the page (say page 19, where page 0 is now part of). Now when user will click Create button to save the information. The page 0 item will now get assigned to a Page 19 item. I used the following stmt in a process which executes on submit
    :P19_SRC_ID := :P0_SRC_ID;
    But nothing is getting assigned .
    Any idea?
    Thanks
    Deb

    Why don't you describe everything you have on the page in question (P19) and everything you have on P0. I have a feeling we are missing something, but without a more comprehensive view of what you are trying to do and the contents of the page, it's more a guessing game than anything. Alternatively, you can post a sample application for us to look at and attempt to assist you with.

  • Page.TextFrames.Item problem

    I upgraded Indesign from CS1 to CS5.
    I reimported the type library in Delphi, and I did some minor changes in my delphi code (extra parameters, ...).
    When I try to find a text frame with
         IdTF := TextFrame(IdPage.TextFrames.Item['Versie']);
    then I get the error 'The requested member of the collection does not exist'.
    This code worked with Indesign CS1.
    When I check the label of my template with
             idTF := Indesign_TLB.TextFrame(IdPage.TextFrames.Item[1]);
             ShowMessage(Format('%d "%s"',[iIndex,idTF.Label_]));
    I see the label is correct ('Versie').
    Who can help?
    PS when importing then CS1 template file, all script labels were gone in the indt-file  and I had to re-edit them all.

    Thanks!
    If you want to find back a textframe in a textframes list (or a rectangle in a rectangles list), the parameter changed:
    f.e. Application.Page.TextFrames.Item['reference']
    - in CS1 'reference' is the script label (can be edited in indesign via window -> utilities -> script label)
    - in CS5 'reference' is the name of the item (can be edited in indesign via window -> Layers)
    That might also be the reason why CS5 removes the script labels while converting a document from CS1 to CS5.

  • Limit on Page-By-Item in Disco Viewer

    Hi There.
    Is there a limit on page by items on Disco Viewer.
    It works fine but as soon as i add more than one page by item no matter the result i select it defaults to <All>
    Regards

    Hi,
    Do you mean that it doesn't filter the data according to the value you selected ?
    I am not aware of a limitation on the page items and for sure you can have more than one.
    Personally I have seen workbooks running under viewer with more than 5 page items.
    What version of viewer do you use? maybe you need to patch it up...

  • Customer Invoicing Printing First page line items blank

    Hi Everybody,
    Customer Invoicing Printing First page line items blank and it is printing it from the second page.  Please help me on this.
    Regards,
    Md Ziauddin.

    item No    Material No   Descripition  Putaway Bin   SUT  Vendor Batch  LE QTY  COA   Base UOM
    this how my line item should like, i am able to print only single line item for each item no.
    if i have 5 pallets for single line item, i want the same line item to be printed 5 times and this is what i am looking at

  • Page detail items

    Is there a way to set page detail items to show a particular value as default?
    For example, page detail item 'Month' contains 'Jan 05', 'Feb 05' and 'Mar 05'.
    Can Discoverer report be setup so that default value for 'Month' is the latest month available?
    Thanks!

    I am also experiencing problems in Viewer for a worksheet with over 15 page items, some of which has over 500 values for selection.
    1) For each page item value selection, the 'Execution Query Process' page pops up. It drove my users crazy after four pop-ups. Is there anyway to for discoverer to complete all page item selections first, then refresh query to show the 'Execution query process' page just once; or better yet, is there a way to suppress the query progress pop-ups all together?
    2) Sometimes we select a page item value, other times we select '<All>' to get all values; similar to like '%;. For page items with over 400 values, the Viewer display about 40 followed by ...more. We have to click more for more ...more. At times, we go through 12 search pages to reach the desired page item value or the value <All>.
    Is there a way to put <All> on the top of the list as default, and permit a search pattern for page item value, which changes in each run?
    Thanks in advance.

  • WAD:  anyway to bind each tab of the tab page web item to different query?

    WAD:  anyway to bind each tab of the tab page web item to different query?
    We check the properties of the tab page web item, but can't find we can bind the tab to some query.
    Any idea?
    Thanks!

    will try to write as much detail steps as i can...
    drag tab page web item in wad window
    go to its properties
    for e.g. u currently have only 1 tab page
    than name tab page1 as p1
    hit button with ..
    this will let u add new heading to tab page 2
    likewise save heading of 4 tab pages in properties of tab pages
    now choose container web item
    drag it in tab pages window
    assign seperate analysis item in each container item
    assign seperate queries in each analysis web item.
    assign container1 to tab page1
    assign container2 to tab page2
    assign container3 to tab page3
    assign container4 to tab page4
    and their heading viceverssa
    save it execute it
    now u will have 4 queries in 4 container item and uc an see that in different tab pages.

  • Page Function Item dispalys a text not a URL ?

    I tried to create a custom page that contains http procedure but when i tried to add this page procedure as page function item it renders as a normal not as a url to the target web page ? How can i display Page Function Item as a URL ?

    You'll have to be more specific about what you are doing.
    If you have checked "Display Procedure Results With Page" then the output of your procedure will be displayed when the page is rendered. Otherwise, a link to your procedure will be displayed and the procedure will execute when the link is clicked.
    Regards,
    Jerry
    PortalPM

  • Pages loose item persistence in frames

    I have these pages that branch to each other. This works fine, except when the HTMLDB pages are part of an intranet app and actually rendered inside a frame. When this happens, then my page cache is cleared even though I do not explicitly clear it with the URL argument. They transition to the correct pages within the frame, just the items are now cleared.

    The pages are public. I am using this code to process an insert and then return to the calling previous page:
    declare
    l_items varchar2(4000);
    l_values varchar2(4000);
    begin
    if :REQUEST = 'CREATE_NEW' then
    insert into hr.dwh_discussion(parent_id,subject,topic_text,author,category)
    values (:P26_PARENT_ID,:P26_SUBJECT,:P26_TEXT,:P26_AUTHOR,:P26_CAT);
    htmldb_application.g_page_text_generated := true;
    case :P26_RETURN_PAGE
    when '22' then
    owa_util.redirect_url('f?p=110:22::::26');
    when '23' then
    l_items := 'P23_ID,P23_ID_STATIC,P23_CONTENT_ID';
    l_values := :P26_ID_STATIC||','||:P26_ID_STATIC||','||:P26_PARENT_ID;
    owa_util.redirect_url('f?p=110:23::::26:'||l_items||':'||l_values);
    else
    null;
    end case;
    end if;
    end;
    If I leave out the items/values list from the URL, then page 23 will clear all its items when these pages are in a frame. If I leave off the items/values from the URL but the pages are on top, not in a frame, then the page 23 items are not cleared.
    I transition to page 26 from page 23 with these items/values in the URL:
    items - P26_SUBJECT,P26_PARENT_ID,P26_RETURN_PAGE,P26_ID_STATIC
    values - re - &P23_SUBJECT.,&P23_CONTENT_ID.,23,&P23_ID_STATIC.
    I am using a custom LDAP authentication scheme that makes a call to a PL/SQL function:
    return hr.util_ldap.connectAuthenticate;
    function connectAuthenticate(p_username in varchar2,p_password in varchar2)
    return boolean
    as
    l_retval PLS_INTEGER := -1;
    l_ssl PLS_INTEGER := -1;
    l_session DBMS_LDAP.session;
    l_attrs DBMS_LDAP.string_collection;
    begin
    DBMS_LDAP.use_exception := false;
    begin
    --connect to LDAP and authenticate
    l_session := DBMS_LDAP.init(hostname => g_host,
    portnum => g_port);
    exception
    when others then
    null;
    end;
    l_retval := DBMS_LDAP.simple_bind_s(ld => l_session,
    dn => g_pre||p_username||','||g_ldap_user_base,
    passwd => p_password);
    if l_retval = 0 then
    -- Disconnect from the LDAP server.
    l_retval := DBMS_LDAP.unbind_s(ld => l_session);
    return true;
    else
    return false;
    end if;
    exception
    when others then
    return false;
    end connectAuthenticate;

  • Tab Pages Web item

    Dear Experts,
    I have created a web template which have tab page item and also two web template web item.
    when i display it the first tab is showing the attached web template item fine. but when i go to second tab page still its showing the first web template only instead of second.
    what could be the reason and how to rectify it.
    thanks and regards
    Neel

    Hi,
    Create 2 Separted Web Templates for Example. Web Temp 1 (having report XX1) and Web temp 2 (having report XX2).
    After that Create New Web Template FINAL --> in Advance Tab --> Drag and Drop Tab Pages  Web Item. After that Tab Pages Web Item properties --> Table Pannel is there in that create new Tab Pannel --> it will open new window in that  click on Actiavtion _Action  it shows like Command : Set Web Template --> Click on that and give me your Web Template Name Web Temp 1 (As above Example) Under that Open New Window option is Check it as ON.
    For Second Web Temp 2 --> Tab Pages Web Item properties --> Table Pannel is there in that create new Tab Pannel --> it will open new window in that  click on Actiavtion _Action  it shows like Command : Set Web Template --> Click on that and give me your Web Template Name Web Temp 2 (As above Example) Under that Open New Window option is Check it as ON.
    I hope it will help you.
    Thanks,
    Bhima

  • Using page 1 items in page 3

    hi, i can't use page 1 items such as P1_USERNAME in page 3 through i write " &P1_USERNAME. " in html region. Is there any way to use page 1 variable or form area in page 3? thanks.

    actually, i want to do a login form. But my login form not Apex's default login form. I have an excel document there are employees, i will convert this excel to database table to use in database. Then i want to a login form.
    Login form has 2 textfield, username and password. If user press submit button after filling the textfields, i redirect this login page to loginhandle page, this page check password, if it is true, login handle page redirects user to page 4, if it is wrong login handle page redirects user to page5.
    So, i have a process in loginhandle page to perform redirection. There is conditionally branch. I've written in conditional expression a pl sql block. This block call a function, that fucntion return true or false. That function get username and password as parameters. If i do this
    declare
    begin
    boola := check_pass(:P1_USERNAME,'1234');
    return boola;
    end;
    the P1_USERNAME value is couldn't understand and the function doesnt work. If i do this:
    declare
    begin
    boola := check_pass('FUAT','1234');
    return boola;
    end;
    everything work perfect. As i mentioned earlier, the above function is written in loginhandle page.
    Why do not i get the P1_USERNAME?
    Thanks

Maybe you are looking for