Submitting the value of an item with session state

Hi,
I've a Master / Detail Form on different pages, like master report page no.19, master form page no. 20 and detail form page no. 21. I've created this form using Form, master detail form wizard. I've set deptid as a primary key in master, and foreign key in details table. In page 21, i've set the source for deptid, source used : Always, replacing any existing value in session state, source type : Item (application or page item name), source value : P20_DEPTID. While executing the form deptid is showing the value, but, while submitting of the form, it's not saving in the table. What will be the problem??
Thanks and Regards,
Sudha.

Sudha,
OK.
Go to the pagedefintion in page 20, click on the wordt report (of your master form).
You will get a new screen.
Click on the pencil-icon of your column.
Again a new screen.
Select the six tab (it's called LINK).
Enter item-name and value something like :p21_dept_id and #DEPT_ID#
where P21_dept_id is the item of the form for the dept_id
Hope this helps.
Leo

Similar Messages

  • Forming a report query dynamically with the value of an item

    Hi Gurus,
    We wanted to create a report based on the value of an item in the page.
    For example
    There is a text box named p1_table depending on the value of this item the query of the report should change
    1) when p1_table = emp then report query should be select * from emp
    2) when p1_table = dept then report query should be select * from dept
    I tried doing this using
    select * from :p1_table and select * from v('p1_table') , it is not working.
    Kindly help me in achieving the requirement.
    Thanks & Regards,
    Vikas Krishna

    Hi Vikas,
    You have to do this as a report based on a function that returns the query as a string. You build up the string dynamically in the function.
    Regards
    Andre

  • Problem with application item and session state

    Okay, let's see if I can explain this problem coherently.
    I have a small app (one page), with an application item, F_WHERE_CLAUSE.
    This page has three regions in which there are items that the users can populate for search conditions. A couple of these items are "select list with submit" (I still need to upgrade to the AJAX method, I know). There is another region which has one hidden field, called P1_WHERE_CLAUSE. This field is defined to "Always, replacing any value in session state..." with source type of "Item (application or page.....", and a source value of F_WHERE_CLAUSE with no default value.
    I have a button called "Search" which submits the page and fires a PL/SQL process which builds a where condition based upon the other page items and stores the value to the application item F_WHERE_CLAUSE (correctly).
    For testing, I've made the P1_WHERE_CLAUSE field visible so that I can see what's going on. I've also clicked the debug and session buttons to help trace this. After I click the "Search" button and the page submits, debug shows:
    0.02: ...Session State: Save "P1_WHERE_CLAUSE" - saving same value: "1=1"
    followed later by:
    0.05: ...Session State: Saved Item "F_WHERE_CLAUSE" New Value="lower(primary_class) = 'rock' and country = 'Spain'"
    The field P1_WHERE_CLAUSE displays with the correct search criteria as signified by F_WHERE_CLAUSE above. However, If I click the "session" button to view the session state values, P1_WHERE_CLAUSE shows up as:
    P1_WHERE_CLAUSE Textarea    1=1    U while F_WHERE_CLAUSE displays the correct value still.
    The reason this "problem" came up, is that this page also has three SQL report regions which use &P1_WHERE_CLAUSE. for the where condition. While they display the correct results on-screen, each report region also has the "Export to csv" enabled, and the export seems to be using the "1=1" condition (from the "session" window) instead of the search criteria that the on-screen region is using (F_WHERE_CLAUSE and the displayed P1_WHERE_CLAUSE), resulting in a retreival of all records.
    Anybody have any idea what's going on and why, and how to get the csv export to use the correct value for the where condition?
    Thanks,
    Bill Ferguson

    It appears the "Export to CSV" functionality requires the item value to be set in session state. The P1_WHERE_CLAUSE item value never gets saved to session state. The page is rendered and the value is put in the item on the page but until you submit the page session state doesn't know what P1_WHERE_CLAUSE is.
    Create a before header computation or process to set the value of P1_WHERE_CLAUSE (which will save it to session state). It is interesting that the report regions didn't need to look at the value in session state but the "export to csv" does.
    --Jeff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Hi sashby51,
    I've moved your discussion to the PDF Forms forum--the folks who visit this forum regularly should be able to point you in the right direction.
    Best,
    Sara

  • 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

  • Online Store 1.0  - which process set the value of App Item 'FULLNAME'

    Hi,
    I just very curious about which process set the value of App Item 'FULLNAME' ini the packaged Apex App - Online Store 1.0 .
    At Navigation Bar, there is a entry named "If you are not &FULLNAME., Click here |". However I can't find how the app set this application item value in any process when login.
    any idea, I will be very appreciated.
    Thanks in advance.
    PPMonkey

    Check the post-authentication process in the current authentication scheme and the call to ols_getname.
    Scott

  • How to Visible/Hide an Item based on the value of another Item

    Hi
    I need to visible and hide a textitem based on the value of another item.This form has 3 blocks, and the both item is in the first Master Block.
    My code is:
    if :RECORDTYPE=7 then
         Set_Item_Property('BLOCK.ITEM',VISIBLE,PROPERTY_TRUE);
         Set_Item_Property('BLOCK.ITEM',ENABLED,PROPERTY_TRUE);
    ELSE
         Set_Item_Property('BLOCK.ITEM',VISIBLE,PROPERTY_FALSE);
    Set_Item_Property('BLOCK.ITEM',ENABLED,PROPERTY_FALSE);
    :BLOCK.ITEM:=NULL;
    end if;     
    I wrote the code in the Validate Trigger, but not working when moving Next Record & Previous Record
    Thanks in advance
    Rizly

    Read the 'Propagation of Property Changes' section towards the end of the page for Set_Item_Property in the online help. I'm not sure what you mean by locking automatically but perhaps it's because of this.
    You should also ensure the item you're setting to invisible is not the current item (check :system.cursor_item and go to a different item if necessary).

  • I need a field like "System.RelatedLinkCount" but where the count is linked items with a field in a certain state

    I need a field like "System.RelatedLinkCount" but where the count is linked items with a field in a certain state.
    e.g. I've got a WI with a field on it that tells me how many active bugs are linked to it. (I'm not actually counting active bugs, but hopefully you get the idea). 
    The only way I can think to do this is with a TFS plugin and catching the workitemchanged event. I'd prefer to do this entirely in the WI if possible? is there a way to do this? Thanks

    Hi TimB33, 
    Thanks for your post.
    As far as I know there’s no default WI rule support to get the specific WIT linked count, I think you need to create your custom work item control to achieve that if you want this field.
    For this scenario, please submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them
    seriously.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Items in session state not behaving as expected

    And again...
    (I hope I'm not asking too much, posting 2 new questions in under 5 min....)
    This is something new I experienced: I need to show the value of an item (P210_EXTERNAL_ID) on a page (P215)
    ... not a big thing I thought... BUT when I tried to do this I hit the ground pretty rough (I thought I had actually gained some knowledge about html-db.)
    My problem is that I pass on a lot of values from P200 (the report) to P215 (the form) and I reached the limit of characters, that can be used to specify the link (to P215).
    So I thought to myself: Well, lets do it different!
    I tried:
    - specifying a default for the item on P215: P215_EXTERNAL_ID,
    - specifying the source for P215_EXTERNAL_ID,
    - creating a computation on P215_EXTERNAL_ID,
    - filling P215_EXTERNAL_ID 'manually' with a process...
    none of these did play the trick for me.
    (By the way, I used both syntaxes to reference :P210_EXTERNAL_ID and &P210_EXTERNAL_ID.)
    I used Display as Text (saves state) for the item on P215: P215_EXTERNAL_ID,
    the item on P210: P210_EXTERNAL_ID is a Text Field.
    The unexpected thing I experienced, was that the Item on P215 stayed empty or lagged behind:
    - visit P210 with P210_EXTERNAL_ID = 1234
    --- branch to P215 (P215_EXTERNAL_ID is empty)
    - revisit P210 with P210_EXTERNAL_ID = 5
    --- branch to P215 (P215_EXTERNAL_ID = 1234)
    - revisit P210 with P210_EXTERNAL_ID = 66
    --- branch to P215 (P215_EXTERNAL_ID = 5)
    After realizing this I took a look at the session (with the link at the bottom of each page).
    And in the Session State the value of P210_EXTERNAL_ID was the old value (always one behind)!!!
    Has anybody ever seen something like this??
    I'm really running out of ideas here.
    -David-

    Bill,
    Usually I use the pass-on-only-the-PK method too, but here I built something like a consolidated view on a table: one row in the report doesn't correspond to one row in the table, but a group of rows, that are located in the same freezer, same shelf, same rack and same box. So the PK woun't work here b/c I don't have one in the first place... But the thing with referencing other pages items might do the trick to bring down the number of other values I pass on.
    Another thought with the example:
    - visit P210 with P210_EXTERNAL_ID = 1234
    --- branch to P215 (P215_EXTERNAL_ID is empty)
    - revisit P210 with P210_EXTERNAL_ID = 5
    --- branch to P215 (P215_EXTERNAL_ID = 1234)
    - revisit P210 with P210_EXTERNAL_ID = 66
    --- branch to P215 (P215_EXTERNAL_ID = 5)
    When I click on the edit button on P210 to go to P215, is the page P210 not submitted?
    If that's the case, I understand why P210_EXTERNAL_ID in Session State has the last, but not the current value.... Since I branche off that page before submit, the items current values are not written to session state.
    Anyone any thoughts to that???
    -David-

  • Table to see the link between line items on bank statement to customer invo

    table to see the link between line items on bank statement to customer invoices

    Hi,
    There is no link from VBRP to BSEG directly.
    This is because the data in BSEG is posted to various accounts and the VBRP is usually for a Sales Order or Delivery.
    However there is a link from BKPF to VBRK and VBRK is linked to VBRP.
    BKPF-AWKEY has the the Invoice number VBRK-VBELN
    Hope this helps.
    regards,
    Advait

  • Is the Clustra system used to store session state?

    Is the Clustra system used to store session state? Is it accessible to
    users? Do multiple shared memories or disk both ensure availability?

    Yes, HADB (Clustra) is used to store session state. HADB is not
    directly accessible to users. HADB runs on multiple nodes and achieves
    high availability by replicating data across the nodes.

  • How to split a condition value across line items with varying percentages?

    Hello, can anyone suggest how this can be resolved.  This is the scenario. 
    My client wants to be able to determine pricing for a sales document with a wide range of conditions.  One particular condition contributes to the total price of each sales item by determining a percentage of the total amount.  The percentage used isn't a fixed percentage but it is determined as follows:  Lets say I have 3 sales items in the document  with prices 200, 300 and 500 respectively.  The total amount for the condition (which is known) then has to be shared amongst these 3 items according to the price of each item.  How can this be achieved?  Any ideas?

    You will have to define a Header Condition which will apply to all the Items.
    Then, You will have to develop a Z- Requirement in T-Code - VOFM with help your ABAPer.
    Then assign this Routine in Alternative formula for condition base value column in your Pricing Procedure.
    The ABAP code in the Requirement will read the Basic Price of all the Items & then proportionately divide the value of said Condition line-item wise.
    Hope this clarifies.
    Thanks,
    Jignesh Mehta

  • The value of data_block item can be stored in a variable?

    Hi all I have master and detail form
    i need to insert data by scanning the barcode
    and i need to select a form_item dynamically please guide how
    problum desc:-
    My Table desc is like this
    SQL> desc gin_detail1;
    Name                                      Null?    Type
    ID                                                 NUMBER
    SALE_ORDER_ID                                      VARCHAR2(150)
    PROD_ID                                            VARCHAR2(20)
    PROD_NAME                                          VARCHAR2(100)
    COLOR                                              VARCHAR2(20)
    XS                                                 NUMBER
    S                                                  NUMBER
    M                                                  NUMBER
    L                                                  NUMBER
    XL                                                 NUMBER
    PCS                                                NUMBER
    IF    :gin_detail1.barcode = a THEN
    SELECT SALE_ORDER_NO,prod_id,style,color,1 INTO
           :gin_detail1.sale_order_id,:gin_detail1.prod_id,
    :gin_detail1.prod_name,:gin_detail1.color,:gin_detail1.XS from sale_order_barcode1 where barcode=:gin_detail1.barcode;
    end if;i need to change the :gin_detail1.xs dynamically as per barcode
    If BARCODE is 241040713BLACKS then :gin_detail1.XS
    if BARCODE is 241040597BLACKL then :gin_detail1.L
    like these for all the fields
    Please Guide
    Thanks ANd Regards
    Vikas

    Hi Vikas
    i need to select a form_item dynamically u can't
    But u can only assign the value of a form item into a variable then do what ever u want with it...
    if i do recognize ur problem right then use the following..
    > v_value := :form_item;
    what error r u getting from the following select statment ?
    the assign statment should equal the number of the variables or menu items ur trying to assign & MATCH IT as follows
    IF    :gin_detail1.barcode = a THEN
    SELECT SALE_ORDER_NO  ,prod_id,  style,  color,  XS                                                
    INTO  :gin_detail1.sale_order_id,  :gin_detail1.prod_id,  :gin_detail1.prod_name,  :gin_detail1.color,  :gin_detail1.XS
    FROM sale_order_barcode1 where barcode=:gin_detail1.barcode;
    END IF ;so u missed
    XS into :XS besides why u select the value 1 & insert it into :XS ?
    XS
    need to change the :gin_detail1.xs dynamically as per barcode
    If BARCODE is 241040713BLACKS then :gin_detail1.XS
    if BARCODE is 241040597BLACKL then :gin_detail1.L
    like these for all the fields
    DECLARE
    v_result1    NUMBER ;
    v_result2     NUMBER ;
    BEGIN
    If  :gin_detail1.BARCODE = 241040713BLACKS THEN
    v_result1 := :gin_detail1.XS ;
    elsif :gin_detail1.BARCODE is 241040597BLACKL THEN
    v_result2  :=  :gin_detail1.L;
    and so on...
    END;
    Note : u have 2 compare & assign in the if statment within the same datatype otherwise u have to use to_char() or whatever...
    Hope i could get ur point & could my answer help u ...
    otherwise pls send the error u r getting and re-state the problem u mean exactly.
    Regards,
    Abdetu...
    Edited by: Abdetu on Jan 17, 2011 5:13 AM

  • Need help with session state/item refresh

    I have an application that allows users to record productivity information for our employees. There are different types of work they have to do, so the form is in header/multiple-detail form and uses collections to handle all processing. In the header portion are the fields that record the time of work. Though this is stored in the database as a single field for start of shift and single field for end of shift, in the entry it is split up into 9 fields: 3 for day, month, and year, and three more each for start hours, start minutes, AM/PM, end hours, end minutes, and AM/PM, which I then concatenate to get the dates to store. The update part works fine. When I go in to display each of these, I have to use an SQL query to retrieve only that section of the time.
    The problem I am having is that if the user pulls up several timecards to edit them, it retains these time values from the previous timecard, and due to the way the collections refresh, I can't seem to get either item session state parameter (Only when Null/Always from Source) to achieve the desired result. If I use the Only When Null option, I retain the values from the previous timecard. If I use the Always from Source, the user can't update any of the time-related input.
    Can anyone suggest a solution? I've tried a session state process that fires on entry to clear those items and ran into the same problem as using the Always From Source option. There has got to be a way to handle this, but it's got me stumped and my users are clamoring for a fix.
    Page initial load
    A. Before Header process populates job collection and other collection (not header info), which comes straight from DB table.
    B. Data displays for Header (from table) and two detail sections (from collections)
    User presses Submit to save changes
    1. On Submit Before Processing: updates job and other collections (to preserve changes in case validation fails)
    2. Validations check to make sure job codes are valid, date is valid, employee is valid, etc.
    3. On Submit After Processing: Writes changes to header from input form, writes changes to job and other from collections to appropriate DB tables
    I also have two On Submit After Processing processes to add blank lines - one for each collection. These are triggered via buttons.

    Blair:
    Does creating a 'before header' process to populate these fields make a difference ? The sql could be something like
    select TO_CHAR(TC_START_TIME,'HH') into :P1115_TIME_IN_HH from TC where TC_ID = :P1115_TC_ID;You should set the 'Source Used' back to 'Only when current value in session is null' and the 'Source Type' to 'Static Assignment(....)' and clear out the 'Source value or expression' field.
    varad

Maybe you are looking for

  • Multiple devices with one iTunes account

    Want to use my Desk Mac as the repository of ALL iTunes items. Have a MacBook Pro & MacBook Air (to use on the go). Everything is fully backed-up. When I try to clean up my MacBooks and I delete an iTunes movie from them, will it be removed forever f

  • When open link in safari images are dark

    This started after a recent Update. Not sure what causes it or how to fix it. Can someone steer me on the correct path? Thanks! I have MacBook Pro retina running OS X 10.8.4

  • Limiting Rows

    Hi, I need to display only first 10 rows. How to do that please help. -Amit

  • Clean sweep a calendar

    Dear beekeepers, the attempt to import data into an second, alternative calendar in a personal workspace using outlook resulted in the data getting imported into the default calendar of the workspace (probably a bug?). as thousands of ics-entries wer

  • Installing Fireworks error

    For some reason I cannot re-install fireworks on my computer.  It gives me this error: Exit Code: 7 -------------------------------------- Summary -------------------------------------- - 1 fatal error(s), 3 error(s), 6 warning(s) WARNING: Warning: {