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

Similar Messages

  • 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

  • Before Header pl/sql process to assign values to page items

    How can i assign values to items on a page based on the data structure returned from a pl/sql procedure within the before header process? I am thinking of executing a pl/sql procedure based on a URL parameter value and then assign values to page items. Is this really possible using Apex 4.0.2? If yes, how can it be done?
    thanks
    Seetharaman

    The question isn't really clear. What kind of "data structure returned from a pl/sql procedure"? Please be much more specific.
    For a PL/SQL data structure such as record containing 2 elements (<tt>x</tt> and <tt>y</tt>) returned as an out parameter from a procedure to be assigned to 2 page items <tt>p1_x</tt> and <tt>p1_y</tt>, all that's required in the Before Header process is something like
    declare
      l_rec rec_type;
    begin
      the_proc(..., p_out => l_rec, ...);
      :p1_x := l_rec.x;
      :p1_y := l_rec.y;
    end;

  • 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 create a display value and a return value for an item

    Hi! I have an item on a form. I want the default value for my item to be :":APP_USER", but the return value, to be the id of my user. I tried to create a PL/SQL Expression for the default item, but it doesn't work. What do I miss?
    It should be something like this, but it's not.
    begin
    select first_name || ',' ||last_name as "Employee",
    id_employee -- display value,return value
    from employees
    where id_employee = :APP_USER;
    end;
    Does anyone know?
    Thanks!
    Vitaly

    Hi VItaly,
    Display value and return value concept applies very well in case of a Combo box if i am correct, I don't know what type of item is your's.
    But any way, you can have a workaround like,
    Create a hidden item such that it's default value should be ID of the user which can be get from db by using :APP_USER.
    Use the this item for your references.
    I think this will meet your requirement.
    Thanks
    Kumaraswamy.

  • 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

  • Po number as assignment number for each item in MIR4 using substitution

    Hi All,
    Using substitution rule in GGB1 iam getting assignment number as PO number only for GL documents.
    But i need the same PO number as assignment number for cleared item documents...
    iam getting YYYYMMDD field as assignment number for each line item....but i need PO number...
    how can i achieve it...
    pls help experts...
    Regards
    Ram
    problem solved
    Edited by: gajeramesh on Feb 3, 2010 2:25 PM

    Hi,
    After creating the items you can write your own text upload program to upload the item texts. Note it cant be uploaded through BAPI or BDC.
    Search the forum for SAVE_TEXT FM, you will get lots of examples for this.
    Also Read the FM documentation for the above FM in SE37.
    Regards
    Karthik D

  • 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 values for more than one field

    Hi,
    I have written following code
    constants: fieldname(30) value '(SAPMF02D)KNA1-AUFSD'.
    constants: fieldname1(30) value '(SAPMF02D)KNA1-LISFD'.
    constants: fieldname2(30) value '(SAPMF02D)KNA1-FAKSD'.
    field-symbols: <L_FIELD>  TYPE ANY.
    field-symbols: <L_FIELD1> TYPE ANY.
    field-symbols: <L_FIELD2> TYPE ANY.
          Assign (fieldname) to <l_field>.
          <L_FIELD> = 'ZB'. " value according to your requirement
          Assign (fieldname1) to <l_field1>.
          <L_FIELD1> = 'ZB'.
    while debugging <l_field1> is not assinging (fieldname1).
    Im able to assing for (fieldname).
    how to assign value for (fieldname1).
    plz suggest me to assign values for more than one field.
    Regards,
    Brahmaji

    Hello,
    Because there is no field name called LISFD in KNA1. Actually you misspelled the field name.
    It is KNA1-LIFSD

  • How to assign values for boolean array in LabVIEW?

    I want assign values for boolean array.Iam not able to do that.For each boolen i want to assign each value.Plz help me......
    Please Mark the solution as accepted if your problem is solved and donate kudoes
    Solved!
    Go to Solution.

    Hi agar,
    values in an array are "assigned" by building an array (using BuildArray) or by replacing values in an existing array (ReplaceArraySubset)!
    Good starting point could be this...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Replication Error: Determination of values for application was interrupted

    Hello,
    We are setting up a CRM 5.0 system, with an ECC 5 backend. We try to replicate the condition customizing (object DNL_CUST_CND). When I look in the object monitor the object gets status green after running. But in SLG1, the log shows over 200 warnings and 3 critical errors with message:
    Determination of values for application was interrupted
    Message no. CND_MAP837
    There is not more information available and I can't find anything relating to this message here or in OSS. Does anyone have a clue what the cause of this error could be?
    Thanks in advance,
    Jeroen

    Hello Jeroen ,
    You may find  the warning message bcos all the R/3 fields may not be available in
    CRM system. thus those condtion tables may not be mapped and inactive status.Check whether the condtion tables used in ur scenario is available in active status in CRM.
    Regarding the  data exchange of condtion the follwing oss notes will be helpful:
    1. 314542.
    2. 441485 this note containst the  message relevant to you (CND_MAP837) .
    Please check the above notes and try to analyse ur issue.
    Regards
    Bala

  • Can we see costing value for line item batch in Batch Information Cokcpit r

    Can we see costing value for line item batch in Batch Information Cokcpit report - BMBC?
    Business like to see standard cost/ item and extended cost which should be qty in inventory * standard cost.
    Help appreciated.
    Edited by: Tom_Eric on Jan 13, 2012 2:33 AM

    HI.
    YES it is passible.
    If the GL is activated line item display check box is active then we can able to see the data as per line items.
    T<Code. Fbl5n
    Thanks.
    Vasu
    Edited by: Vasu Enaguthi on Apr 7, 2010 8:46 AM

  • Fetching unit_of_meaurement value for each item

    Hi ,.
    I want to fetch the value unit_of_measurement (MSEHI) value from table T006
    for each items
    I havent find any linakage
    How can i read these values for each item
    Thanks
    Anil

    I have a material number say, Grumpy. The report that I have shows the total sales for Grumpy for $13,000.00. Grumpy has other submaterials number says Grumpy_1, Grumpy_3, Grumpy_4, Grumpy_5. The report only shows the total quantity sold for each of these submaterials. Say
    Grumpy_1 = 800
    Grumpy_3 = 70
    Grumpy_4 = 1
    Grumpy_5 = 33
    I want to find a way to get an IO that tells me a price sold for 1 quantity, so that I can use it to find the total sold for Grumpy_1, Grumpy_3, Grumpy_4, Grumpy_5 that will add  to equal $13,000.00
    Thanks
    "<i>Sometimes I need what only you can provide: your absence.</i>" ~ Anonymous

  • Assigning value for an integer

    i'm having two jsp pages. i pass value from one jsp page to another jsp.
    when i try to assign value for an integer, it is taking the default value. it is not taking the value what i assign. for string its taking correctly.
    this is the query string.
    document.book.action="cis1.jsp?lstr_bname=<%=lstr_bname%&lint_mss=<%=lint_mss%">
    here for lstr_bname it is taking the value. but not the case for lint_mss.(taking default value).

    Try this
    document.book.action="cis1.jsp?lstr_bname=<%=lstr_bname%&lint_mss=<%=Integer.toString(lint_mss)%">
    Bye

  • 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

Maybe you are looking for