Tabular form in APEX 4.0

Hi everyone,
We use Apex 4.0.
In a tabular form, we have two fields that the second of them depend on the first.
For example in the case of a departement and employees list.
Is it possible to acheive that when we select a value in the first list the second one depend on the first ?
How we can reference the first list but we don't have names ?
In a form region for example we have element name to relate to not in a tabular form
Is it necessary to use Collection for this case?
Thanks in advance. Bye.

See: https://apex.oracle.com/pls/apex/f?p=39006:16:
http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117

Similar Messages

  • Query for create manual tabular form using apex collection add row button functionality

    Hello everyone
    My requirement is i created a tabular form manually using apex collection but if i click on add row button then previously selected data refreshed and added new row in this form it is fine.but i don't want to refreshed previously selected data and click on add row button then add new row .how it is possible? plz help
    Thanks & Regards,
    Ujwala

    Ujwala
    Instead of starting a new thread with the same question as Query for create manual tabular form using apex collection add row button functionality.
    Could you answer the question about what you see while debug the javascript code.
    If you don't understand the question or have trouble debug javascript let us know.
    Nicolette

  • Null Validation in Tabular Form in APEX 4.2.2

    Hi to all respected Gurus of this Forum!
    Recently downloaded APEX 4.2.2. As we know that this version has some improved features and one is the best is i.e. *"Validation on Tabular Form".*
    For test purpose I succeeded to apply validation on field of tabular form and I am not allowed to "SUBMIT" data as per Validation Rule.
    But now, I want to customize that validation as per below logic.
    If required field is null than a message-box should appear with two buttons , as under:
    Blank field not allowed. Do you really want to submit? (Buttons should be = YES NO)
    If user press "YES" then validation should be false and record should be saved
    AND
    If user press "NO" then no data should be submitted/inserted as per validation logic.
    Please help. Your as usual cooperation is highly appreciated in advance.
    Regards
    Muhammad Uzair Awan
    ORACLE APEX Developer
    Pakistan

    Hello Sabine,
    >> I read about enhanced validation in 4.1 and would love to get rid of g_f-programming.
    The major “trick” is to associate the validation/process with a Tabular Form. On the first screen of both wizards, the first field is Tabular Form. You must select the tabular form on your page (currently there can be only one. In future versions this will change).
    Another factor that might influence the behavior of Tabular Form validation/process is the new attribute of Execution Scope. Unfortunately, you must enter Edit mode to gain access to this attribute (i.e., it can’t be set directly from the Tabular Form create wizard). Set it according to your need.
    The rest is very simple. You should treat your Tabular Form as a simple form, where every column header stands for a form item. The following is a very simple example of validating the SAL column:
    if :SAL < 1500 then
      return 'Sal Value is under 1500';
    else
      return null;
    end if;In this validation I’m using the Function Returning Error Text type.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Query for create manual tabular form using apex collection using item textfield with autocomplete

    can we create a manual tabular form inside item textfield with autocomplete ?
    how it is possible?
    with Apex_item API used for this item.
    i used this code for creat  cascading select list
    select seq_id,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   1,
            p_value                     =>   c001,
            p_query                     =>   'SELECT C001 D
         , C002 R
      FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = ''col1''',
            p_attributes                =>   'style="width:150px" onchange="f__name(this,parseInt(#ROWNUM#));"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f01_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f01_#ROWNUM#',
            p_show_extra                =>   'NO') name,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   2,
            p_value                     =>   c002,
            p_query              =>   ' SELECT null d, null r FROM dual WHERE 1 = 2
            p_attributes                =>   'style="width:150px"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f02_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f02_#ROWNUM#',
            p_show_extra                =>   'NO')name2,
    from apex_collections
    where
    collection_name = 'COLLECTION1'
    It is fine .
    but i want item in tabular form  textfield with autocomplete and remove select list. my requirement is using textfield with autocomplete select a employee name and second item textfield with autocomplete display dependent perticular employee related multiple task.
    how it is created.i have no idea related textfield with autocomplete.Please help me....

    pt_user1
    I understand that the add row button is currently doing a submit.
    To not submit the page you need a dynamic action on the page.
    Does the javascript function addRow do what you want?
    Otherwise have a look at the following two threads Add row in manual tabular form using dynamic action and Accessing Tabular Form & Add Elements to Collection without Page Submit.
    You're process could be something like:
    Add the new values to the collection using the idea's in the second thread and at the same time add the new row.
    And as second action refresh your tabular form.
    If you get stuck set up what you have done on apex.oracle.com using the tables from the demo application.
    Nicolette

  • What's the deal with 'no data found in tabular form' in apex 4.1

    We recently upgraded to 4.1 to resolve some of the issue found in 4.0. I have a form that populates a collection....it had previously worked in earlier versions and now I receive the following error when I try and SAVE.
    any thoughts?
    Contact your application administrator.
    no data found in tabular form

    HI Joel, thanks for getting back to me.
    We recently moved from apex 4.0 to 4.1. I have an application that makes use of collections. All was working in 4.0, but now I am having problems with 4.1. I would be happy to move place application in more convenient spot, but need specific instructions as I am not certain how to do that.
    basically, I have a report region, FAVORITES based on a collection (source listed below):
    SELECT apex_item.checkbox (1,seq_id, 'onclick="highlight_row(this,'
    || seq_id
    ||')"', NULL, ':', 'f01_'
    || LPAD (seq_id, 4, '0') ) delete_checkbox,
    apex_item.hidden(2,seq_id) seq_id,
    apex_item.hidden(3,seq_id),
    apex_item.text_from_LOV(c004,'SPECIES')SPECIES_ITIS,
    apex_item.text_from_LOV(c005,'GRADE')GRADE,
    apex_item.text_from_LOV(c006,'MARKETCODE') MARKET_CATEGORY,
    apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.text(8,c008,5) fav_order,
    apex_item.select_list_from_lov
    (9,
    c009,
    'DISPOSITIONS',
    'style="width:200px;background-color:#FBEC5D; "',
    'YES',
    '0',
    '- Select Disposition -',
    'f09_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) disposition_code
    from apex_collections
    where collection_name = 'C_DEALER_SPECIES_FAV' order by seq_id desc, c008
    The collection appears and I am able to add rows to this collection. The problem is when I SAVE. The following is executed (and again, works fine in 4.0).
    declare
    dispositionCode varchar2(3);
    begin
    delete from frequent_species where permit_id = :G_permit_id;
    for rec in (select c004,c005, c006, c007,c008,c009,:G_permit_id from apex_collections where collection_name = 'C_DEALER_SPECIES_FAV')
    loop
    if rec.c009 = '0' then
    dispositionCode := null;
    else
    dispositionCode := rec.c009;
    end if;
    insert into FREQUENT_SPECIES (species_itis, grade_code, market_code, unit_measure, fav_order, disposition_code,permit_id) values(rec.c004,rec.c005, rec.c006, rec.c007,rec.c008,dispositionCode,:G_permit_id);
    end loop;
    exception when no_data_found then null;
    end;
    I receive the message:
    Contact your application administrator.
    no data found in tabular form
    Return to application.
    Let me know what you think. thanks for your help. Karen

  • 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

  • Reg. DDL in Tabular form in Apex

    Hi,
    I have used a select list in Tabular form report. My select list is retrieving only 21 rows.
    But the performance is very slow. Please help me to increase the speed of processing.
    Thanks,
    Madhu

    Hello Madhu,
    Can you post the query of your select list - and of your tabular form (or report). Why do you assume the problem is in the select lst? What happens to the performance if you omit the select list?
    Regards,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Adding new row at top of tabular form In APEX 4.0

    I havea tabular form and when addrow() it is adding at bottom of the existing rows. Is there a way I can add new row at the top of the rows?
    Thanks.
    Edited by: Badari on Oct 19, 2011 12:07 PM

    Hi Raj,
    I'm trying to implement your solution to add the empty row of a tabular report to the top of the page but I can't get it to work. I've identified two errors in your code, namely
    1) semi-colon after mytable.moveRow(mytable.rows.length-2,1) is missing
    2) You say to use "ABC_REPORT" as the region id but you use "report_ABC_REPORT" in the code.
    I've fixed these but still I cannot get it to work.
    Could you check the code again and see if there are any other errors that we may have missed.
    thanks in advance
    PaulP
    <script language="JavaScript" type="text/javascript">
    function addTop()
      addRow();
      var mytable=document.getElementById("report_ABC_REPORT");
      mytable.moveRow(mytable.rows.length-2,1) // depending on the report template selected use either length-2 or length-1
    </script>

  • Apex 3.2 Tabular form - dynamic selection based on prev selection

    Hi guys,
    I am using apex 3.2. I am having difficulty in setting up a tabular form which provides an option to record information in other columns based on a value selected in the drop down.Here is an example
    I have a table product. All the products are added using a tabular form by selecting type from a drop down list.
    This allows the user to add multiple products without having to press save each time.
    e.g.
    product | type
    monopoly | game
    vase | home
    coffee | food
    cards | game
    Depending on the product type, I want the user to be able to multi-select other options using checkboxes based on the option selected.
    So for example if they add a product of type food, it should give additional options like beverage, cereal etc. If they select game, then they should get other options like for age_groups 10-12; 12-16; 18 and over;
    Is it posisble to do this on a tabular form in apex 3.2?
    If yes, please can someone help.
    Thanks
    Sam

    Closed

  • Apex, Tabular forms and Nested Tables := Headache

    Hi All,
    I'm constructing an Apex aplication for Performance Reviewing staff and I have need of nested tables within each line item for ongoing comments during the year, the headings of which are drawn from another table, based on a template for which ones are to be used at any given time.
    I'd like to be able to use a tabular form to draw out the history of comments at any given time and modify them however I'm at a complete loss as to how to get this working with a tabular form in Apex. If anyone could point me at some good documentation on the subject or even suggest a better method to get this done I'd be very grateful.
    Thanks!

    Hi,
    Take a look at this article:
    http://www.oracle-base.com/articles/misc/ObjectViewsAndNestedTables.php
    First, create a view as described on your nested and other table(s), with 'Instead Of' triggers handling the DML. Next create the tabular form based on the view. You'll find many posts in the forum regarding building a tablular form based on a view.
    Paul Brookes.

  • LOV in tabular form-Apex 4.0

    Hi
    I am creating a wizard based tabular form in Apex 4.0 and my scenario is like
    I have a deptno column in my form and i want the employees for that particular dept in the ename select list.
    I know that it can be done with manual tabular form. But since i am using a wizard based tabular form, is it possible for achieving this scenario.
    Thanks.
    Divya

    Hi Vee,
    I have tried your solution. I have replaced the column in my SQL with the apex_item version of the LOV. For showing the column correctly in the Grid I have to set the column to a "standard report column".
    But Now it is now the edit flag is gone and it is not a updatable column anymore. When I push the Add button I cannot insert a value for the column.
    How can I define the column as editable so the standard procedures for updating and inserting the column are working again.
    Regards,
    Fred.

  • Dynamic Manual Tabular form

    Hi friends,
    I have been working on a timesheet application for which i need to create a manual tabular form in apex 4.1. I created a page with 3 items based on whose values the form should be generated. I created a report region in the page with the source code as
    DECLARE
    v_query varchar2(10000);
    BEGIN
    IF :P7_RELEASE_ID is not null THEN
    v_query := 'SELECT b.act_code activities,
    apex_item.text (1, a.ts_wd1, 10, 10) monday,
    apex_item.text (2, a.ts_wd2, 10, 10) tuesday,
    apex_item.text (3, a.ts_wd3, 10, 10) wednesday,
    apex_item.text (4, a.ts_wd4, 10, 10) thursday,
    apex_item.text (5, a.ts_wd5, 10, 10) friday,
    apex_item.text (6, a.ts_wd6, 10, 10) saturday,
    apex_item.text (7, a.ts_wd7, 10, 10) sunday,
    apex_item.text (8, a.ts_remarks, 70, 128) remarks
    from tb_opti_emp_ts a, tb_opmi_proj_act_map b
    where a.proj_ref=b.proj_ref= '||:P7_PROJ_REF||' and a.rel_id=b.rel_id= '||:P7_RELEASE_ID||' and a.emp_id= '||:P7_EMPLOYEE;
    ELSE
    v_query := 'SELECT 1 FROM dual WHERE 1=0';
    END IF;
    return(v_query);
    END;
    I have checked the option 'Use Generic Column Names (parse query at runtime only)' under source and the type is SQL query(pl/sql function body returning sql query)
    in this the 3 page items are P7_PROJ_REF,P7_RELEASE_ID and P7_EMPLOYEE.
    Now i have created a button which unconditionally branches to the same page and submits the page so on clicking it the data should be generated. I am getting the 'no data found' when the page items are blank but when i am passing legit data in the items(btw, all three are pop-up LOV's), i am getting an error
    failed to parse SQL query:
    ORA-00933: SQL command not properly ended.
    Please I have been working for hours but not getting the solution...
    Anyone with solution plz.............

    Put your actual query in the report region SQL Query box, Specifying SQL Query as opposed to Function Returning SQl Query
    As follows:
    SELECT b.act_code activities,
    apex_item.text (1, a.ts_wd1, 10, 10) monday,
    apex_item.text (2, a.ts_wd2, 10, 10) tuesday,
    apex_item.text (3, a.ts_wd3, 10, 10) wednesday,
    apex_item.text (4, a.ts_wd4, 10, 10) thursday,
    apex_item.text (5, a.ts_wd5, 10, 10) friday,
    apex_item.text (6, a.ts_wd6, 10, 10) saturday,
    apex_item.text (7, a.ts_wd7, 10, 10) sunday,
    apex_item.text (8, a.ts_remarks, 70, 128) remarks
    from tb_opti_emp_ts a, tb_opmi_proj_act_map b
    where a.proj_ref=b.proj_ref= :P7_PROJ_REF and a.rel_id=b.rel_id= :P7_RELEASE_ID  and a.emp_id= :P7_EMPLOYEE;In the conditions for the report region to display specify ITEM NOT NULL and P7_RELEASE_ID (without the colon) in the Expression 1 box

  • Calculated non-base table field in a tabular form

    I am struggling with creating a non-base table calculated field in a tabular form in ApEx 3.1
    Can you point me in the right direction
    I thought this would be fairly easy to do, but I cant work out how to do it
    Requirements
    1) Tabular Form based on a table with QTY and PRICE columns
    2) TOTAL is a non-base table field, based on QTY * PRICE
    3) If the Qty or Price changes, the TOTAL should be re-calculated
    Example
    QTY   PRICE  TOTAL
    ===    =====  =====
    3       5          15
    10      50         500
    20      3           60
    Environment
    ApEx 3.1, Oracle 10 and Oracle 11 databases
    I recommended to upgrade to a newer version of ApEx but the request was rejected so Im stuck with 3.1

    Thanks, but its not the solution that I am after
    I am looking for a solution that will ...
           1) not require the calculated value TOTAL to be stored in the table
    and 2) re-calculate the TOTAL when I modify the dependent values (QTY and PRICE) before I save the changes to the database
    I am still looking for a solution if anyone can help

  • How to check the source query of tabular form ....

    Hi All ,
    is there any way to change the source query of tabular form ......
    ya ... i could see it in the source but it is normal sql query ....
    where as to generate the addrow functionality the sql query must be
    Select empno , ADD_ITEM.TEXT(1,empno), ename ,ADD_ITEM.TEXT(2,ename)................
    then where can i find this query .?
    i could see that ADD button is calling ADDROW process and which inreturn calling ADD function ....
    can any one tell me , where to see the code for this ADD function ....
    as i checked it in db ..... it is not there at all.

    You can have a look here for the manual tabular forms:
    http://apex.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Tabular Form with user supplied PK

    apex: 3.2.0.00.27
    Hello,
    I need create a tabular form. The pk will be provided by the user. SO I see that I will need to specify the PK as being a trigger populated PK.
    The pk is USER_ID. The wizard created two columns for user_Id. The first(user_id) is hidden the 2nd user_id_display in read only.
    What do I need to do so the user can provide the value for the PK? I assume I need to change one of these into an updateble field. WHich USER_ID?
    I did that and when I enter a value for the PK(USER_ID) and select submit I get this error:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "AB737A81A58CD50BDE3015EC8BE7350C"., update "BIDIDEV"."TB_BD_USER" set "USER_ID" = :b1, "BID_ADMIN" = :b2, "BID_MATERIAL" = :b3, "UPDATE_FILTER" = :b4, "PROJECT_FILTER" = :b5, "BID_SRADMIN" = :b6, "PROGRAM_COORDINATOR" = :b7IT looks like its trying to do an update instead of an insert.
    As a follow up to this question. I then want to base the value for the PK on an LOV. So do I just change the column type to select list?

    Hi,
    Tabular Forms in APEX do currently not support PKs that can be entered or modified by the user. The PKs are what's used to identify to rows to update. And for new rows, the PK must be NULL in order for APEX to be able to identify the row as a new row. If you need this column to be modifiable by the user, I suggest adding another column to the table as the actual, internal primary key column, have that column be populated by a trigger, and then make your current PK column a regular, editable column. If that's not possible, you will have to remove the generated multi-row update and delete processes, and implement your own PL/SQL based page process to perform the updates, inserts and delete.
    While I believe PK columns should never be editable by the user, and PK values should always be system generated, I realize that not all APEX developers gets to design the underlying database design, nor are they always able to make any modifications to that design. So in APEX 4.1, we'll add the ability to use the internal ROWID for DML processes, which then will allow developers to use PK columns however they wish. Of course APEX 4.1 is still in development, and we don't have a release date yet.
    Regards,
    Marc

Maybe you are looking for

  • How do I create high resolution graphics?

    Hello I'm working on a graphic image, but I'm using a bit of photography in it. My problem is that the .jpg I get from the Save as, is not large enough. If I had to start all over, should I create a larger document or is it alright to enlarge the ima

  • JTable - detecting double click

    i'm trying to detect double click on a row in a JTable and then find out the row number. i can get it to detect the double click with the table disabled but the row always comes back as -1. if i try setEnabled(false) it doesn't detect the double clic

  • Reading RT results in ABAP

    I need to read RT results in the payroll simulation run. I understand that in the simulation run RT table doesn't get updated, but still all the calculations and processing is done. I need to read these values in my ABAP program. Any suggestions on h

  • Can IPhone be set to a disc mode?

    Is there any way to just move some media off the iPhone (as if it were an external disc)? More frequently I am away from my desktop (my laptop isn't big enough to hold ALL my data) and my experience is if I sync it with the partial media on my laptop

  • Help configuring oracle

    I am working with sqlplus on linux to connect to several remote oracle databases. How do I setup my linux machine to allow me to connect to the remote machines databases?