Aplication Vs. Page level items for application process

Hi,
I have many application processes in my applications, many of them take parameters.
Right now I am passing parameters using page level temporary items. This is causing each page to have many items that are only used for calling the application process.
Is it better to use application level items for this purpose?
any pros and cons for each of these?
~Ketan

Arie,
Are you saying that the condition only apply to rendering the item, but the APEX engine will still consider such an item a valid “internal” variable?
Yes. The absence of a condition on a page item or a condition that evaluates to true simply allows it to be rendered on the page. The existence of the item in the page definition allows it to hold session state.
We're planning to introduce a non-displaying page item type just for this purpose, sort of a scratchpad variable with no display properties, like an applicaition item but defined on a page.
Scott

Similar Messages

  • Populating local page items with Application Process onload

    I called a page passing a parameter to that. On loading of that page, I executed an application process that will fetch some data from table based on the on the input parameter to that page. The fetched data should now get displayed on the local page.
    The above is my requirement. I designed accordingly. The application process could able to fetch the data. But it is not displaying in the local page item
    Here is the content of the application process
    SELECT vun_catalog_type
    INTO :p46_catalog_type
    FROM eeb_unit_reels unit_reels
    , eeb_valid_units units
    WHERE unit_reels.ure_vun_id = units.vun_id
    AND unit_reels.ure_id = :p46_ure_id;
    Scratching my head !!!!!!!!!!!!
    Thanks
    Deb

    Deb,
    This might work. Establish a Page Process is of Type PL/SQL Anonymous Block.
    Process Point = On Load - Before Header
    Run Process = Once Per Page Visit(default)
    Source/Process
    DECLARE
       c_catalog_type   VARCHAR2( 10 );
    BEGIN
       SELECT vun_catalog_type
       INTO   c_catalog_type
       FROM   eeb_unit_reels unit_reels, eeb_valid_units units
       WHERE  unit_reels.ure_vun_id = units.vun_id
              AND unit_reels.ure_id = :p46_ure_id;
       apex_util.set_session_state( 'P46_CATALOG_TYPE', c_catalog_type );
    END;Jeff

  • 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.

  • Disable input on page load depending on page level item

    Hi All,
    I am trying to set the disabled property of a HTML input button when an APEX page is loaded. This can be achieved easily by using getElementById and setting the *"disabled"* property in the onLoad event of the body.
    However, I need to keep the state of the button as disabled if the page is refreshed by the user or through a submit. I've stored this state in a page item, however using +$x(PAGE_ITEM_NAME)+ in the onLoad body event does not return me the value stored in the page item. Calling the same code using an onClick of a dummy button returns me the value.
    1. What is the appropriate way of getting the value of page_item during a page load?
    2. If doing it on a page load is not feasible, is there a way of setting the state of a html input button to disabled using a page process for e.g?
    Thanks heaps,
    Raihaan

    Hi Raihaan,
    Let's do this a little bit different, as this approach gets you into trouble.
    Create an application process called "GETLOCK" (Shared Components > Application Processes > Create), make sure the "point" is set to "onDemand". Paste in the following source:
    DECLARE
      result NUMBER;
    BEGIN
      FOR c IN (select count(flag) lock_status from c_locking where rownum = 1) LOOP
        result := c.lock_status;
      END LOOP;
      HTP.P(result);
    END;Next go back to your page, and go to the page definition, paste the following code in the HTML Header:
    <script type="text/javascript">
    function checkButtons(){
      ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=GETLOCK', 0);
      ajaxResponse = ajaxRequest.get();
      if (ajaxResponse == 1){
        $x('Button_1').disabled = true;
        $x('Button_2').disabled = false;
      }else{
        $x('Button_2').disabled = true;
        $x('Button_1').disabled = false;
    </script>Change the Button_1 and Button_2 to the button names accordingly (make sure it is the "id" attribute).
    Next paste the following javascript in the Page "Footer Text":
    <script type="text/javascript">
      disableButtons();
    </script>What you just did, is create an Application Process, that is called upon by an AJAX call in the javascript header, that is fired by the javascript in the page footer.
    I think you allready have your DML taken care of, with the submit of your buttons. Now every times the page loads, it checks which button to disable.
    Hope it helps,
    Greetings,
    Rutger

  • How to create lower-level item for delivery with TO confirmation.

    Hi Gurus,
    I am writing batch to the delivery item after confirming the Transfer Order. According to the TO quantity, SAP splits the items and makes a "Lower-Level" item.
    SAP does that splitting if the TO quantity is lower that the delivery item quantity.
    What i want is that, i need SAP to create a lower-level item even if the TO corresponds the delivery quantity. 
    Is there a customizing for that?

    That is a standard behavior where the line split occurs in the delivery when the delivery quantity is not equal to picked quantity. Since, the header line indicates the remainder of the quantity in case of short pick. This behavior also occurs when you are writing multiple batches despite the delivery quantity equals to the picking quantity.
    Essentially, you'd see a single line when there a full pick and a single batch. If you still want to get this split then you can pick the batch in the delivery via 'batch split' (so that the line item is created) and then create a TO.

  • What is the best output page-level help for a thick/fat client software app

    I am looking to do some reorganizing of some help projects here at my new employer.  For the past 10 years, I have only been dealing with web-based apps so all my help has been web help... sometimes page-level, sometimes not.  However, I will need to now convert and/or create new help for a software app that is thick-client style.  I need to know what the optimum output format would be to work best for page-level, thick-client, online help... HELP!
    BTW.. I am currently using RH10 for Windows 7.
    Thanks,
    kb

    The best format depends on your client's situation. Do all client pc's have internet access and can you get a server to host the help? If so, I would go for WebHel/HTML5. That's the easiest to maintain and the client won't have to hassle with installing help.
    If you client doesn't have internet access or you don't have a server, a CHM is quite safe. It works well even though it is an old technology. But keep in mind that if the CHM is located on a network drive, it won't work unless the client is willing to change some security settings.
    Kind regards,
    Willam

  • High-level design for business process scenario

    Hi all, I have a business process scenario for which CRM and ECC has to be used. The scenario is like this:
    There are 2 subsidiaries of a company - A and B, which are into trading of materials.
    Between A and customer there is sales agreement. Between B and vendor there is purchase agreement.
    Whenever customer requires materials, it will send request to A. So, A creates a sales order. B in turn sends a request to vendor for which a purchase order is created. The vendor ships the goods directly to customer. The vendor bills B for the purchase order. B adds some margin and then it goes for inter-company settlement with A. A bills the customer for the materials. In this entire process, both A and B earns profit through margins.
    It has to be noted that CRM has to be used as contact point with customer.
    Now I have the following questions:
    1. How would the high-level business design be like?
    2. How would be the document flow?
    3. How can inter-company settlement and billing be done?
    All constructive comments and feedback will be rewarded.

    Hi Animesh,
    The thumb rule to CRM process designing is stick to customer process...
    Thus u jst hav to stick to process design of company A and its interaction with Customer.
    We are not concerned with how the material will be purchansed,but we are concerned with how we will be delivering it to end customer.
    Thus, once customer place an order to company A, our process would suggest a sales order for the customer with one of the partner function "Vendor" as B with the required material. Now later process in R/3 would convert this sales order with customer as soldtoparty to purchase order with vendor as B and one of the secondary partner soldto party as our original customer.
    And billing would happen the way it is... ie. based on sales order.. thus u will have some inflow.. again u will be raising a purchase requisition to company B thus that would be your outflow..
    That was a really good scenario to think about.
    Best Regards,
    Pratik Patel
    <b>
    Reward with Points!</b>

  • Unable to View low level items for Phantom Assembly - Order created in APO

    Hi All,
    I am unable to view the sub items when I create planned orders in APO and production orders in ECC. But when the order for the same material is created in ECC, I can see all the sub items. I see that this issue is only for Phantom Assemblies.
    And I cannot say that all the items in the Phantom do not appear, actually some of them do appear in BOM explosion.
    For example:
    Pld Ord is created for A in APO
    Prd Ord for A is created in ECC
    A has B, C and F as requirements
    and  B is phantom
    B has D and F as requirements
    Then my BOM explosion shows
    ..1 B
    ..2 D
    ..1 C
    ..2 D
    ..2 E
    ..1 F (This only gives the quantity required to make A)
    But it should also list how much of F (..2 F) is required to make B.
    Where as it comes up in ECC.
    Do I need to change the material settings for Phantom or is it just the UOM that is creating an issue?

    Hi All,
    I am unable to view the sub items when I create planned orders in APO and production orders in ECC. But when the order for the same material is created in ECC, I can see all the sub items. I see that this issue is only for Phantom Assemblies.
    And I cannot say that all the items in the Phantom do not appear, actually some of them do appear in BOM explosion.
    For example:
    Pld Ord is created for A in APO
    Prd Ord for A is created in ECC
    A has B, C and F as requirements
    and  B is phantom
    B has D and F as requirements
    Then my BOM explosion shows
    ..1 B
    ..2 D
    ..1 C
    ..2 D
    ..2 E
    ..1 F (This only gives the quantity required to make A)
    But it should also list how much of F (..2 F) is required to make B.
    Where as it comes up in ECC.
    Do I need to change the material settings for Phantom or is it just the UOM that is creating an issue?

  • Page level security for JSPs

    How can i give my users limited access to my JSPs, i.e i should be able to give access to different JSPs based on user.Can i do it?
              

    Look at the security section of the spec. Simplest implementation uses
              resource-level security, where resource could be a dir, extension or a
              specific JSP.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "nandu" <[email protected]> wrote in message
              news:3b696405$[email protected]..
              > How can i give my users limited access to my JSPs, i.e i should be able
              to give access to different JSPs based on user.Can i do it?
              

  • Function or tcode to tick delivery completed in PO item for Mass processing

    Hi All,
    Is there any Function or tcode to tick delivery completed in Mass Processing?
    Appreciate.
    Nies

    Hello,
    Please use transaction MEMASSPO to set delivery completion indicator for several PO lines together.
    Thanks,
    Venu

  • Invoking a webservice as an "application process"

    Hello there,
    I have setup a web service successfully and I can invoke it as a "Page Process", get the response in a collection , and do a few validation based on it.
    However, I will need this validation for most of my pages in the application, so I thought, I would rather run it against the application as a whole.
    The issue came when I try to invoke the web service as an "Application Process" rather than a page process. Unfortunately APEX does not seems to give an option to invoke a web service on application level as it does for page level.
    For Application Process, apparently I can only run a PL/SQL block, which is fine; if I know how to make a call to the web service and fill the collection from a PL/SQL Block.
    My application does not have a particular page as "home entry"; users basically will be accessing different pages as entry points. I really don't like to invoke WS calls on each of the page to get the collection filled, so my validation could run - I mean I will have only this option unless this tread yield me with an alternative :)-
    I am sure someone must have gone through similar situation, and hopefully could provide a solution or workaround for me.
    Thanks a lot in advance
    Regards
    Ligon Gopinathan

    Ligon:
    Yes, using NTLM authentication does complicate things a bit. However, I think it may be possible to to achieve the goal of pushing all users to a fixed landing page upon successful session establishment by the NTLM page-sentry function and from thereon to the page the user requested. This landing page will have 2 'before header' processes , one that will call the Web Service and the another that will simply re-direct the user to the page that was initially requested.
    In the page-sentry function you can modify the call to 'wwv_flow_custom_auth_std.post_login' such that the parameter
    p_flow_page is set to 'apex_application.g_flow_id ||':'<landing-page-id>'
    You will also need to save off the actual page requested( the value of apex_application.g_flow_step_id) into an application_item which you can then reference in the pre-header process of the landing-page.
    I must caution you that I have not tested whether this approach will work but decided to throw this out here anyhow :)
    Check http://www.oracle-base.com/articles/10g/utl_dbws10g.php out for a how-to for calling out to Web Services using PL/SQL .
    Varad

  • 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

  • Adding pl/sql expression to application level item

    I would like to have an item shared by all pages within my application. My understanding is that I can define an application-level item for this.
    I know that for page-level items I can pool a value from the database by putting a pl/sql function into the item's "source value or expression" field and by setting the source type to "pl/sql expression or function".
    But I cannot do that for an application-level item. In fact, when I create my application-level item, the properties screen of it has pretty much nothing available to configure. It only has Name, Security, Build Option and Comments.
    Please, advise on how I can pool a value from the database for an application-level item.
    thanks
    Boris

    Boris,
    Application-level items are items that do not get rendered in HTML. They are for keeping named values in session state only and are available for use throughout the application. However, all page items are available for use throughout the application.
    What do you mean by "I would like to have an item shared by all pages within my application. "? If you want an item that gets rendered on every page, create a page 0 and put regions/items on that page.
    I don't know what you mean by "pool a value from the database".
    Scott

  • Assign values for Application items

    Hi,
    I have some application items to which I want to assign values querying from a database table based on the user logged in. I have created an application process which does that. What process point I need to select so that the values in application items are available through out the session?
    Thanks,
    Asha

    Asha:
    I have been able to reproduce this issue. The application process appears to fire for every 'new' session-id. This explains the 'no data found' when you navigate to the application's login page. What is weirder is that APEX re-uses the session-id created when presenting the login page and therefore the application process no longer fires ! This needs more research. Clearly, my understanding of the the 'On New Session - After Authentication' is inadequate.
    In the meanwhile you can move the code you have for the application process and and use it as a 'Post-Authentication Process' for the application's authentication scheme.
    Varad

  • How to set the value of application item using pl/sql in application process

    Hi guys,
    I want a global variable (application item) whose value will be set at the start when a user logs in to the application. The value will be retrieved from database using a sql query. I do not know the exact syntax to set the value of application item in application process. Also i want to know in which type of application process should i use to set the value of application item when a user starts a session. The value of application item varies from user to user.
    Please help.
    I am using apex 4.2
    Regards,
    Waqas

    You can use the application item as bind-variable with its name. ie. your application item is named G_MY_APPLICATION_ITEM, then you can access/set it using :G_MY_APPLICATION_ITEM.
    For example
    BEGIN
        -- assign like a variable
        :G_MY_APPLICATION_ITEM := 'LARRY';
        -- use in a SQL statement
        SELECT WHATEVER_COLUMN
          INTO :G_MY_APPLICATION_ITEM
          FROM MY_TABLE
         WHERE USERNAME = :APP_USER
    END;
    Peter

Maybe you are looking for

  • Display of material description in classificatio tab on while doing MM01

    Hi All I have to dispaly material description when I select a class in classification tab, In this class we have created 1 to 6 fields and one  field is material description. can I display this material description when I select the class automatical

  • I get the following when I try to open fox: "Could not initialize the application's security component. The most likely cause......"

    When I try to open Firfox, I get the following error message: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no re

  • Procedure Taking too Much Time

    Hi Guys, I have package which contains number of function and procedure which is link with Oracle 's standard report called Prodction Shortage Report , it is taking too much time and even now days it is not finsih after three days. So I am looking fo

  • More help for a newbie please!

    hi everyone ive got a list selection listener set up for my view class this list shows names retrieved, this has been done by the following for (int i=0;i < data.size(); i++) Person aPerson = (Person)data.get(i); // Compose a string for each object.

  • Configure VBrick encoder to work with FMS

    I'm wondering if anybody knows of a guide or a step by step process for configuring a VBrick HS.264 encoder to send video to my FMS for live broadcast.  I'm experiencing issues configuring the Transmitters on the VBrick admin panel and unsure how to