Passing values thru application Item.

All,
Ive issue here with Apex4.1.x.
I created an application item to which a value is set using javascript like (document.getElementById('P135_GLOBAL1').value = '100'; ) executed onclick when a LIST ITEM is clicked to display another page/page2. On the called page2 i want its region title set to ="Something&135_GLOBAL1." and same application item value i want to assign to another hidden item in the called page/page2......any idea is appreciated.

koloo wrote:
All,
Ive issue here with Apex4.1.x.
I created an application item to which a value is set using javascript like (document.getElementById('P135_GLOBAL1').value = '100'; ) executed onclick when a LIST ITEM is clicked to display another page/page2. Application item values cannot be set in this way: they only exist in session state on the server, not as HTML elements in the page that can be manipulated using JavaScript DOM methods/properties in the browser. (Furthermore, when setting page items in this way, always use the built-in APEX method<tt>$s</tt> APEX method to set values in JavaScript as this contains logic to correctly process APEX item types.)
To set the value of application items in JavaScript, use a Dynamic Action with a Set Value action, triggered by a Change event on your list item.

Similar Messages

  • How to access the value of application item in javascript

    How to access the value of application item in javascript?

    Hi,
    One way
    var myVariable = '&MY_APP_ITEM.';Br,Jari

  • 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

  • How to set value of application item using Java script.

    I have created a textbox on page 0, on chnage of textbox i want to set the value of application item.
    How to write the code to set & get value of application item.
    Thanks,
    -Amit

    Hello Amit
    This would be a great place to start...
    JavaScript
    Alternatively, APEX 4.0 will make this sort of task declarative.
    Kind regards
    Simon Gadd

  • 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

  • Apex 4.2  passing value from one item to other page

    I have a page where i accept a starting date and ending date as a parameter
    its source i set it as preference or application item
    Now in the other page I calls a jasper report..
    so it refers the first page.. I am not able to access the start_date which is in other page
    start_date and end_date
    Start_date shows as null
    Am confused over what is preference and application item
    Where will we use preference as a source type.
    Again example
    page 103
    p103_start_issue - preferenec
    p103_end_issue -- preference
    A buttons calls other page
    The other page
    when i call jasper report I Pass the parameter value as :p103_start_issue and :p103_end_issue
    But the actual value is null for those fields..
    How can i acess the actual value..
    Do i need to use application item. ? I tried application item as source type but still the same issue.
    Thanks

    Am confused over what is preference and application item
    Where will we use preference as a source type.A Page item is the most short-lived way to store variables in session state. Page items are routinely (although not always) cleared when entering or leaving a page. They are generally used to store a value that changes most times that you enter a page. Page items are also generally intended for use primarily by code on that page. This is not to say that other pages can not or will not use them, but access from other pages has to be controlled so that they are not trying to reference a page item from a different pages after the cache for that page has been cleared.
    Application items are for data that is longer-lived and/or is intended to be accessed by multiple pages. Application Items are not cleared unless a session end or a specific call to clear them is made.
    Preferences are for data that is intended to be stored and retrieved for specific users across multiple sessions. Log out of an app and back in and the data is still available.
    That said, from your description of the problem, I would guess that the cache on page 103 was cleared and the page item values erased. I suspect that you should be using an application item from what you have posted.

  • Passing values to APEX items from external site

    All,
    Is it possible to pass values to APEX page items from an external web site?
    For example, I have an external web site where users type in a username and password into fields. When they click the 'log-in' button in the external site, I would like to have those values passed to the APEX log-in page. If possible, I would like to have the APEX log-in occur 'invisibly' and the user taken directly to the home page of the app. If that's not possible, it would be nice to simply have the 'user name' and 'password' fields filled in on the APEX side.
    I'm using APEX 3.0.
    Thanks in advance for any help!
    Alex

    Hello Alex,
    >> Is it possible to pass values to APEX page items from an external web site?
    The general answer is yes. You can use the f?p syntax to set the value of any APEX item - http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#sthref185 .
    In your specific example, the main question should be is it wise? The mere fact that you are using a login process suggests you have something to protect in your application. The f?p syntax uses a plain text for the items’ value, which means that the user name and password will be completely exposed.
    Regards,
    Arie.

  • Using value of application item in javascript

    Hello All,
    Apex 3.1
    I have a javascript that calls an application process, please see below. In the application process I have logic to set/change the value of an application item. Later in the javascript I need to set a page item to the value of the application item which was set in the application process. Any alerts that I post during the javascript show this value as blank, even though a similar HTP.prn in the application process displays the value!. After the script completes the correct value of the application item is in session state . Can someone explain this timing issue to me? Why can't I get the value of an application item in the javascript when the application process is called from the javascript?
    Is there a simple workaround here for me to get this value?
    <script>
    function f_ValidateLinkLine(pThis) {
       // The row in the table
       var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
       // is Link Line really a number? 
       if ( isNaN(html_GetElement('f20_'+vRow).value)) {
            if (html_GetElement('f20_'+vRow).value.length > 0) {
            alert('Link Line is an invalid number - '+html_GetElement('f20_'+vRow).value);
            html_GetElement('f20_'+vRow).value = '';
       } else { 
           if ( ! isNaN( parseFloat(html_GetElement('f20_'+vRow).value) ) ) {
       var link_line = parseInt(html_GetElement('f20_'+vRow).value);
       if (html_GetElement('f20_'+vRow).value.length > 0) {
          var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ValidateLinkLine',0);
          get.add('F101_LINK_LINE',html_GetElement('f20_'+vRow).value);
          get.add('F101_INVENTORY_ITEM_ID',html_GetElement('inventory_item_id_'+Number(link_line)).value);
          get.add('F101_QUOTE_LINE_LINK_ID',html_GetElement('f01_'+spacer+link_line).value);
          get.add('F101_QUOTE_LINE_ID',html_GetElement('f01_'+vRow).value);
          get.add('F101_QUOTE_NUMBER',html_GetElement('f19_'+vRow).value);
          gReturn = get.get();
       // The application process can sometimes change the value of F101_QUOTE_LINE_ID
      //  and I need to set f37 to this value when this happens
        html_GetElement('f37_'+vRow).value =('&F101_QUOTE_LINE_ID.');  //< -- This does not work, the applicaiton item is blank!
          if (gReturn) {
           alert(gReturn);
          if(gReturn) {
           html_GetElement('f20_'+vRow).value = '';
           html_GetElement('f37_'+vRow).value = '';
       }  //End Check Length
      } else {
      html_GetElement('f37_'+vRow).value = '';
      } // is Link Line a number?   
    } // End If  
    } // End ValidateLinkLine
    </script>Edited by: blue72TA on Aug 16, 2011 11:39 AM
    Edited by: blue72TA on Aug 16, 2011 11:41 AM
    Edited by: blue72TA on Aug 16, 2011 11:41 AM

    Hi,
    When you use application item in JavaScript like you do, string &F101_QUOTE_LINE_ID. is substituted by item value from session state.
    Changes to that item value when you call On Demand process do not affect to page.
    Lets take example,
    You app item F101_QUOTE_LINE_ID value is e.g. XX in session state.
    You run page and see page source it looks like this
    html_GetElement('f37_'+vRow).value =('XX');Kind you have hard code value to JavaScript.
    Nothing will change that unless you refresh page.
    You need return value from On Demand process.
    To set value code could look like then
    html_GetElement('f37_'+vRow).value = gReturn;Regards,
    Jari

  • Assigning current value to Application Item

    Hi,
    I have a interactive report with form in my application.....
    if a user applys filter on first column of the interactive report.....how can i assign that value to the APPLICATION ITEM.
    thanks

    Hi Andy,
    Thanks....it is working perfect......
    but i have a small issue....
    in my real application i have 7tabs with page no's 1,2,3,4,5,6,and 15.....
    so i have created 7 application items G_PARTNO1, G_PARTNO2, G_PARTNO3, G_PARTNO4, G_PARTNO5, G_PARTNO6, G_PARTNO15.
    and used the single application process that runs On Load Before Header and uses the following PL/SQL code:
    DECLARE
    v1 NUMBER;
    v2 NUMBER;
    v3 NUMBER;
    v4 NUMBER;
    v5 NUMBER;
    v6 NUMBER;
    v15 NUMBER;
    BEGIN
    SELECT MIN(CONDITION_EXPRESSION) INTO v1
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 1
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v2
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 2
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v3
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 3
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v4
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 4
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v5
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 5
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v6
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 6
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v15
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 15
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    IF (:G_PARTNO1 IS NULL AND v1 IS NOT NULL) OR (:G_PARTNO1 <> v1) THEN
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v1);
    :G_PARTNO1 := v1;
    :G_PARTNO2 := v1;
    :G_PARTNO3 := v1;
    :G_PARTNO4 := v1;
    :G_PARTNO5 := v1;
    :G_PARTNO6 := v1;
    :G_PARTN015 := v1;
    ELSIF :G_PARTNO1 IS NOT NULL AND v1 IS NULL THEN
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO2 IS NULL AND v2 IS NOT NULL) OR (:G_PARTNO2 <> v2) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v2);
    :G_PARTNO1 := v2;
    :G_PARTNO2 := v2;
    :G_PARTNO3 := v2;
    :G_PARTNO4 := v2;
    :G_PARTNO5 := v2;
    :G_PARTNO6 := v2;
    :G_PARTN015 := v2;
    ELSIF :G_PARTNO2 IS NOT NULL AND v2 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO3 IS NULL AND v3 IS NOT NULL) OR (:G_PARTNO3 <> v3) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v3);
    :G_PARTNO1 := v3;
    :G_PARTNO2 := v3;
    :G_PARTNO3 := v3;
    :G_PARTNO4 := v3;
    :G_PARTNO5 := v3;
    :G_PARTNO6 := v3;
    :G_PARTN015 := v3;
    ELSIF :G_PARTNO3 IS NOT NULL AND v3 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO4 IS NULL AND v4 IS NOT NULL) OR (:G_PARTNO4 <> v4) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v4);
    :G_PARTNO1 := v4;
    :G_PARTNO2 := v4;
    :G_PARTNO3 := v4;
    :G_PARTNO4 := v4;
    :G_PARTNO5 := v4;
    :G_PARTNO6 := v4;
    :G_PARTN015 := v4;
    ELSIF :G_PARTNO4 IS NOT NULL AND v4 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO5 IS NULL AND v5 IS NOT NULL) OR (:G_PARTNO5 <> v5) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v5);
    :G_PARTNO1 := v5;
    :G_PARTNO2 := v5;
    :G_PARTNO3 := v5;
    :G_PARTNO4 := v5;
    :G_PARTNO5 := v5;
    :G_PARTNO6 := v5;
    :G_PARTN015 := v5;
    ELSIF :G_PARTNO5 IS NOT NULL AND v5 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO6 IS NULL AND v6 IS NOT NULL) OR (:G_PARTNO6 <> v6) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v6);
    :G_PARTNO1 := v6;
    :G_PARTNO2 := v6;
    :G_PARTNO3 := v6;
    :G_PARTNO4 := v6;
    :G_PARTNO5 := v6;
    :G_PARTNO6 := v6;
    :G_PARTN015 := v6;
    ELSIF :G_PARTNO6 IS NOT NULL AND v6 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO15 IS NULL AND v15 IS NOT NULL) OR (:G_PARTNO15 <> v15) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v15);
    :G_PARTNO1 := v15;
    :G_PARTNO2 := v15;
    :G_PARTNO3 := v15;
    :G_PARTNO4 := v15;
    :G_PARTNO5 := v15;
    :G_PARTNO6 := v15;
    :G_PARTN015 := v15;
    ELSIF :G_PARTNO15 IS NOT NULL AND v15 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(4);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    END IF;
    END;
    The process is conditional on "Current Page is Contained Within Expression 1 (comma delimited list of pages) and Expression 1 is: 1:2:3:4:5:6:15
    I am getting the following error when i run the application:
    Unexpected error, unable to find item name at application or page level.
    Error ERR-1002 Unable to find item ID for item "G_PARTN015" in application "181".
    OK
    Please let me know where i am doing wrong....
    Thanks

  • Passing value thru parameters

    select *
    from (select b.accode,c.actitle,nvl(sum(b.debit),0) op_dr,nvl(sum(b.credit),0) op_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date < '01-JUL-04'
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    full join
    (select b.accode,c.actitle,nvl(sum(b.debit),0) dur_dr,nvl(sum(b.credit),0) dur_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date between '01-JUL-04' and '30-JUN-05'
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    using (accode)
    Problem :- The above qurey is works perfect but if use parameters instead of using fixed dates it gives an erroe ( "VARIABLE TODT IS NOT DECLARED".
    Please expedite.
    Regards,
    Hassan

    select *
    from (select b.accode,c.actitle,nvl(sum(b.debit),0) op_dr,nvl(sum(b.credit),0) op_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date < :fmdt
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    full join
    (select b.accode,c.actitle,nvl(sum(b.debit),0) dur_dr,nvl(sum(b.credit),0) dur_cr
    from v_mast a, v_det b, chart c
    where a.v_type=b.v_type
    and a.vouchno=b.vouchno
    and b.accode=c.accode
    and a.VOID='F'
    and a.posted_by is not null
    and a.v_date between :fmdt and :todt
    and b.accode in (select accode from account where open='T')
    and b.accode in (select accode from chart)
    and a.v_type in ('RN','PV','CV','RV','JV')
    and b.accode = '0104002'
    group by b.accode,c.actitle
    order by b.accode )
    using (accode)
    This qurey is running and generating report only and only if I use fixed dates in place of :FMDT and :TODT like '01-JAN-05' , but if I use :FMDT and TODT to ask date parameters at run time then the qurey gives an error at compilation.
    I am sure u must have understood kinldy help me out OR do tell me other way to pass vaules thru parameters

  • Problem passing value from List Item to List Item

    OK I will try to explain what I am trying to do. I have a Form that List Item at the top and they cascade from left to right. When I get to the BPOST_TAG I choose the Bpost then move to EPOST_TAG to choose the Epost. The EPOST_TAG should show all the Epost that go with Bpost you already chose, but it only showing 1 or 2. Below is the example of how should work!
    SYSTEM     COUNTY     ROUTE   BPOST_TAG      EBPOST_TAG
    1 77 80 025 030
    ------- The Return Values Should be as below-------------------------------------------------
    Sy Co Route Dir Bpost Epost Miles Descrption
    1 77 80 1 025 026 ? ?
    1 77 80 1 026 027 ? ?
    1 77 80 1 027 028 ? ?
    1 77 80 1 028 029 ? ?
    1 77 80 1 029 030 ? ?
    1 77 80 2 025 026 ? ?
    1 77 80 2 026 027 ? ?
    1 77 80 2 027 028 ? ?
    1 77 80 2 028 029 ? ?
    1 77 80 2 029 030 ? ?
    The top 5 List Items are based on the first Data Block (PMISCURR) and the bottom 8 columns are based on the second Data Block (PMISCURR1).
    I have PRE-QUERY on the first Data Block (PMISCURR), below is code for the PRE-QUERY.
    DECLARE
    Wh_clause VARCHAR2(200);
    BEGIN
    IF :PMISCURR.SYSTEM is not null then
         Wh_clause := 'SYSTEM = '||:PMISCURR.SYSTEM;
    END IF;
    IF :PMISCURR.COUNTY is not null then
         Wh_clause := WH_CLAUSE ||'AND COUNTY = '||:PMISCURR.COUNTY;
    END IF;
    IF :PMISCURR.ROUTE is not null then
         Wh_clause := WH_CLAUSE ||'AND ROUTE = '||:PMISCURR.ROUTE;
    END IF;
    IF :PMISCURR.BPOST_TAG is not null then
         Wh_clause := WH_CLAUSE ||'AND BPOST_TAG = '||:PMISCURR.BPOST_TAG;
    END IF;
    IF :PMISCURR.EPOST_TAG is not null then
         Wh_clause := WH_CLAUSE ||'AND EPOST_TAG = '||:PMISCURR.EPOST_TAG;
    END IF;
    END;
    OK It's just not my day I can't even get this line-up! :)
    Edited by: Monty on May 5, 2011 2:58 PM

    Hello,
    Simply get the current item value in a When-List-Changed trigger:
    current_value := :block.listitem ;Francois

  • Need help in use of application item - value to be changed dynamically

    HI ,
    i have created a application item and i want to change the value of the application item when user link the URL link
    for eg- I have two link -
    htp.p('<tr><td>AABB<td>');
    (a href="f?p=&APP_ID.:6:&SESSION..:F129_DB_NM:XXXXX">page 1)
    htp.p('</a></td>');
    (a href="f?p=&APP_ID.:6:&SESSION..:F129_DB_NM:YYYY">page 2);
    htp.p('</a></td>');
    If user click first link then i want the value of application item shuld chnage to XXXXX and it pass the same to page 1.
    and vice versa.There is no if condition in this.
    Please let me know on this.What i need to do in this more.
    Edited by: 946963 on Oct 22, 2012 4:06 AM

    946963 wrote:
    thanks for this .I have links with me its working fine.
    Problem is that it is not chnaging the value of application item .
    When i click on first link then i want to pass value XXXX for applicationitem for page 1 and value YYYY for page 2.This same value i have to pass further to page 3.
    How can i do this Please let me know on this.Have you opened the link that I gave in my prev post??
    //change your code to look like this
    //notice the colons before your application item
    htp.p('<tr><td>AABB<td>');
    (a href="f?p=&APP_ID.:6:&SESSION..::::F129_DB_NM:XXXXX">page 1)
    htp.p('</td>');
    (a href="f?p=&APP_ID.:6:&SESSION..::::F129_DB_NM:YYYY">page 2);
    htp.p('</td>');

  • How to read application item's value using  javascript

    Is there any way to read value of application item using javascript?
    Thanks

    Javascript can access the objects rendered for the page you are calling. This is why the $v function will do the work if calling it for a page item. However an application item isn't rendered on the page - the session state of it is only stored in the table. This is why you need to do it the way I described. You could do a workarround and create a hidden item on your page and compute the value of it using the application item value. Then you would be able to get the value of your application item using $v function.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Application Item values in Session State in APEX 4.2

    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?

    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

  • Pass Values to Edit Form thru Query String and Save in List

    I have developed a custom Edit form from SharePoint Designer and I am passing values thru Query String as below;
    http://<>/cli/acc/Lists/GIInfo/testEdit.aspx?ID=262&com=POD_Send
    And, user supposed to save the form directly without changing the values came thru Query String as below. 
    Now, issue is, when user saves the form, values is not getting saved. It saves when we change the value in text box or when we do a text change event in form. Becasue data binding says Text Change even in data binding property.
    __designer:bind="{ddwrt:DataBind('u',concat('ff22',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Actions')}"/>
    Kindly guide me what is the issue, or correct approach to do that? I want to pass values to Edit Form thru Query string and save in List without changing those.
    -Rajesh A.

    I know this is late, but i found a very good solution on this post and credit goes to the author.
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/4be1be38-0663-4b80-8f28-45f38f98f9d0/sharepoint-designer-2010-custom-newformaspx-data-in-textbox-fields-dont-save-on-submission?forum=sharepointcustomizationprevious
    The issue was resolved by changing the textbox values,
    <asp:TextBox runat="server" id="ff1{$Pos}" Name="Title" Text="" Value="{$Destination}"  __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}">
    instead of
    <asp:TextBox runat="server" id="ff1{$Pos}" Name="Title" Text="{$Destination}"  __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}">

Maybe you are looking for

  • Substitution not working for MIRO

    Hi Gurus, I have a problem were in we have created a substituion rule where if tax code is ' X ' for certain co. code than substitute with tax code ' Y '. evrything is working fine in FI but in MIRO it fails. Has any one faced this problem and got an

  • FXO not disconnecting after AA picksup

    hi all, I have a CCME10 with ISR2911. Incoming calls to AA keeps ringing even when caller hangs up the call. I have no issue if it is a direct incoming call to extension(connection plar opx). Is there any way i can get the call to disconnect correctl

  • No print 1st sheet

    when i go to print from a file or off the web the first sheet are blank

  • Table locking in MS SQL Server

    Hi Can anyone help with a locking problem I have. I have a jsp accessing an MS SQL 7 table. The data access has exception handling and the connection and resultset are closed within the finally block, however the table accessed sometimes gets locked

  • Cc 2014 cleanup tool

    is there a cleanup tool available for cc 2014?