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

Similar Messages

  • 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

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

  • 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 assign NULL value to an ITEM in Forms Personalization?

    Hi,
    how to assign NULL value to an ITEM in Forms Personalization?
    please suggest me.
    Thanks

    I don't know what your form personalization does and maybe I misunderstand you ...
    Try
    :item_name := null;

  • 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

  • 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

  • Bring 2 datas at the same time and assign that value to my item

    Hi everybody, I have a trigger called WHEN-NEW-FORM-INSTANCE where I have the following select: Select to_char(sysdate,'yy') into :mat from dual.
    This select brings me the year from the system, but I would like to put together the year and the consecutive number of another table to have something like this: 09-0001 and add this value to the item called :mat.
    Is this possible?

    You can try what Brown has suggested.
    But in case you want a running number , then sequence might not help.
    What we used to do in this case is, we used to store a number in one seperate table (with other parameters like year, item code and so on), and select the max of this number +1 concatinated with year or whatever format you require.
    And at the end update that number with number+1.
    Say table series has columns
    year month series
    09 01 22
    Now when you select this number series+1 and update in you empid prefixed/suficed with some other field, then do remember to update this field. That means at the end of the transaction the record in this table would be
    09 01 23.
    This is a unique idea and can be utilized for generating ID based on year month series format.
    Just define them in the table and use them accordingly in your code.

  • Assigning a value to an item

    Hi,
    I'm using forms6i.
    I have an item in my form , say, Invoicebase, whose default value to be fetched from another table and to be shown in the form while loading.
    The query to fetch the default value involves a where condition, like where company = :Global.company
    But I'm assigining value to this global variable in when-new-form-instance.
    So where(which trigger) should i write the query to fetch the default value?
    I cannot assign value in when-new-record-instance trigger because , it wil change the form status, and if without entering any value i try to quit it wil ask for Close Form?
    I can only do that in when-create-record trigger, but at that time the global variable wil not be initialized and the query would not have worked!
    Please help me handle this
    Thanks
    Edited by: Divya on Jan 30, 2011 4:32 AM

    Stay with the WHEn-CREATE-RECORD-trigger and put the code to initialize teh global into the PRE-FORM-trigger.

  • 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

  • Assigning value to an item

    Is there a way to assign value to variable
    of data type ITEM? In other words, I need to
    assign value to an item, where I just know the
    it_id.
    In the following procedure p_item is unknown until runtime;
    and if it_id is not null then assign some value to the item.
    procedure update_item(p_item)
    is
    it_id item := find_item('block1.'||p_item);
    if not id_null(it_id) then
       it_id := 'some_value';  --doesn't work.
    end if;
    end;

    Do you mean you know the name of the item and you want to then assign a value?
    If so then use the COPY command which allows you to assign a value to a named variable
    e.g.
    COPY (12345, 'blocka.number_item1');
    To read the value in the same way use the NAME_IN function.
    There is plenty in the forms helps about this.
    Mark

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

  • Issue with Setting Application Item

    Hi All,
    I have an issue with setting the value of application item G_USER_ID as part of the login process.
    I use customized authentication for login. I have created an application item G_USER_ID, and in my CUSTOM_AUTH procedure, I am setting its value as APEX_UTIL.SET_SESSION_STATE('G_USER_ID', l_user_id);
    For some reason, the value is not set to G_USER_ID the first time I login. When I log out and login again without closing the browser, the value is set. Note that I even tested with a static value instead of l_user_id like APEX_UTIL.SET_SESSION_STATE('G_USER_ID', '5555555'); but still fails to set during the first login.
    I hope someone can guide me as to what I am doing wrong here.
    Thanks!
    JMcG

    What does this do?
    :SVR_FLAG := NVL(l_mult_svr,'N');
    Scott

Maybe you are looking for

  • Smart object - what happens to the pixels when i transform?

    So i place an image into an open photoshop document, using the place command, of course. it is now a smart object, my question is when i transform or resize without constrain proportions( for example only enlarge the width, the hight unchanged) resam

  • Nokia Messaging: Sent emails are not saved on the ...

    Hi, I use Nokia messaging (the latest -13 version) on a Nokia 5800. The server is a Imap server, not one of the automatically detected email providers. Sending and receiving of messages works. Unfortunately the messages are only saved locally on my p

  • WAD: Size of graphic is too small to display data

    Hi BI-Gurus I get a message showing that the graphic size is not large enough to display data. I already have a chart item linked to a query which has the same amount of columns as result. This chart/graphic seems to be okay, WAD displays it. But the

  • Seperator in report

    I have an Apex page which has a report region on. The source of the report region is some SQL which summarises data in a table, grouping by date, something like this - 26-October-2008 Record 1 26-October-2008 Record 2 26-October-2008 Record 3 27-Octo

  • HT201272 how can I download previous music purchases?

    I downloaded them previously and then "hid" them in my music folder. Now even when I go onto iStores it says I have purchased them but i cant see where to download them.. getting relaly really frustrated... I have uninstalled iTunes, I have tried eve