How to retain value in LoV item in Tabular Form, after Page Refresh

Hi,
I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
I looked in view source of my page, this item is referred as f03.
So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
Please help.
Thanks and Regards,
Ravi.

Hi Rave,
You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
Regards
Michael
Edited by: MKii on Jun 4, 2009 10:13 AM

Similar Messages

  • How to assign values to columns in a tabular form

    hello,
    my tabular form allows insert on a table.
    some of the fiels in that table are not null and are hidden from the user.
    before submitting a new row the hidden columns needs to get their values
    from a database function.
    is there a way to do it in a tabular form? and how?
    Thanks,
    Iris.

    HI,
    depends you can use a bunch of different approach, however if you want to use tabular forms note that if you change the qry on wich is based the tforms usually you get an error (if you read around the forum this is because the MULTI PROCESS ROW is built on a table the time you use the wizard).
    If you need this function to 'work' with null value go to
    Tabular Form Element
    --> pl/sql expression or function and call your function in the db.
    Under my opinion if you want to have more control build a tabular form of yours and write your DELETE / UPDATE / INSERT statement and build your tabular form / report using the APEX_ITEM synthax.
    You can use as well a checkbox and loop to build your multirow process (that conditionally process the checked item).
    And if you have a common rules for a specific table i suggest you to manage these rules directly on the that table using triggers.
    hope it helps

  • How to change Number of Rows in a Tabular Form report page?

    Hi
    I am working with a tabular form to create an attendance sheet for a school using Oracle Application Express 3.0.1.00.12. Whenever I change the Number of Rows value from 10 to 1000 in the Layout and Pagination section of the report page, the SUBMIT button is not working and it is unable to process at that stage. How can I change the valu so that I can see all the rows in a single page, make changes to all rows and submit the page rightaway. Please help me.
    Thanks,
    Chak
    Edited by: user520137 on Jan 12, 2010 12:04 PM

    Hi
    I am working with a tabular form to create an attendance sheet for a school using Oracle Application Express 3.0.1.00.12. Whenever I change the Number of Rows value from 10 to 1000 in the Layout and Pagination section of the report page, the SUBMIT button is not working and it is unable to process at that stage. How can I change the valu so that I can see all the rows in a single page, make changes to all rows and submit the page rightaway. Please help me.
    Thanks,
    Chak
    Edited by: user520137 on Jan 12, 2010 12:04 PM

  • How to refresh page after selecting value from LOV item , in a tabular form

    Hi ,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, couple of issues here.
    1.
    2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
    2.
    How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
    Please help here. Would be really appreciated.
    Thanks and Regards,
    Rave.

    Thanks Ben and Dan for your responses.
    Ben, your solution helped me with refresh of page, as page got submitted.
    This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
    Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
    I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
    Thanks and Regards,
    Ravi.

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • How to get Value of a item of first record when current record is second

    How to get Value of a item of first record when current record is second in Form6i ?
    get_item_instance_property dose not allow to get value.

    Gerd,
    You're right, there are several other triggers that must be coded, but I was responding to Steve's statement about Inserting or deleting records from the multi-record block. For the record, I use the following to manage a Record Group:
    * When-New-Block-Instance - Initialize the RG
    * block Post-Query - populate the RG
    * When-Create-Record - add new record to RG
    * When-Remove-Record - remove record from RG
    * block When-New-Item-Instance - capture previous value of the item or row
    * When-Validate-Item - Item specific Insert, Update, Delete of values in the RG
    There are a few other places as well, but these are the minimum. It might seem like a lot of code, but then again, I don't use this solution for every multi-line block. Like all tools, you use the right tool for the job. :-)
    Craig...

  • How can i create Header and items in SMART FORM

    Hi Experts,
    How can i create Header and items in SMART FORM in the below driver program.
    _Header fields_
    SELECT BUKRS BUDAT GJAHR CPUDT USNAM BLART BELNR XBLNR BLDAT WAERS KURSF
      FROM BKPF INTO CORRESPONDING FIELDS OF TABLE IT_HEAD WHERE BELNR IN S_BELNR AND BUDAT IN S_BUDAT AND GJAHR EQ S_GJAHR AND BUKRS EQ S_BUKRS AND CPUDT IN S_CPUDT AND USNAM IN S_USNAM.
    Item firlds
    SELECT BUZEI BSCHL SGTXT SHKZG KOSTL PRCTR WERKS WRBTR HKONT KUNNR ZFBDT FROM BSEG INTO CORRESPONDING FIELDS OF TABLE IT_ITEM
      FOR ALL ENTRIES IN  IT_HEAD WHERE BELNR = IT_HEAD-BELNR AND GJAHR = IT_HEAD-GJAHR AND BUKRS = IT_HEAD-BUKRS.
      LOOP AT IT_HEAD.
    MOVE-CORRESPONDING IT_HEAD TO FINAL.
        LOOP AT IT_ITEM
        WHERE BELNR = IT_HEAD-BELNR.
          MOVE-CORRESPONDING IT_ITEM TO FINAL.
    ENDLOOP.
    ENDLOOP.
    Regards,
    Sreedhar.

    for these internal tables you can pass some Identifier  for both tables.
    in header file : IT_HEAD
    IDENT   type  char10,
    BUKRS type BUKRS,
    BUDAT type BUDAT,  like
    in header file :IT_ITEM
    IDENT   type  char10,
    BUZEI type BUZEI,
    BSCHL type BSCHL,  like  in item data
    you need to fille the  IDENT value like
    IT_HEAD:
    10 -- DE01-- 10.20.2009
    20 -- CH01-- 10.20.2009
    IT_ITEM
    10 -- 1234-- KSCHL value  like all records
    10 -- 2345-- KSCHL value  like all records
    10 -- 6783-- KSCHL value  like all records
    20 -- 3452-- 1KSCHL value  like all records
    20 -- 4532-- KSCHL value  like all records
    20 -- 4535-- KSCHL value  like all records
    in smartform you need to create 2 tables.
    or create
    LOOP  with IT_HEAD
    table with IT_HEAD
    table with IT_ITEM
    and put the condition for each table in  DATA tab where condtion  like IDENT = IT_HEAD-IDENT
    in item table also INDENT = IT_ITEM-INDENT..

  • How to populate values in List Box in Adobe form

    Hi,
    How to populate values in List box in adobe forms?
    Thanks
    RB

    if you want to display a fixed values in the dropdown you can use list box ui and can specify values there
    or if u want to display values from the context node of the webdynpro
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    with regards
    shanto aloor

  • Disable Item in tabular form in Apex

    I would like to disable items in tabular forms.
    If line status is Draft then all items of tabular form are enable other disable.
    How to write this condition and where should i write because in dynamic action tabular Item is not showing...
    Edited by: 926257 on Apr 9, 2012 12:53 AM

    hi
    926257
    you can do that using java script
    these links may helpful to you
    <a href>Tabular form: how to dynamically enable/disable columns and rows
    <a href>Tabular Form: Enable/Disable a field based on the status of a check box
    <a href>http://www.codetoad.com/javascript/enable_disable_form_element.asp</a>
    <a href>http://www.tizag.com/javascriptT/javascript-getelementbyid.php</a>
    thanks and regards
    pavan

  • Dynamic LOV in a Tabular Form

    Can somebody please tell me if there is a easy way to code a
    dynamic LOV in a Tabular Form?
    I need the ability to access a column value in the table row, to use in the WHERE clause of LOV query for another column in the row? Seems
    like that should be easy , but not finding an answer.
    Thanks for any help.
    Carol

    Hi Carol,
    You can add the select list's definition directly into your SQL statement using APEX_ITEM.SELECT_LIST_FROM_QUERY - see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDIDGDA]
    If you first run your page with your existing select list on it, then do a View Source and look for the select list, you will see a "name" attribute of something like "f01" or "f02" etc. Make a note of the number part of this.
    Then update your SQL statement to include the above and using the number you noted as the Index value (say, 4):
    SELECT EMPNO,
    ENAME,
    DEPTNO,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(4,MGR,'SELECT ENAME d, EMPNO r FROM EMP WHERE DEPTNO = ' || DEPTNO || ' AND EMPNO &lt;&gt; ' || EMPNO) MGR
    FROM EMPThat would give you a select list of employees in the same department as the current employee (excluding that employee themself)
    Andy

  • How to create multiple Tree Type Region In Tabular Form ?

    Dear Friends,
    i have to design tabular form to Distribute User Rioght to emp to access application
    eg if i have Three module in application
    1.Administration
    2.Attendance
    3.Accounts
    Module
    1 Administration have 5 Pages A,B,C,D,E.
    Module
    2 Attendance HAVE 4 Pages F,G,H,I
    Module
    3 Accounts HAVE 7 Pages J,K,L,M,N,O,P
    I need these three module divided into three section in tabular form as a tree Type like
    Module 1 Tree Open in Tabular Form like
    - (Tree Mark Open )
    =======================================================
    PAGE_ID-------------SUBPAGE_ID-------VIEW-------------------MODIFY-------------------CREATE----------------------------TABLE COLUMN NAME
    ========================================================          
    Administration-----------A------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------B------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------C------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------D------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------E------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    - (Tree Mark Open )
    Module 2 Tree Open in Tabular Form like
    Attendance-----------F------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Attendance-----------G------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Attendance-----------H------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Attendance-----------I------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    - (Tree Mark Open )
    Module 3 Tree Open in Tabular Form like
    Accounts-------------J------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------K------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------L------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------M------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------N------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------O------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------P------------------CHECK bOX------------CHECK BOX-------------CHECK BOXi need divided these three Module in Tabular form in three region as tree.
    Table APPLICATION_PAGE_DETAILS
    ID                   NUMBER
    PAGE_ID             NUMBER
    SUB_PAGE_ID          NUMBER
    ========================
    TABLE USER_RIGHT
    ======================
    ID                  NUMBER
    EMP_ID            NUMBER
    PAGE_ID            NUMBER
    SUB_PAGE_ID        NUMBER
    VIEW                    VARCHAR2(1)
    MODIFY                VARCHAR2(1)
    CREATE                VARCHAR2(1)How to create multiple Tree Type Region In Tabular Form ?
    How can i do this ?
    Thanks
    Edited by: Vedant on Oct 4, 2011 3:21 AM
    Edited by: Vedant on Oct 4, 2011 9:09 PM
    Edited by: Vedant on Oct 13, 2011 8:57 PM

    Well think of it I believe the scenario is too bird viewed hence the solution can't be exact.
    But thinking of a possible solution every time a child operation fails have a catch block where you you go back to system if the parent needs to be deleted if yes, call Delete Method on the parent.
    Note: Make sure that the decision on whether or not the parent record needs to be deleted will depends on the question "Does Parent Record already has several other children associated to it or not"
    Hope this clarifies.
    Regards,
    Messer

  • How to keep values in text items.

    Hi,
    I have created a tabular form with report.out of this form Two items are converted to LOV'S(TEAM_LOV,TYPE_LOV) i.e TEAM_LOV for P4_TEAM item and TYPE_LOV for P4_TYPE item.
    TEAM_LOV := select team d, team_id r from teams;
    TYPE_LOV := select type d , type_id r from types where team_id=:P4_TEAM;
    1. For P4_TEAM item is select list with redirect .
    2. For P4_TYPE item is select list.
    Problem:=
    When i create a new record and enter new values in the text items above the P4_TEAM item and then selects the list of values from P4_TEAM then the values from the above text items gets clears . How to prevent the clearing the item values.
    If i use select list with submit. then i have validation on two items so i gives validation errors.
    Help !
    Thanks,
    Ramesh

    Hi Ramesh,
    I had the same problems and solved it with AJAX. then only the second list is updated and no submit or redirect is needed.
    Otherwise you could set a condition for your validation, i.e. only if item is not null.
    chrissy

  • How to default values in LOV

    Hi,
    I have created a page in which I have two different LOVs. My requirement is to default some value in the First LOV i.e. "ALL"
    and the second LOV which is dependent on the first LOV will gets populated with the values based on the first one on the page load itself.
    Both the LOVs have "autoSubmit" and "partialTriggers"realtion between them.
    The problem I am facing is that I am able to set some default value to the first LOV with value as "ALL" by using "setSubmiitedValue" on LOV from backing bean on the page load but the second LOV popup (dependent LOV) is coming blank on page load.
    But if i select same value "ALL" form the first LOV popup after page load then second LOV popup gets populated with values based on first LOV
    Please provide some urgent help that how to default any LOV with some value and based on that second LOV gets populated on the page load itself.
    Thanks in Advance
    Kanika Dhamija

    Hi,
    Can you please explain a bit more the ' ... is to default some value.. ' part?
    When exactly do you want to set a default Value?
    Depending on your case, there is always the declarative way to consider through BC
    some approaches on different cases:
    How to set a default value in an ADF table when adding a new row
    http://www.youtube.com/watch?v=9WQ0SDVVWtE
    http://adfcodebits.blogspot.co.uk/2010/04/bit-13-overriding-create-to-set-default.html
    cascading LOVs
    http://andrejusb.blogspot.co.uk/2012/11/cascading-lovs-in-jdeveloper-111230.html
    hope this helps
    Regards,
    Dimitrios.

  • How to set value from LOV only as a default reference not enforce validate check?

    In jdev 11.1.2.3,
    By creating  List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value.
    If I input a value which is not in the lookup table, then errors will raised.
    Now I hope I can get default value from LOV, and can also input some new value (and this new value can be insert into the lookup table by a database trigger) for the attribute/field without failure to pass the check.
    Any one can help?
    Thanks!

    Hi, Arun
    Your suggestion let me get to know how to create a new record in the customeActions facet of inputComboBoxListOfValues, which I donot know before. It's great. and thank you very much.
    However, my current issue is a different requirement, let me describe it clearly as:
    I have a formlayout to input a field value which can be from a lookup table, or if this value is not in the lookup table then it can also be input without raising value validation check failure.and this new value can be added to the lookup table at the same time.
    for example, there is a FK attribute deptno in the EMP table, in a form for editing EMP attributes, user can input deptno value which is already in the DEPT lookup table by selecting from a LOV. also can input some new value which cannot be selected from the LOV, and this new deptno value will be posted to database both in EMP and DEPT table.
    The issue is, after create a LOV for deptno attribute in EMP VO, there will be a enforced value validation check, so new values cannot be input in EMP unless it is input into DEPT first.
    (http://docs.oracle.com/cd/E37975_01/web.111240/e16182/lists.htm#BABBJFBB)
    List of values are designed to return valid values only. As a result, validation rules defined on data source view object attributes will be suppressed.
    My question is: how to disable this enforced value validation for a LOV-enabled field?
    (There is other means to ensure user will input valid value for this field, for example ask him to double input.)
    Thanks again!
    bao

  • How to change value of an item through another item???

    Hello guys,
    I have couple of items in my form page, now depending on one item, I wanna change(from disable to enable or vice versa) the values of all other items in that form....
    I thnk for this javascript is required...... but i new bee so if anybody can help me out with these.........
    how to do that????? does anybody has good example or any link.....
    plz help me with this issue.......... appreciated
    thxs
    regards,
    gk

    hi folks,
    I am trying the same but still didnt found any sucess..... my scenario is like this:-
    I have one radio button(P1_DETAILS_YN) and another as text box(P1_NAME), I have written below code under HTML Header(Edit page attribute)
    <script language="javascript">
    function checkSelect('P1_DETAILS_YN', 'P1_NAME')
    if (document.getElementById('P1_DETAILS_YN').value=='Y')
    {document.getElementById('P1_NAME').disable=true;}
    else
    {document.getElementById('P1_NAME').disable=false;}
    </script>
    and following under HTML Form Elements Attributes of P1_DETAILS_YN as:-
    onchange="checkSelect(this.value, html_GetElement('P1_NAME))"
    other than this do I miss anything else guys................ if so than let me know ASAP
    thxs
    regards,
    gk

Maybe you are looking for

  • Can not open, view inbox in godaddy web mail

    I have been using godaddy webmail for awhile - one day I tried to view my emails and I could not. I can't open them or reply to them or even highlight "inbox". I have avg - they disabled the firewall and viris protection but the problem prosisted. I

  • .ico icon files not displaying in Bookmarks sidebar, etc.?

    Do .ico files for webpages work on Macs? thanks

  • New Archived log entry in alert log after cpu patch 19 applied

    Has anyone applied October critical patch for 11.1.0.7? I applied the cpu Patch 19 (8892977) for 11.1.0.7 on several windows2008 servers and after the patch the alert log displays a new message everytime a redo log transfers. This only happens on ser

  • Replacement of FM-COM_SE_SPOOL_DISPLAY

    Hello Experts, Currently we are using the FM-COM_SE_SPOOL_DISPLAY for displaying preview of a spool where we pass spool number to the FM. As of now 10 pages are getting displayed in the preview. User wants to extend it up to 30 or else some dynamic v

  • Upgraded OS - all music disappeared

    I upgraded to OS 10.2.0.424 and restarted this morning, and my phone has lost all my music (although irritatingly the "Recently Played" tile shows the artwork of the albums I was listening to before the upgrade). In the folder there is apparently "No