Tabular form - stop some lines from being modified according to user

Hello

For an application that I'm developing, I wish I could use the group_id (stored in a session variable) in order to prevent the user from changing certain lines. However, I still have the user to be able to see all the lines.

To clarify, I have a tabular presentation composed of elements belonging to a certain group. Once users logs in a variable called Group of stored session ID. I'm like tables to display all items as usual but only allow the user to change the items belonging to their group.

Apex has a "Built-in" way to do? I looked but can't seem to find a solution.

My second idea was to use JavaScript to compare the value of column group_id session and somehow lock/unlock ID line. However, the group_id column is a selection list and I'm not sure on how I can retrieve the value selected using JavaScript.

Initially, I came to this:

$("#report_pivot_tbody_tr_td").each (function () {}

If ($(this) .attr ('headers') == 'GROUP_ID') {}

If ($(this) .val ()). == 2432832) {}

$(this).css({"background-color":"#FF6200"});)

}

}

});

When tested on other columns code works and correctly colors the cell however with the list selection that does not work.

Any help would be appreciated.

Thanks in advance,

James Menzies

The only way to protect the data of the edition is to not show or show it in a single report to display. Using jquery to protect your data is not a good practice. Thus, data for editing must be included in a table for. Cannot be changed in a second report below.

Denes Kubicek

-------------------------------------------------------------------

-------------------------------------------------------------------

Tags: Database

Similar Questions

  • 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

  • Request Express 5.0.0.00.31/Tabular form/number of lines

    Hello

    I would like to ask how to configure the number of lines displayed per page.

    I did the below and also I tried to re-charge/reload, but impossible to get what I want.

    Implement a tabular form

    Set the presentation attributes of the State and the paging number of rows 50

    Registered and run this page, it shows still 15 ranks in this page.

    A I missed something? Or as a table don't allow no more than 15 lines be shown on 1 page?

    Thank you.

    Hello

    Pagination settings are cached for the duration of the session. This change is visible immediately, close the session, restart the brower and connect again or manually re - request the page from the browser's address bar, adding the ClearCache position 'RP' in the URL.

    Do not set anything in number of lines (point). This is used to identify an element of the page containing the number of lines to allow users to control this

    (Note: If you think it answers your question, please mark it as correct answer.) This will help other users in the community)

    Thank you

    Benhamdia

  • Tabular form when adding line error

    I click on the 'Add' button to add a row to the table OCA_OTHER_AGENCIES, I get the following error:

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-01400: cannot insert NULL into ('CONFIRM'. "" "" OCA_OTHER_AGENCIES '. "" OA_ID"), insert"CONFIRM ". "" OCA_OTHER_AGENCIES values ' ('OA_FIRM_ID', 'OA_ID', 'The AGENCY', 'PROGRAM', 'STATUS', 'AGENCY_DATE', 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', "DBE_ON_SITE_VISIT_STATE") (: b1,: b2,: b3: b4,: b5,: b6,: b7,: b8,: b9)

    OA_ID is the primary key and is defined in the table as presentation:
    display as: HIDDEN
    default type: PL/SQL Expression or a function
    default: oca_pkg.get_next_key ('OA')

    the get_next_key function returns the following sequence as follows:
    Function get_next_key (p_key in varchar2) return number is
    number of v_seq_no;
    Start
    If (p_key)
    When ("OA") and then select OCA_OA_SEQ.nextval in the double v_seq_no;
    When ('FARM') and then select OCA_FIRMS_SEQ.nextval in the double v_seq_no;
    Another null.
    end case;
    return (v_seq_no);
    end;

    In debug mode: append query appears as:
    0.08: Add line query: select 'FIND$ 01' "CHECK$ 01", 'OA_FIRM_ID' 'OA_FIRM_ID' 'OA_ID' 'OA_ID' 'OA_FIRM_ID_DISPLAY' 'OA_FIRM_ID_DISPLAY', 'OA_ID_DISPLAY', 'OA_ID_DISPLAY', 'AGENCY' "', 'PROGRAMME', 'PROGRAMME', 'STATUS', 'STATUS', 'AGENCY_DATE' 'AGENCY_DATE' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_STATE' 'DBE_ON_SITE_VISIT_STATE' of (select NULL" RECORD$ 01 "'). , 'OA_FIRM_ID' 'OA_FIRM_ID' 'OA_ID' 'OA_ID' 'OA_FIRM_ID_DISPLAY' 'OA_FIRM_ID_DISPLAY', 'OA_ID_DISPLAY', 'OA_ID_DISPLAY', 'AGENCY' "', 'PROGRAMME', 'PROGRAMME', 'STATUS', 'STATUS', 'AGENCY_DATE' 'AGENCY_DATE' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_STATE' 'DBE_ON_SITE_VISIT_STATE' from (select 'OA_FIRM_ID' , 'OA_ID', 'OA_FIRM_ID' OA_FIRM_ID_DISPLAY, OA_ID_DISPLAY 'OA_ID', 'AGENCY', 'PROGRAM', 'STATUS', 'AGENCY_DATE', 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', ' DBE_ON_SITE_VISIT_STATE ' to "CONFIRM'." " ((OCA_OTHER_AGENCIES' where oa_firm_id =: F103_FIRM_ID UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL FROM DUAL WHERE: request = 'ADD_ROWS' or: application is NULL to CONNECT BY LEVEL < = 1)) Union all select NULL 'CHECK' $ 01, NULL, 'OA_FIRM_ID', oca_pkg.get_next_key ('OA') 'OA_ID', NULL, 'OA_FIRM_ID_DISPLAY '. NULL, NULL, 'OA_ID_DISPLAY', NULL, 'AGENCY', 'PROGRAM', NULL, 'STATUS', NULL, 'AGENCY_DATE', NULL, 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', 'DBE_ON_SITE_VISIT_STATE' of the double NULL NULL


    Can someone please.

    Why you doing this in the form and not by a trigger?

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • A .as file will stop a .swf from being linked?

    I have a simple movie that has essentially the AS3 code for the two buttons.

    A single button (named videopage_btn) links to another file .swf perfectly.

    The other button (named thumbnailgallery1_btn) is not related to another .swf file. It gives me an error (TypeError: Error #1009: null) when you use the same code (attached).

    In the folder of my project, I have this .swf file and the other .swf file, which has a .as file to go with it.

    When I opened the other single thumbnailgallery1.swf file (without the other file simple.swf button), it compiles properly. However, when I try to use the button, I get the error 1009.

    Can I use a different code to open the thumbnailgallery1.swf of the thumbnailgallery1_btn?

    Yours Sincerely,

    Jntspecialty


    that must be something lost in translation because I do not understand this error message. in all cases, you will need to debug this class file.

  • How to prevent from being changed by the user or: SliderDouble ranges

    Hello

    I have a slider in WPF / c#

    <>liderDouble height = "60" Name = 'updateRate"ValueChanged ="OnUpdateRateValueChanged"range ="0.05,1"Value ="0.05"/ >

    When the application runs in user can change min or max value of the range by clicking on the lable of ticks and changing the value.

    Need a way to prevent/protect, make unmodifiable.

    Thank you

    Yuri

    Range scale of editing is controlled by the InteractionMode property to the cursor. To turn off the EditRange , you can assign a different set of indicator values, such as InteractionMode="ArrowKeys,Drag,Snap,ScrollWheel" .

  • Insert/update of the lines in tabular form from one table to another table

    Hello

    I'm having a tabular presentation for a table (equip_test) with 2 columns (equip_id, equip_name). I create a new

    Button (submit_alt) in this tabular form. I need to insert or update lines that are changed in this table to form

    another table (equip_staging) when you press the submit_alt button. How can I do this? How can I identify which lines are

    Insert or update? The process of the page I am trying since this button is
    begin
    
    FOR i in 1..APEX_APPLICATION.G_F01.count
    
    LOOP
    insert into equip_staging values(APEX_APPLICATION.G_F02(i),APEX_APPLICATION.G_F03(i));
    END LOOP;
    
    end;
    But it does not work. Help, please

    Thank you

    TJ

    Unchecking (does not) the column is a problem. Use this SQL instead (which is included in my examples):

    SELECT empno,
              empno
           || apex_item.hidden (33, wwv_flow_item.md5 (ename, sal, job))
                                                                    empno_display,
           ename, sal, job
      FROM emp
    

    and join this column hidden from your display column. In this way, it should work. When you feel there is no data found message in the treatment in a table, it will mean that the id does not exist.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Added new line at the top of tabular form in APEX 5.0 and universal theme (topic 42)

    Hello Apex Experts,

    When the user clicks on the button 'Add Row' a tabular presentation, I would like the new line to be at the top of the report rather than the bottom.


    I followed the instructions from Added new line at the top of table in APEX 4.0 form and Denes Kubicek demo application. But it does nothing, always create new bottom line.


    Anyone have an idea or an idea?


    Your help would be appreciated.


    Kind regards

    Blabla

    Hi all

    This problem is now solved by following the new blogpost of Dene:

    http://www.deneskubicek.blogspot.de/2015/05/tabular-form-add-rows-top-universal.html

    Kind regards

    Blabla

  • 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

  • Adding empty lines to tabular form on page load

    Hello
    I use APEX 4.1.1 on 11gXE and Windows Vista.

    I created a tabular form on a page. When the page loads I want the::AddRow() to call x number of times where x is the value returned by a list of selection (from 1 to 10) on another page. If the value 3 is selected::AddRow() is called 3 times. This is similar to the example of Denes Kubicek, but I am interested in the use of a dynamic action instead. Here is the link to Dene

    http://Apex.Oracle.com/pls/OTN/f?p=31517:209

    I created a dynamic action that fires when the page loads and runs the following code:

    var i = 0, z = $v ('P1_NO_ITEMS');

    While (I < z)
    {
    ::AddRow();
    i ++ ;
    }

    When I put P1_NO_ITEMS 3 and go to the tabular presentation page, it loads but does not add 3 empty lines in the form. I tried hard coding a value into the javascript code and that works very well. for example

    var i = 0, z = 3;

    When I add an alert in the code the value of P1_NO_ITEMS seems to be undefined, and I get a white for its value. If I check the session state P1_NO_ITEMS has the value 3.

    Any ideas where I'm wrong? I have a feeling that it is something simple...
    Thank you very much
    Helen

    Hi Helen
    >
    I use APEX 4.1.1 on 11gXE and Windows Vista.

    I created a tabular form on a page. When the page loads I want the::AddRow() to call x number of times where x is the value returned by a list of selection (from 1 to 10) on another page. If the value 3 is selected::AddRow() is called 3 times. This is similar to the example of Denes Kubicek, but I am interested in the use of a dynamic action instead. Here is the link to Dene

    http://Apex.Oracle.com/pls/OTN/f?p=31517:209

    I created a dynamic action that fires when the page loads and runs the following code:

    var i = 0, z = $v ('P1_NO_ITEMS');
    >
    JavaScript works only on elements in the HTML DOM. Once you have navigated away Page 1 the P1_NO_ITEMS not available in JavaScript.
    >
    While (i<>
    {
    ::AddRow();
    i ++ ;
    }

    When I put P1_NO_ITEMS 3 and go to the tabular presentation page, it loads but does not add 3 empty lines in the form. I tried hard coding a value into the javascript code and that works very well. for example

    var i = 0, z = 3;

    When I add an alert in the code the value of P1_NO_ITEMS seems to be undefined, and I get a white for its value. If I check the session state P1_NO_ITEMS has the value 3.

    Any ideas where I'm wrong? I have a feeling that it is something simple... >

    Change

    z=$v('P1_NO_ITEMS');
    

    TO

    z='&P1_NO_ITEMS.';
    

    See you soon,.

  • 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

  • I deleted some photos from my iPhone 6 but I noticed that it was also deleted out of my IMac. How can I stop this

    I deleted some photos from my iPhone 6 but I noticed that it was also deleted out of my IMac. How can I stop this

    If you use iCloud photo library all the photos you delete a device will be deleted to iCloud and all other devices that are connected to this library to iCloud. The iCloud design library should synchronize all changes, including deletions, to all devices. You can reduce the storage space required on your phone by selecting settings > iCloud > Photos > optimize iPhone storage.

  • line tabular form selector ignores the Tab key, how?

    Hello world

    We have Oracle 11.2 and Apex 4.2.6.

    Tabular form a selector of line, trying to prevent cleat key home, for item in normal form, I would use just something like tabindex =-1, but I don't know how I can add this tab index for the line selector, whose property is 'Download' BLOB. If I inspect element, it is a checkbox:

    < input type = "checkbox" name = "f01" value = "1" class = 'row selector' id = 'f01_0001' entered AutoComplete = "off" >

    How can I add tabindex = "-1" inside this entry line selector type?

    Any suggestions are greatly appreciated.

    $(':checkbox').attr ("tabindex", - 1).

    However, it would be preferable to add a static region id to your region and your prefix selector

    $('#p1_my_region_:checkbox').attr ("tabindex", - 1).

  • How to stop records in doubles before the Save as tabular form Oracle/Developer

    Dear friends

    I want to stop duplicate records to save in tabular form of oracle developer.

    For example

    I have a tabular form and there are three fields.

    Vendor_id Item_id Qty.

    1                  37630         1

    1                  37630         4

    Above in double item_id should not be saved.

    Help, please

    Concerning

    Why not make a unique constraint on the database?

    Kind regards

    Zlatko

  • 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

Maybe you are looking for

  • The iTunes search function does not work because I have upgraded to iOS 10

    IiTunes load as usual when I open the app, but when I try to search some research forever.  I'm doing the fix for this issue.  If I am forced to use Amazon instead, there will be loss of apples.

  • The administration password

    HP model 15-f039wmProduct. J8x12ua #abaDisabled system # 68921703Need help too please

  • Repeatedly offered KB954430

    whenever I turn on my computer the update 954430 kb gets on my computer so now I have this update 25 times on my computer and every time I shut down my computer it is on my computer again. is there someone who has a solution Greetz hummie

  • Problems with SmsDemo

    Hello I try to run SmsDemo. I imported the sample SmsDemo and I have the server, account component. I run the server component, but the messages that I send to the application of SmsDemo have no effect - I don't see anything happen to the account app

  • WCS upgrade question

    We will install 4.x WCS version 5.x. I would like to know that the current congiurations as map and politics in WCS exist after the upgrade to version of WCS.