Add button of tabular form a line can open several rows?

Hello

I use apex 4.2

I create tree on page when when I click on any node tabular presentation open and display reports record.

Now, I want, in my article a tabular presentation contain a selection list

My requirement is when I click on any node tabular form open the no. lines on the no equals. entries in the respective selection of each tree node list.

Is it possible?

Help appretiate.

Thank you

GO

Go

I've created a demo by adding several lines slot table using dynamic action form.

Select the number of rows in the selection list and click the button "Add line".

See the information on the page for what I've done.

Nicolette

Tags: Database

Similar Questions

  • I'm unable to deselect specific fields when you set the Reset button in a form.  I can only "select all" or "deselect all". Someone at - it happen?

    I'm unable to deselect specific fields when you set the Reset button in a form.  I can only "select all" or "deselect all". Someone at - it happen?

    Yes, this is a common problem. Use the SPACEBAR to toggle individual mailboxes.

  • tabular form, adding line does not

    Hello

    Since a while I worked with Apex so it is maybe the reason why I am facing problems but...

    Nothing, I created a presentation table out of the box, extras.

    Add lines to the slot table form works not done "next".

    I noticed that no processwere of "applyMRU" was created to "Add line".

    Create it manually attempted WITHOUT success ;-(

    Request Express 4.2.6.00.03 on CROME

    Thanks for any ideas what may be the problem

    / Gunnar

    Change the theme solved the problem

    Thanka a lot of Sunil

    Concerning

    Gunnar

  • You can open several windows in Windows 8?

    How to open multiple windows in Windows 8?

    Hello

    What applications are you talking about? Same good tip: Ctrl + N

    Kind regards.

  • Can simple Question - I do the colors change in tabular form

    Can simple Question - I do the colors change in tabular form.
    How can I change the colors, green, white alternating on tables?

    Doug,

    Here's some javascript that I use for tables/reports of Ray...
    Don't forget to replace "t15" with your model references.

    
    
    
    
    Also, if you go edit the report template > Column Templates > Column Template 1 > You can set the condition to even/odd rows and then add in your own html/css..
    
    
    #COLUMN_VALUE#
    
     -Chris
    
  • How can I set a value of page element to a column of tabular form field when add line button clicked?

    Hello

    I'm new in APEX. I work with APEX 4.2.

    I have a simple form in a page (page no. 3) and I have another region containing a tabular form on the same page.

    P3_EMP_ID is a part of the area of simple form.

    And there is a column field named 'emp_id' tabular.

    If it is possible that

    When I click on the button "add row", field in the column named 'emp_id' in a table will be filled with the value that is available in P3_EMP_ID?

    Pls someone help me.

    Thnks

    Magali

    Yes, it is possible

    simply to > edit in > attribute report > change empno field tabular > attribute in the form >select and set up according to

    default type: point (the name of the application or page element)

    default: P3_EMP_ID

    I hope this helps...

  • If the default tabular form when you add line

    Hi guys,.


    I had a tabular presentation where I need to set a default 1 value in one of the fields that I click on Add a line. I have no idea how to reference the element in a table via JavaScript.

    Despite this, Add a line already button calls a javascript function to add a line, do not think its possible to use javascript here.

    Any suggestions how can I achieve this?

    Thank you very much.

    Can't you just change column attributes > tabular form attributes > type default PL/SQL Expression or a function > as the default * '1' *.

    This should add the value 1 to add when you click line

    You can use JavaScript, but why worry if it's easily achievable

  • Add several lines in tabular form which object to list different shows to all rows

    Hello

    Apex 4.2, oracle 11 g 2

    I have a table on the emp table where when I click on Add button line

    then I get no lines that are stored in the string.

    for this element of the page creation PX_job that return the value of separate employment with two points separate values by the

    for example seller: Analyst: Clerk: Manager: President

    to add several lines to add lines.

    by using the dynamic action

    event: click on

    selection type: button

    Action: run javascript code

    as follows

    var a = $v("PX_job").split(":") // Delimiter is a string
    for (var i = 0; i < a.length; i++)
    {
    
    apex.widget.tabular.addRow();
    
    }
    
    

    This work that well it adds the number ranks equal to 5

    now I'm post job as select list

    now I want to display the list of work in form of tables as row 1 poster list entry, second row entry list second poster... last line shows last entry from list

    but working this column in all the rows by first writing list of projects in the work list

    How to solve this problem.

    Leave.

    Hi, go,

    Yes, you need to replace "myvalue" with the return value of the select list. But even in this case it would be a problem because it would change all the lines.

    In any case, I changed the code to do this:

    apex.widget.tabular.addRow (); Add the line

    var checkboxIndex is apex.jQuery('input[name=f01][value=0]').eq (i) .parent () .parent () .index ();. get the number of the line that was added

    var SelectItem = apex.jQuery('select[name=f04]').eq (checkboxIndex); Use this number to get the selection list

    iOption var = apex.jQuery (SelectItem) .children () .eq (i) .val (); Get the i option value

    apex.jQuery (SelectItem) .val (iOption); Set the value of the option

    I hope it's clear.

    Kind regards

    Joni

  • Button to apply tabular form - can I just update region c. send this page?

    Hi all -
    I have a tabular form of base with a button apply. After the button is clicked the MRU is done properly, but it then triggers a sending of full page. I would rather just refresh the region like nothing else on the page requires a refresh. If I create a dynamic action, I think that I need the pl/sql to do the update and I hope I can find an easier way around this.

    The only action the button options are send page, redirect to a page or the url and "defined by the dynamic action. I'm on request Express 4.1.0.00.32.

    I hope it's something really basic but I have ideas or suggestions,

    John

    Hi John,.

    If you want to stay with the built-in feature in a table, as the process of page MRU, optimistic locking, etc., then you need send a page and the full reload. You can easily navigate the game following lines using partial page refresh and also make sort. But for writing data in the database, you must send the page. Especially if you have extra in the form of validations and related processes. Of course, you could go entirely manual, write your own JavaScript to collect the data from all the tables in table form and submit this via an AJAX request and initiate an update of only the region in table form. But you loose some features in doing so.

    We are looking for in this, addressing a new component to edit grid several rows before us for inclusion in the APEX 5.0:

    http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/Apex-sod-087560.html

    ... However for the moment, I would strongly recommend to stick to submit to full page and reload in this case.

    Kind regards
    Marc

  • Add button work form time to time line

    Hello!
    We have two environments (dev & prod) with 10 gr 2 and APEX 3.2.1.00.12 (only installed and only the installation file)

    We have developed applications on dev and moved to prod,
    and on the prod, it was discovered that - sometimes (not always).
    When you press the button "Add line" on the form of tables.
    a table does not appear new record on the page,
    If the number of records exceeds the number of files allowed to show
    (that is, with maximum 10 records it works fine when you add records from 1 to 10 and cannot add the record 11)
    but - Interestingly - increases the number of lines in the pagination of 1
    (for example "lines 10-20 of 35" becomes "lines 10-20 of 36").

    This tabular form works on dev.

    What is and how do we heal?...

    I remember I had the same problem in earlier versions (3.0 - 3.1), is - this problem known?

    I think that this happens if you have a sort order on the form. The line is added, but on a page (paginated page) that is not currently displayed.

  • APEX: Can we add additional items in tabular form existing

    Hi Experts,

    I built a nice tabular form with all the buttons and whistles.  All goes well until my request for the user to add another

    the point in the form of tables and here's my night Mare, I have this error code

    failed to parse SQL query: ORA-01403: no data found 

    I pinned it down to the process of the ApplyMRU or ApplyMRD; because once I delete these.

    I see the tabular presentation.

    But when I tried to manually recreate the SRM process, with the same criteria, I have the same error code

    Is this a Bug or just the way the behaviour of tabular presentation?

    What should I do to fix the error?

    Please don't tell me that I have to rebuild the tabular presentation.  :-(

    Hi JAS-Oracle,

    JAS-Oracle wrote:

    Hi Experts,

    I built a nice tabular form with all the buttons and whistles.  All goes well until my request for the user to add another

    the point in the form of tables and here's my night Mare, I have this error code

    failed to parse SQL query: ORA-01403: no data found
    

    I pinned it down to the process of the ApplyMRU or ApplyMRD; because once I delete these.

    I see the tabular presentation.

    But when I tried to manually recreate the SRM process, with the same criteria, I have the same error code

    Is this a Bug or just the way the behaviour of tabular presentation?

    What should I do to fix the error?

    Please don't tell me that I have to rebuild the tabular presentation.  :-(

    Here an other elements means another column in the form of tables... Right?

    This column to another is the same table on which you build your tabular presentation.

    If this is the case, then you must add the extra column in your select query and a few changes in the properties of this column, no need to do anything with the process of the MRU.

    for that go to report attributes-> change the newly added column-> slot of the attributes of tabular form

    The Table - name of the schema reference owner

    The Table name - name of the reference table

    Column name of the column in reference

    If this isn't the case then of additional information on the same.

    If the column is in the other table, to check out this blog: manipulate several tables in a tabular form

    or create the sample on the apex.oracle.com, allowing the user to resolve your issue quickly.

    ,

    Hope this helps you

    Kind regards

    Jitendra

  • How can I add radio buttons to my form?

    How can I add radio buttons to my form?

    An update was released today which includes radio and checkbox button groups.

    Please update to the latest version.

    Thank you

    Sanjit

  • How to add a new line at the top of manual tabular form

    I have a manual tabular form. I am trying to add a line at the top of the form, instead of the new line of being displayed at the bottom. any ideas are appreciated.

    Thank you
    Surya

    If you did a manual tabular presentation using a select statement as follows:
    Choose option...


    Union of all the
    Select... of double

    Try to simply reverse the two select:
    Select... of double
    Union of all the
    Choose option...

    I did this in an application, and it works.
    (I've never tried with sorting...)
    Concerning
    Stefano Corradi

  • Remove line in tabular form

    Hi all

    I have a tabular form wizard created, adding a row is easy using the function: AddRow(), is possible that I can remove the line about him?

    Let's say that I added a line and do not send the form, but now I want to delete only the rank of the form, how can I do?

    Apex 4.1
    Oracle 11g R2

    Kind regards
    Tauceef

    There is no standard functionality (API) to remove a line via javascript to my knowledge (similar to addRow()), but you could probably build your own

    for example http://viralpatel.net/blogs/2009/03/dynamically-add-remove-rows-in-html-table-using-javascript.html
    http://www.DaniWeb.com/Web-development/JavaScript-DHTML-AJAX/threads/143193/add-remove-table-row.-JavaScript#post1298269

    And anyway, if there is an empty line when he clicks on submit, the standard functionality of the apex is that this line is ignored. that is, don't try to add a blank line.

    Edit: btw, how do you it would work? Delete a single button Delete button to remove all empty lines - related to the existing? How the difference between deleting the lines vs client-side has actually delete rows in the database? Remove a button on each line? etc.

  • Adding line by submitting the manual tabular form while adding lines

    Hi all

    I'm a newbie in the Apex.

    I created a manual tabular form based on Apex_Collection. In addition, created the buttons ADD, DELETE and APPLY the CHANGES .

    The data below are the steps that I did.

    1 initialize the Collections

    Process: When loading - before header

    Enforcement process: once a Page visit

    Source:

    DECLARE
      l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
      l_bind_names      APEX_APPLICATION_GLOBAL.VC_ARR2;
      l_bind_values     APEX_APPLICATION_GLOBAL.VC_ARR2;
      l_query           VARCHAR2(32767);
    BEGIN
      l_collection_name := 'EMAILDETAILS';
    
      IF apex_collection.collection_exists(l_collection_name)
      THEN
      apex_collection.delete_collection(p_collection_name => l_collection_name);
      END IF;
    
      l_query := '   SELECT cmp_cd, ' --c001 => f01
      || '   email, ' --c002 => f02
      || '   tab_seq_id, '  --c003 => f03
      || '   NULL, ' --c004 => f04
      || '   NULL, ' --c005 => f05
      || '   NULL, ' --c006 => f06
      || '   NULL, ' --c007 => f07
      || '   NULL, ' --c008 => f08
      || '   NULL, ' --c009 => f09
      || '   NULL, ' --c010 => f10
      || '   NULL, ' --c011 => f11
      || '   NULL, ' --c012 => f12
      || '   NULL, ' --c013 => f13
      || '   NULL, ' --c014 => f14
      || '   NULL, ' --c015 => f15
      || '   NULL, ' --c016 => f16
      || '   NULL, ' --c017 => f17
      || '   NULL, ' --c018 => f18
      || '   NULL, ' --c019 => f19
      || '   NULL, ' --c020 => f20
      || '   NULL, ' --c021 => f21
      || '   NULL, ' --c022 => f22
      || '   NULL, ' --c023 => f23
      || '   NULL, ' --c024 => f24
      || '   NULL, ' --c025 => f25
      || '   NULL, ' --c026 => f26
      || '   NULL, ' --c027 => f27
      || '   NULL, ' --c028 => f28
      || '   NULL, ' --c029 => f29
      || '   NULL, ' --c030 => f30
      || '   NULL, ' --c031 => f31
      || '   NULL, ' --c032 => f32
      || '   NULL, ' --c033 => f33
      || '   NULL, ' --c034 => f34
      || '   NULL, ' --c035 => f35
      || '   NULL, ' --c036 => f36
      || '   NULL, ' --c037 => f37
      || '   NULL, ' --c038 => f38
      || '   NULL, ' --c039 => f39
      || '   NULL, ' --c040 => f40
      || '   NULL, ' --c041 => f41
      || '   NULL, ' --c042 => f42
      || '   NULL, ' --c043 => f43
      || '   NULL, ' --c044 => f44
      || '   NULL, ' --c045 => f45
      || '   NULL, ' --c046 => f46
      || '   ''O'', ' --c047 (for record status)
      || '   wwv_flow_item.md5(cmp_cd, email, tab_seq_id) ' --c048 (for optimistic locking)
      --c049 for (not used in collection/reserevered for seq_id array)
      --c050 (not used in collection/reservered for delete checkbox array)
      || ' FROM Cmp_Email '
      || ' WHERE cmp_cd= v(''P9_CMP_CD'') ';
    
      apex_collection.create_collection_from_query_b (
      p_collection_name => l_collection_name,
      p_query           => l_query
      );
    
    
      IF :REQUEST = 'ADD'
      THEN
      APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name);
      END IF;
    
    END;
    

    2. tabular Guide

    Type: SQL query

    Source:

    SELECT apex_item.hidden(4,c047,NULL,'f04_'|| '#ROWNUM#')
      || apex_item.hidden(5,c048,NULL,'f05_'|| '#ROWNUM#')
      || apex_item.hidden(6,seq_id,NULL,'f06_'|| '#ROWNUM#')
      || apex_item.hidden(3,c003,NULL,'f03_'|| '#ROWNUM#')
      || apex_item.hidden(1,c001,NULL,'f01_'|| '#ROWNUM#')
      || apex_item.checkbox(
      7, 
      seq_id,
      NULL,
      CASE 
      WHEN c047 = 'D' THEN seq_id
      END,
      ':',
      'f07_' || '#ROWNUM#'
      ) AS delete_checkbox,
      apex_item.text(
      2,
      c002,
      20,
      50,
      NULL,
      'f02_' || '#ROWNUM#'
      ) AS email_id
    FROM apex_collections
    WHERE collection_name ='EMAILDETAILS'
    ORDER BY c002
    

    The buttons used:

    1. name button: ADD

    Action: send the Page

    2 button name: DELETE

    Action: send the Page

    3 Collection page

    Point process: present now - before the calculations and Validations

    Enforcement process: once a Page visit

    Source:

    DECLARE
    
    
      l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
      l_original_md5    VARCHAR2(32);
      l_latest_md5      VARCHAR2(32);
    
    BEGIN
    
      l_collection_name := 'EMAILDETAILS';
    
      FOR x IN 1 .. apex_application.g_f06.count 
      LOOP         
      IF apex_application.g_f01(x) IS NOT NULL --ID exists, check to see if record was updated
      THEN
      SELECT c048 INTO l_original_md5
      FROM apex_collections
      WHERE collection_name = l_collection_name
      AND seq_id = apex_application.g_f06(x);
    
      l_latest_md5 := wwv_flow_item.md5(
      apex_application.g_f01(x),
      apex_application.g_f02(x),
      apex_application.g_f03(x)
      );
    
      IF l_original_md5 != l_latest_md5 
      THEN
      apex_collection.update_member(
      p_collection_name => l_collection_name,
      p_seq             => apex_application.g_f06(x),
      p_c001            => apex_application.g_f01(x),
      p_c002            => apex_application.g_f02(x),
      p_c003            => apex_application.g_f03(x),
      p_c047            => 'U',
      p_c048            => apex_application.g_f05(x)
      );
      END IF;
      ELSE --ID does not exist, must be new record
      apex_collection.update_member(
      p_collection_name => l_collection_name,
      p_seq             => apex_application.g_f06(x),
      p_c001            => apex_application.g_f01(x),
      p_c002            => apex_application.g_f02(x),
      p_c003            => apex_application.g_f03(x),
      p_c047            => 'N',
      p_c048            => apex_application.g_f05(x)
      );
      END IF;
      END LOOP;
    
      IF :REQUEST = 'DELETE' 
      THEN
      FOR x IN 1 .. apex_application.g_f07.count 
      LOOP
      apex_collection.update_member_attribute(
      p_collection_name => l_collection_name, 
      p_seq             => apex_application.g_f07(x), 
      p_attr_number     => '47', 
      p_attr_value      => 'D'
      );
      END LOOP;
      END IF;
       
    END;
    

    4. table collection

    Point process: submit now - after calculations and Validations

    Enforcement process: once a Page visit

    Source:

    DECLARE
      l_table_md5       VARCHAR2(32);
      l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
      l_del_count       PLS_INTEGER := 0;
      l_upd_count       PLS_INTEGER := 0;
      l_ins_count       PLS_INTEGER := 0;
      l_success_message VARCHAR2(32767);
       
      CURSOR op_lock_check_cur (p_id IN NUMBER)
      IS
      SELECT wwv_flow_item.md5(cmp_cd, email, tab_seq_id)
      FROM Cmp_Email
      WHERE tab_seq_id = op_lock_check_cur.p_id
      FOR UPDATE;
    BEGIN
      l_collection_name := 'EMAILDETAILS';
    
    
      FOR x IN (
      SELECT *
      FROM apex_collections
      WHERE collection_name = l_collection_name
      AND c047 IN ('N','U','D')) 
      LOOP
      IF x.c047 = 'N'
      THEN
      INSERT INTO Cmp_Email(tab_seq_id,cmp_cd,email) 
      VALUES (cmp_email_seq.nextval,
      :P5_CMP_CD_HIDN, 
      x.c002
      );
    
      l_ins_count := l_ins_count + 1;
      ELSIF x.c047 = 'U'
      THEN
      OPEN op_lock_check_cur(x.c003);
      FETCH op_lock_check_cur INTO l_table_md5;
    
    
      IF l_table_md5 != x.c048 
      THEN
      raise_application_error(-20001,'Current version of data in database has changed since user initiated update process.');
      END IF;
    
      UPDATE Cmp_Email
      SET cmp_cd=:P5_CMP_CD_HIDN
      ,email = x.c002
      WHERE CURRENT OF op_lock_check_cur;
    
      CLOSE op_lock_check_cur;
    
      l_upd_count := l_upd_count + 1;
      ELSIF x.c047 = 'D'
      THEN
      DELETE FROM Cmp_Email
      WHERE tab_seq_id = x.c003;
    
      l_del_count := l_del_count + 1;
      END IF;
      END LOOP;
       
      apex_collection.delete_collection(p_collection_name => l_collection_name);
       
      l_success_message :=  
      l_ins_count || ' rows inserted, ' ||
      l_upd_count || ' rows updated, ' ||
      l_del_count || ' rows deleted';
    
      :P5_SUCCESS_MESSAGE:= l_success_message;
       
    END;
    

    When I press the ADD button, a new line must be added to the shape of the table and the data should be saved to the collection. , But currently, the page is being submitted to the database table when adding new lines in the form of tables. The data should only be saved in the database when the user clicks on the APPLY CHANGES button

    I searched the Forum about this issue and have found many discussions which suggested to use JavaScript to add new lines. As I have no knowledge of JavaScript, these solutions have been strange for me.

    Please help me solve this problem.

    Thanks in advance.

    Kind regards

    Aravind

    Hi Christophe,

    Follow the changes mentioned below

    1. remove this your Collections initialize

    IF :REQUEST = 'ADD'
    THEN
      APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name);
    END IF;  
    

    2 condition your collection process initialize

    Modify your process-> conditions-> PLSQL Expressions->: REQUEST IS NULL

    3. create a process more onload I say Add new line to the collection

    DECLARE
        l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
       BEGIN
          l_collection_name := 'EMAILDETAILS';
         IF apex_collection.collection_exists(l_collection_name)
          THEN
              APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name);
              END IF;
       END;
    

    4 condition your Add new line to the collection

    Modify your process-> conditions-> request = Expression1-> ADD (this should be request ADD button)

    5. change your button-> Action addition-> redirect to this application page :-> page no (same page)->-> ADD APPLICATION

    6. check your through the process conditional Page collection

    Modify your process-> conditions-> PLSQL Expressions->: ASK IN ('ADD', 'APPLY_CHANGES', 'DELETE')

    7. check your subject to the process of Collection to Table under condition

    Modify your process-> conditions-> PLSQL Expressions->: ASK IN ('APPLY_CHANGES')

    8. for the whole process to remove the conditions when the button is pressed.

    If the problems persists, create a sample on apex.oracle.com and share the connection information with the name of workspace.

    Hope this helps you,

    Kind regards

    Jitendra

Maybe you are looking for

  • Re: Satellite A660 - 2nd HARD drive instead of the CD/DVD drive

    Hello I found a few solutions to this problem ([solution | http://www.newmodeus.com/shop/index.php?main_page=page&id=7&chapter=0]), but none of them are dedicated to A660. There is no device dedicated to tosiba a660? Thank you.

  • HP Pavilion g6 - 1219sv SSD Upgrade

    I want to improve my laptop (HP Pavilion g6 - 1219sv) with a SSD hard drive. Y at - it suggestions on the model which works perfectly with my system?

  • How to remove an instance of "entering a call sequence" according to the report from teststand

    I use TestStand 4.2 and I use a long sequence with several subsequences.  In these subsequences, I get the results of the tests that I want to put in the report of TestStand.  Currently, for this I need to check her option "result Record' in the Opti

  • Convert bmp to jpg

    I am trying to order photos that were sent to me using Photosmart. Unfortunately they are BMP, and I need to convert them to JPG format. I know I did in it happened but didn't write the instructions. I thought I would remember, wrong again. Help, ple

  • Impossible to install linux on my computer hp laptop G62 - a36SO

    Hello I tried to get linux on my laptop working for the last days... Installation of the operating system is fine and he invites me to install the driver, owner of ATI Mobility for linux as my laptop has ATI mobility radeon 5xxx video chip... Even th