Remove a line from several tables

Hello

I have a form that has what appears to be a single table.  Given that I needed 30 column (29 of them are single character fields) I had to use 2 objects from the table.  Then I had the ability to add and delete lines.  Add a line at the end is pretty easy.  Deleting a specific line is the problem.  For now, I added a third table that has a header line and a line of item body.  the body line is a button with the intention to withdraw this entire line of the table.  In other words, need remove the line in all 3 tables.

My structure is:

  • Form1
    • (Some other subform past who is not serious for us)
    • SubformPersonnel (a subform sank)
      • SubformHeader (a positioned subform)
        • TextOverallHeader (text to label the oeverall 3 tables)
        • ButtonAddRow (adds a line at the end of all 3 tables)
      • SubformPersonnelTable (a positioned subform)
        • ContractorTableRemove (a table with a 1 column for the button Delete)
          • HeaderRow (line hidden to align the table with the other 2)
          • Element (a line with the button Delete)
            • CellRemoveButton (the cell with the button Delete and associated JavaScript)
        • ContractorTableLeft (a table with the left 15 printed columns)
          • HeaderRow
          • Contractor (a row of data to be deleted when it is clicked on CellButton above)
        • ContractorTableRight (a table with the right 15 printed columns)
          • HeaderRow
          • Contractor (a row of data to be deleted when it is clicked on CellButton above)
    • (Some other subforms that I'm not worried at the moment)

The 3 tables are aligned to the headers of all line up, no space between them.  Body lines line up then and it looks like a large table.  From left to right, they are:

ContractorTableRemove, ContractorTableLeft, ContractorTableRight

Point lines and contractor are added when you click on ButtonAddRow in the header of all.  The initial number is set to 8 for each table, so I get 8 rows at the start. The minimum number is set to 1 for each.  I know that each row in each table has the same index number, because I filled in a cell in each table cell initialize durig.  This line, in the click event of the CellRemoveButton removes the row of the cell in this table:

This.parent.parent._item.removeInstance (this.parent.index);

I tried all kinds of ways to remove the same line (using the index #) in the other 2 tables: ContractorTableLeft and ContractorTableRight, but do not seem to get the correct correct syntax.  I tried hard coding references, using .parent as shown below and also tried to use an index 1 just to try deleting a line with no result.

this.parent.parent.parent.ContractorTableLeft._Contractor.removeInstance (this.parent.inde, x);

Can someone get me the correct syntax here?

For example put a button Delete hidden on each table, click on that I saw, but I'm afraid it will get in the tables on each side of the table, in that it is the trail.  I reeally want just to refer to the line and remove it if I can avoid all these problems of further removal can cause problems.

I copied the form to https://Acrobat.com/#d=7M8R50rEHf4AaVXppwyKLw

Hi Karl,

Here is your form you: https://acrobat.com/#d=oRRJP3W * OgBk6DqXXbJhgg.

I've corrected the Add button, the button Delete and remove the button at the top. I annotated the script, so I hope you can follow.

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

  • How to remove a line duplicate a table

    Hello

    I have two lines in a table of data same as duplicate. I want to remove a line from that.

    When I try, it was remove the two lines of the same data.

    Thank you

    Remove the table table_name
    where (rowid, column_name)
    not in
    (select min (rowid), column_name column_name PGE group)

    ex:

    Delete from emp
    Where (ROWID, empno)
    not in
    (select min (rowid), empno from emp by empno group)

  • strange message: IMPORTANT: remove this line from json.js before deployment

    Hi - suddenly today when I launch an application I've been working, I get the following alert before the login page is rendered:

    IMPORTANT: Remove this line from json.js before deployment.

    It happens also before the rendering of page 1... and because there is an alert that I've coded P1, bringing to resubmit,
    He enters a loop.

    I thought it would be because of some changes that I made recently, but the same thing is happening in earlier versions of the application
    that I have not touched in weeks.

    This could be the cause?

    Thank you
    Carol

    I googled the message "Remove this line from json.js before deployment" and found several references to tell him that you are probably referring json.js directly from json.org. Try json.js copy to your own server and from there.

    Richard

  • How to remove a column from a table in a dell identtiymananger 7.0

    How to remove a column from a table in a dell identtiymananger 7.0

    Hello

    In Version 7 of the removal of a single custom column can be accomplished by a stored procedure, available in the database called: QBM_PColumnDrop

    Hope that helps.

    Cordially Fatih

  • Remove data from several tables

    I want to delete the data of all tables in this database which having device_id = "A1".
    How to do it. 2 questions heres
    (1) there are about 40 tables of the database and do not know what table contained the device_id field.
    (2) we have several such deviced_id should be deleted, for example device_id = 'A1', or device _id = "A2", "A3". can sql read this info from a table and the process?  Thank you

    Look at this example

    SQL> create table t1 (device_id varchar2(2));
    
    Table created.
    
    SQL> create table t3 (device_id varchar2(2));
    
    Table created.
    
    SQL> insert into t1 values('A1');
    
    1 row created.
    
    SQL> insert into t1 values('A');
    
    1 row created.
    
    SQL> insert into t3 values('A1');
    
    1 row created.
    
    SQL> insert into t3 values('B');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from t1;
    
    DE
    --
    A1
    A
    
    SQL> select * from t3;
    
    DE
    --
    A1
    B
    
    SQL> select table_name from all_tab_columns where column_name='DEVICE_ID';
    
    TABLE_NAME
    ------------------------------
    T1
    T3
    
    SQL> DECLARE
      2     CURSOR my_cur
      3     IS
      4        SELECT table_name
      5          FROM all_tab_columns
      6         WHERE column_name = 'DEVICE_ID';
      7  BEGIN
      8  FOR MY_REC IN MY_CUR LOOP
      9      --DBMS_OUTPUT.PUT_LINE('delete from '||my_rec.table_name||' where device_id=''A1''');
     10      EXECUTE IMMEDIATE 'DELETE FROM '||my_rec.table_name||' WHERE device_id=''A1''';
     11  END LOOP;
     12
     13  END;
     14  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from t1;
    
    DE
    --
    A
    
    SQL> select * from t3;
    
    DE
    --
    B
    
    SQL>
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • need to remove duplicate rows from a table

    Hi gurus,

    I'm using oracle 11.2.0.3.

    SQL > desc osstage. S_EVT_ACT_X;

    Name                                      Null?    Type

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

    ROW_ID NOT NULL VARCHAR2 (15 CHAR)

    LAST_UPD NOT NULL DATE

    PAR_ROW_ID NOT NULL VARCHAR2 (15 CHAR)

    ATTRIB_17 NUMBER (22.7)

    DATE OF ATTRIB_26

    ATTRIB_02 VARCHAR2 (100 CHAR)

    PROCESS_TIMESTAMP TIMESTAMP (6);

    now, when I give the command below, it gives error as someone has disabled the constraint accidentally.

    change the table s_evt_act_x S_EVT_ACT_X_P1 enable constraint;

    Error from line 3 in order:

    change the constraint of table s_evt_act_x activate S_EVT_ACT_X_P1

    Error report:

    SQL error: ORA-02437: impossible to validate (OSSTAGE. S_EVT_ACT_X_P1) - primary key violated

    02437 00000 - "can't validate (s.%s) - primary key violated."

    * Cause: attempted to validate a primary key with duplicate values or null

    values.

    * Action: remove duplicates and nulls before enabling a primary

    key.

    You can guide me please with this question.

    Please see

    Script: Remove the duplicate of a Table (Doc ID 31413.1) lines

    How to find or remove the duplicate in a Table (Doc ID 1004425.6) lines

  • expdp + query option to export from several tables with the same condition

    Hello

    We want to export a subset of data only from databases to another. Both on AIX.

    Source/testdatabase 11.2.0.3 (non partitioned tables)
    Target productiion 11.2.0.3 database (separate tables)

    Tables of same names of columns but diffrenet structures a partitioning index and traget so only want to import content

    Each source datbaase hascolumn seq number table and want only to extract the last months of data.


    TABLES:table1,table2...
    DUMPFILE=dump_dir
    CONTENT=data_only
    QUERY= table1:"WHERE seq_num >100 "
    want to use expdp but not sure how to make sure that all tables have the seq_num WHERE > 100 condition, if let table1: go out and have just
    QUERY = "WHERE seq_num > 100"this condition would apply to all tables that we want."


    I'm assuming that can also use impdp CONTENT = data_only?

    Any ideas/thoughts?

    Thank you

    QUERY = "WHERE seq_num > 100"this condition would apply to all tables that we want."

    Yes, it will work for all tables, but ensure that all exported table must include this column.

    QUERY
    Default: no
    Goal
    Allows you to filter the data that is exported by specifying a clause of a SQL SELECT statement, which is applied to all tables in the work of export or a specific table.

    The query_clause is usually a WHERE clause for the selection of refined lines, but could be any SQL clause. For example, an ORDER BY clause can be used to accelerate a migration from a table in a heap in a table held in index. * If a [schema]. table_name is not provided, the query is applied to (and must be valid for) all tables in the export job.*

    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_export.htm

  • Explicit cursor, column from several tables in a variable

    Here's the situation. This DB has tables of metadata. An example of table name would be g3e_attribute. Once you insert a record in a metadata table a trigger of executions insert and insert records in the g3e_attribute_0009 table (table of language, this is what I call it). It would insert in g3e_attribute_000C is the default language is the French. There is also a delete trigger so that if you delete a record in a table of metadata it deletes the corresponding language table. Well, somehow we have entered the language tables that are not in the metadata table. A problem with the system.

    There are 139 tables of language so I prefer not to do it manually.


    So I'm keen to make this code

    delete < table language > where < primary > not in (select < primary > in < metadata table >).

    So I need to loop through the table and and the corresponding primary keys.

    I have this code to get the table names
    Select table_name, substr (table_name, 0, (length (table_name)-5)) in all_tables where table_name like 'G3E_ % _000% ';

    This will display both the language metadata tale table names and.
    The table of language with either _0009 or _000C as a suffix, I take everything but the last 5 characters to get the table metadata.

    And I have the code to find the primary key of the table.
    SELECT column_name FROM ALL_CONS_COLUMNS A JOIN ALL_CONSTRAINTS C ON A.CONSTRAINT_NAME = C.CONSTRAINT_NAME WHERE 'G3E_LEGENDENTRY' AND C.CONSTRAINT_TYPE = C.TABLE_NAME = 'P ';


    So I just need to loop through all the tables. Put these pieces together, that's where I encountered a problem. I started to do a procedure, but I ran into a problem.

    When you loop, you move the record being the explicit cursor in a variable. Well, you can set the variable as a vertain column type (%), or type (%ROWTYPE) of the line. Although the sql I use to create the cursor takes columns from multiple tables and returns three columns. So I'm not sure how ot define the variable. The only work around I found was to make a table column_name that contains the table table,. Define the variable as rowType.

    Is there an easier way to do this?


    Thank you

    A couple of points.

    You should not really mix ansi joins and joins in the place where clause. Choose a style and stick to it.

    You can't do the DDL directly in pl/sql. You need to do this, use dynamic sql. something like:

    create or replace
    PROCEDURE SYNC_LANGMETATABLES AS
    
    CURSOR c_TABLE_PRIMARY IS
       select D.table_name, substr(D.table_name,0,(length(D.table_name)-5)),
              column_name
       from all_tables D,
          JOIN ALL_CONSTRAINTS C
             on C.TABLE_NAME = D.TABLE_NAME
          join ALL_CONS_COLUMNS A
             ON A.CONSTRAINT_NAME = C.CONSTRAINT_NAME
       where D.table_name like 'G3E_%_000%' AND
             C.CONSTRAINT_TYPE = 'P';
    
       v_LANGTABLE ALL_TABLES.TABLE_NAME%TYPE;
       v_METATABLE ALL_TABLES.TABLE_NAME%TYPE;
       v_PRIMKEY ALL_CONS_COLUMNS.COLUMN_NAME%TYPE;
    
    BEGIN
       OPEN c_TABLE_PRIMARY;
       LOOP
          FETCH c_TABLE_PRIMARY INTO v_LANGTABLE,v_METATABLE,v_PRIMKEY;
          EXIT WHEN c_TABLE_PRIMARY%NOTFOUND;
          execute immediate 'delete from '||v_langtable||' where '||v_PRIMKEY||
                            ' NOT IN(SELECT '||v_PRIMKEY||' FROM v_METATABLE)';
       END LOOP;
       CLOSE C_TABLE_PRIMARY;
    END;
    

    John

  • Remove the line from the Excel report when generating reports

    Hi all

    I try to delete whole lines of the report excel during the generation of the report in excel, but I'm not able to do this. Here I am attaching an excel template, in that I want to delete line no 3 to 5 How can I do this. I'm using LabVIEW 8.6 Report Generation Toolkit for Microsoft Office 1.1.3

    Thanks and greetings...

    If there is no function to generate report for simple operations like this, then use the palette of VBA macros to run this code snippet:

    'remove all lines between two rows inclusive '.
    Void DeleteRows (intTopRow As String, intLastRow As Integer)
    Range (cells (intTopRow, 1), (intLastRow, 1)). EntireRow.Delete xlShiftUp
    End Sub

    Import Excel module allows to load the .bas file then run Excel Macro with parameters 3 and 5.  Check your security settings if you get an error in the macro.

  • How can you remove a line from one of your paintings?

    I am an artist and I was looking at my paintings. I was able to move the mouse on one of the paintings, and he left a black line, about two inches long. I have to

    get it off because he ruined the paint. The question is, how can I remove this line of paint?  I hope someone has the answer. Are there

    some sort of button cancel?  I'd appreciate certainly any kind of help.  I wouldn't have another one of this painting to my photo scan files.

    Emma

    Ken knows much more about such problems, he will need to know what program allows you to analyze the paint and what program you were using at the time of the accident occurred.

    In the meantime, you do not have a backup of paint?  You can try this > right click on the painting > choose Properties > click on the ' previous versions tab.  I'll take some time to find a previous version if at all, but don't wait.

  • How can I remove 2 lines in a table?

    I just picked up a book from another designer project and there are 2 lines I want to change but I can't find where to do this. It's not under all styles or options for the table. Any ideas here? I can't click on it either. Thanks in advance!

    Screen Shot 2016-07-18 at 10.14.42 AM.png

    Power of Attorney of the cell by the race Committee can be confusing, until you understand subtractive nature of his selection convention.

    Select the top row (or the line you are showing with the greats of blues numbers) of the table (so that it is completely filled with highlight).

    Proxy around the cell race Committee, click to deselect everything except the bottom border of the cell.

    The lower border still selected remains Blue:

    The value of weight 0 pt.

    Repeat for other lines as you wish.

  • Combine multiple lines into one line (from two tables / result sets)

    Hello experts,

    I would like to know how to combine multiple lines/records in a single record. Here are the DDL and DML to tables:

    create table test_table)

    client_name varchar2 (50 char),

    login_time timestamp (6).

    logout_time timestamp (6).

    auto_type varchar2 (10 char)

    )

    create table root_table)

    navigation_time timestamp (6).

    client_name varchar2 (50 char),

    VARCHAR2 (50 char) nom_du_groupe

    )

    Insert into test_table

    values ("John", TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');

    Insert into test_table

    values ('David', TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "invalid");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:14:22.333 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), "David", "invalid");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'David', 'GROUP_5');

    game results test_table

    client_name

    login_time logout_time auto_typeJohn05/12/2013 5:04:01.512000 PM05/12/2013 5:27:31.308000 PMSIMPLEDavid05/12/2013 6:33:01.308000 AM05/12/2013 6:45:01.112000 AMSIMPLE

    root_table result set

    navigation_time client_name GroupName
    05/12/2013 5:04:01.512000 PMJohnNot valid
    05/12/2013 5:14:22.333000 PMJohnGROUP_1
    05/12/2013 5:27:31.308000 PMJohnGROUP_1
    05/12/2013 6:33:01.308000 AMDavidNot valid
    05/12/2013 6:45:01.112000 AMDavidGROUP_5

    And here is the SQL code I'm writing:

    Select a.customer_name, a.login_time, a.logout_time, a.auto_type, Max (b.group_name)

    from test_table a, b root_table

    where a.customer_name = b.customer_name

    Group of a.customer_name, a.login_time, a.logout_time, a.auto_type

    As the 'invalid' value is greater than the value "GROUP_1" (based on the number of letter in English), the GroupName is returned as 'invalid '. I want to bring the GroupName based on the navigation_time column in the root_table so that it always returns a valid GroupName. Please help me.

    Output current:

    Client_name.      Login_Time.     Logout_Time |     Auto_Type |     GroupName

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

    John |     05/12/2013 5:04:01.512000 PM |     05/12/2013 5:27:31.308000 PM |     SIMPLE |     Not valid

    David |     05/12/2013 6:33:01.308000 AM |     05/12/2013 6:45:01.112000 AM |     SIMPLE |     Not valid

    Expected results:

    Client_name.      Login_Time.     Logout_Time |     Auto_Type |     GroupName

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

    John |     05/12/2013 5:04:01.512000 PM |     05/12/2013 5:27:31.308000 PM |     SIMPLE |     GROUP_1

    David |     05/12/2013 6:33:01.308000 AM |     05/12/2013 6:45:01.112000 AM |     SIMPLE |     GROUP_5

    Thank you!

    Adding INSERT statements, current and planned outputs.

    This...

    SELECT client_name

    login_time,

    logout_time,

    auto_type,

    GroupName

    Of

    (select a.customer_name,

    a.login_time,

    a.logout_time,

    a.auto_type,

    b.group_name,

    ROW_NUMBER() over (PARTITION BY a.customer_name, a.login_time, a.logout_time, a.auto_type ORDER BY b.group_name) rn

    from test_table a, b root_table

    where a.customer_name = b.customer_name)

    WHERE rn = 1;

    OUTPUT:-

    =========

    David DECEMBER 5, 13 06.33.01.308000000 AM DECEMBER 5, 13 06.45.01.112000000 AM SIMPLE GROUP_5
    John DECEMBER 5, 13 05.04.01.512000000 PM DECEMBER 5, 13 05.27.31.308000000 PM SIMPLE GROUP_1

    Thank you

    Ann

  • return Recordset from several tables with session variables

    First of all, let me start by appolgizing for the rawness of this question, but I'm really stuck...  I have two tables in a database, a table name, username, password and company (user logs on to a secure site using the UN and PW creating a session MM_username variable).  There are several users from different companies (IE 6 users of XYZ Corp., 20 ABC... etc.).  The second table has data that is specific to each company.  How to display the data in the second table so that it is specific to the user (ie: Robert of XYZ Corp. sees only specific data of XYZ Corp.)?

    Thank you very much

    What you would do, is to join the tables on the company name field in a query:

    SELECT * FROM tbl_name LEFT JOIN tbl1.company_name ON tbl2.company_name WHERE username = MM_username;

    If you need a more details or help database tables themselves you'll need post a few details anymore, but that's the gist of it.

    And just to add, is that if you try to add in the session.  Otherwise take your session for the company_name variable in table 1 and use it in a select query based on your session pages.

  • Remove the column from the table compress

    I try drop column from table DPRUEBA, with compression option:
    SQL>select * from v$version
      2  /
    
    BANNER                                                                
    ----------------------------------------------------------------      
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi      
    PL/SQL Release 10.2.0.4.0 - Production                                
    CORE     10.2.0.4.0     Production                                            
    TNS for Linux: Version 10.2.0.4.0 - Production                        
    NLSRTL Version 10.2.0.4.0 - Production                                
    
    5 filas seleccionadas.
    
    Transcurrido: 00:00:00.09
    SQL>
    SQL>CREATE TABLE DPRUEBA
      2    (COL1 NUMBER,
      3    COL2 NUMBER) COMPRESS
      4  /
    
    Tabla creada.
    
    Transcurrido: 00:00:00.06
    SQL>
    SQL>ALTER TABLE DPRUEBA DROP COLUMN COL2
      2  /
    ALTER TABLE DPRUEBA DROP COLUMN COL2
    *
    ERROR en línea 1:
    ORA-39726: operación de agregación/borrado de columnas no soportada 
    en tablas comprimidas 
    
    
    Transcurrido: 00:00:00.06
    Any idea?

    You can always do something like this

    SQL> CREATE TABLE DPRUEBA
      2   (COL1 NUMBER,
      3    COL2 NUMBER) COMPRESS
      4  / 
    
    Table created.
    
    SQL>
    SQL> ALTER TABLE DPRUEBA DROP COLUMN COL2
      2  /
    ALTER TABLE DPRUEBA DROP COLUMN COL2
                                    *
    ERROR at line 1:
    ORA-12996: cannot drop system-generated virtual column
    
    SQL>
    SQL> create table new_DPRUEBA
      2  as
      3  select col1
      4    from DPRUEBA
      5  /
    
    Table created.
    
    SQL>
    SQL> drop table DPRUEBA
      2  /
    
    Table dropped.
    
    SQL>
    SQL> rename new_DPRUEBA to DPRUEBA
      2  /
    
    Table renamed.
    
    SQL>
    SQL> desc DPRUEBA
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------
     COL1                                               NUMBER
    
    SQL>
    SQL>
    SQL> drop table DPRUEBA
      2  /
    
    Table dropped.
    
    SQL>
    SQL> 
    

    Note: you must take care of the constraints and triggers, and others

  • How to change or remove a line from a drop down list?

    I have a spreadsheet Numbers drop down box that shows the 3 lines of the text when I start typing the text in the cell. I have to enter the same text 3 times during the construction of the document. How can I remove 2 of these lines of text?

    Hi Brudduh,

    Click the cell that contains the context menu,

    Click on the brush to Format to open the Format Inspector and click cell.

    The Inspector displays the menu items in the context Menu in this cell.

    • To remove a menu item: click on the item to select. Click the button below the list.
    • To edit an item: double-click on the item to select content. Modify if needed.
    • To add an item: click on the button +. Type the content of the element.

    To use the same drop-down list in a different cell:

    • Click the cell that contains the menu to select. Copy.
    • Select the cells to the same menu. Dough.

    Kind regards

    Barry

Maybe you are looking for