Add / remove rows from the Table

Hello

I'm really new to LiveCycle ES 8.2 (= non-existent knowledge of JavaScript) and has difficulties to create a table that can add / remove lines.

I found a model that has the feature I need, but am unable to reproduce the table. (Ref. "Fax Cover Sheet_SW.pdf' http://forums.adobe.com/message/2561553#2561553)

Even when I create a new blank form, and then copy / paste the table (subforms: 'detailHeader' + "detal") in the new, blank forms, the table stops working. The buttons are more clickable in the LiveCycle 'Preview PDF'

In the new, blank forms, the 'Paging' and 'Binding' tabs have some or all of their features grayed out.

I tried the following:

  1. Save the form as an "Adobe Dynamic form XML (pdf)"
  2. Make sure all of the 'content' subform fields were set to "Position" instead of "Flowed".

What am I missing, like all JavaScript copied on, but for some reason any does not work.

4 things you need to correct your form...

(1) Page1 subform needs tobe Flowed the value.

(2) then the link to the Subform1 tab will be active. You must check the box "subform to repeat for each item of data.

(3) in the Add button to Subform1 you missed 'instanceManager' in the code...

Subform1.instanceManager.addInstance (1);

(4) in the same way in the button Delete

Subform1. instanceManager. removeInstance (this.parent.index);

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • How add/remove tools from the dock of the workspace?

    I'm new to the cloud to create Adobe. I wonder how I can add/remove tools from the wharf of the workspace? Specifically, I need to add the text options frame vertical Justification on the top of the dock page.

    Check the control panel personalize

  • Add and remove users from the table

    Hi, guys. I do a system that allowed admin in the user control.

    The ID is = admin

    The neck is = 6649481

    Can someone help me to check add it and remove the part.

    Actually, it may work, but I would like to make he repeats no is allowed, but it works on the index of '0' and then index 1, it will not stop the user to add id repeated.

    Delete if I had to remove the loop will be fine and work well, but it can only remove the top. It's like first first concept but I would like to do as a function of the ID given to remove from the table.


  • LOV in richeTableau resets the value after the deletion of rows from the table

    Hello. I'm on 11g R2

    I have a table with columns in the box and a button in the toolbar that removes the lines checked

    I have build it based on the following article in her string code

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html


    When I run the "delete" button I execute the following code (taken as is article)


    public void deleteSelectedRows() {}

    create a second line, the value do not affect all lines

    used in ADF

    Set of rows duplicateRowSet = this.createRowSet ("duplicateRowSet");

    first row to avoid "the attempt to access the value of lines."

    exception line was dead.

    duplicateRowSet.first ();

    retrieve the current row of the table for after

    re-running the VO

    Line currentRow = this.getCurrentRow ();

    Boolean currentRowDeleted = false;

    get all rows that have the transoent attribute

    "MarkForDelete' set to true

    Row [] rowsToDelete =

    duplicateRowSet.getFilteredRows ("MarkedForDelete", true);

    If (rowsToDelete.length > 0) {}

    run only throizgh this code, if there is something to

    delete

    for (line rw: rowsToDelete) {}

    If the row is marked as the current in VO, ts value

    Boolean flag

    If (rw.getKey () .equals (currentRow.getKey ())) {}

    currentRowDeleted = true;

    }

    remove the line - do not yet commit

    RW. Remove();

    }

    rerun VO

    this.executeQuery ();

    reset the current line if it has not been removed

    If (! currentRowDeleted) {}

    this.setCurrentRow (currentRow);

    }

    duplicateRowSet.closeRowSet ();

    }

    }

    "MarkedForDelete" is a transient attribute used to mark the line delete

    The lines are removed very well.

    The problem is with lines that I do not delete.

    For example I LOV column. I chose the value LOV in a few lines, and after that choose to delete several lines (not the same lines where I modified the LOV) but some other lines.

    After I click "delete", the lines that I marked to remove deleted indeed, but the value of the LOV in other rows (I have not scored for delete) are disabled.

    How to preserve value LOV so it will remain also after I deleted some lines?

    P.S. I've tried autosubmit = "true" - it did not help

    It is expected because I see that you rerun the query.

    Once you re - run, it retrieves from the database again. Thus, your values are lost because they are not posted.

    I don't think that run query is necessary, try to have a programmatic part trigger on the table after you remove all of the lines.

    Thank you

    Alisson.

  • How to remove columns from the table on the master 1-0?

    I have an array of 96 columns with strings. I also have the array of int 96-elemets (mask) with 1 and 0.

    What I want to do is to is to remove (or hide - but I read that it is not possible) all the columns with index corresponding to 0 in the mask table.

    example:

    columns in the table

    1 2 3 4 5

    mask

    0 1 0 0 1

    I want to remove the columns 1, 3 and 4 and leave only 2 and 5 in my table.

    How can I do?

    If I create loop for with i as the index of the column, when I do DeleteTableColumns() columns number decreases, and I get an error of range out of

    Or do I have an option to hide the unnecessary columns (not set their width to 1, it's very ugly-looking)?

    Please help me (())

    Hello rovnyart!

    1. removal of columns in the table:

    I suspect that the reason why you get the out-of-range error is due to fact that in your loop, you delete the columns in the table, you'll eventually end up by referring to a column that no longer exists, because the other columns before it have been deleted. While you remove each column of your table in the loop for example, the column index number will move, because you deleted the other columns in front of her.

    To resolve this, even if you delete a column in your loop, make sure that you take also into account that the index of the column is moved because of the removed columns.

    2 hide columns in table:

    You can use the ATTR_COLUMN_VISIBLE attribute to hide columns in the table:

    http://forums.NI.com/T5/LabWindows-CVI-idea-exchange/add-attr-column-visible-attribute-for-table-Col...

    http://zone.NI.com/reference/en-XX/help/370051Y-01/CVI/uiref/cviattrcolumnvisible_column/

    3 alternatives:

    Note that another alternative would also use a tree instead, control as the tree control also supports the hidable columns:

    http://forums.NI.com/T5/LabWindows-CVI/table-hide-column/TD-p/569773

    Best regards!

    -Johannes

  • Fonts of different weights for some rows from the table in a tableView

    Hi all

    I need to add a summary in a TableView row to calculate the sum of all values above this line. For each line, I have an object called KostenDTO.

    class SummCurrencyTableCellFactory implements Callback, TableCell> {

         private NumberFormat numFormat = null;

         public SummCurrencyTableCellFactory(NumberFormat numFormat) {

              this.numFormat = numFormat;

         }

         @Override public TableCell call(TableColumn param) {

              TableCell cell = new TableCell() {

                   @Override public void updateItem(final Float item, boolean empty) {

                   if (item != null) {

                        setText(numFormat.format(item));

                        setStyle("  -fx-alignment: CENTER-RIGHT;");

                        if (item < 0.0) {

                             this.setTextFill(Color.RED);

                        } else {

                             this.setTextFill(Color.BLACK);

                        }

                  } else {

                        setText("");

                  }

              }

         };

         return cell;

        }

      };


    How can I change the font to bold amount-line?

    Thanks and regards Tim

    You can do

      String fontWeight ;
      if (getIndex() == getTableColumn().getTableView().getItems().size()-1) {
      fontWeight = "-fx-font-weight: bold;";
      } else {
      fontWeight = "-fx-font-weight: normal;";
      }
      setStyle("-fx-alignment: CENTER-RIGHT;\n" + fontWeight);
    

    in the updateItem method (...), assuming that the line of the somme is the last line of the table.

  • filtering rows from the tables

    We have about a 10 tables where specific information must be filtered from users with access select backend based on about 5 unique id (in the same column).

    This must be done for users with back-end access only.

    I have some experience with MEV for use in column-masking. I thought this may be helpful here as well but - my concerns are around the possible performance implications.

    Filtering is not necessary for the job but real application process - they are still going to be run the vpd function to determine if they want to add the additional predicate whenever they perform. I don't know if it will be a performance problem or - if there is a better way to do it.

    Has anyone experience with MEV in that capacity or - have other suggestions around lines matching the (transparent) tables for users who have access via the backend of the application?

    wtlshiers wrote:
    I was hoping to create a political function that is not "query" to the determining factor around adding the predicate each time. That's where I think that the context of enforcement would be used.

    What do you mean by "application" in this context? The political function must determine the predicate to apply. Of course, this predicate could code be hardcoded in the political function, i.e.

    CREATE OR REPLACE FUNCTION my_policy_function(p_owner IN VARCHAR2, p_object_name IN VARCHAR2)
      RETURN VARCHAR2 AS
    BEGIN
      IF( user = 'SHARED_APPLICATION_ID' )
      THEN
        RETURN '1=1';
      ELSIF( user = 'BOB_FROM_ACCOUNTING' )
      THEN
        RETURN 'group_id NOT IN (1,2,3)'; -- Bob can see everything other than group_id's 1, 2, or 3
      ELSIF( user = 'SHARON_FROM_FACILITIES' )
      THEN
        RETURN 'group_id = 4'; -- Sharon can only see group_id 4
      END IF;
    
      -- If we don't know about you, deny access
      RETURN '1=0';
    END my_policy_function;
    

    Normally, however, you want to have some sort of mapping table of users to the groups to which they have access in order to simplify the predicate, i.e.

    CREATE OR REPLACE FUNCTION my_policy_function(p_owner IN VARCHAR2, p_object_name IN VARCHAR2)
      RETURN VARCHAR2 AS
    BEGIN
      RETURN 'group_id IN (SELECT u2g.group_id FROM user_to_group_mapping u2g WHERE u2g.username = USER)';
    END my_policy_function;
    

    You can use something in the context of the session value rather than the call to the USER run when you configure the predicate, but I'm not sure it's necessary complexity account required to your needs.

    In this case - when a user connects to the database - if they are a user who shouldn't be able to see the specific tables group id - I would fix the system as a result of this user context.

    Then - in the political function - I would use the sys context function to determine whether the predicate should be added or not (include/exclude as appropriate).

    If you want to use a user-defined context, you could, of course, do something like this to prevent users to access sensitive groups if their IS_ALLOWED attribute is not set to "Y". I have

    CREATE OR REPLACE FUNCTION my_policy_function(p_owner IN VARCHAR2, p_object_name IN VARCHAR2)
      RETURN VARCHAR2 AS
    BEGIN
      IF( sys_context( 'MY_CONTEXT', 'IS_ALLOWED' ) = 'Y' )
      THEN
        RETURN '1=1';
      ELSE
        RETURN 'group_id NOT IN (1,2,3,4,5)'; -- Groups 1-5 are sensitive
      END IF;
    END my_policy_function;
    

    l is simply not obvious to me that it is beneficial in your case where everything is based on the Oracle user name. You can certainly create a context and fill in this context in a logon trigger, but now you have created a context and a logon trigger, and the solution is not as flexible as the table-based approach. In addition you have the coded group_id hard which makes it less likely that someone is going to notice the changes required when group_id are added in the future.

    Justin

  • Delete rows from the table

    Hello

    10G

    A custom table is to have 5000 documents, I need to have everything 100 records in the table and delete the rest of them.
    could you suggest...

    Thank you
    Tim
    delete table_name where rowid not in (select rowid from table_name where rownum <101);
    
  • remove items from the table

    Hi all

    If I have the table as

    var my_Arr:Array = new Array ("a", "b", "c");

    and I have a button to use a random element of the array of ths, y at - it no to remove this element if I press the button once again I don't think the last item?

    could someone help me...?

    thnx

    Wael


    var someArray:Array = [1,2,3,4,5,6,7,8,9];

    someArray.shift (); remove the first value (1)

    someArray.pop (); remove final value (9)

    If you type: untableau. then comes a list of possibilities and you can see that makes each of them, e.g. .reverse probably reverse the table e.g. 9, 8, 7... etc.

  • Bigger disk-swapping, but down two, possible to remove them from the table, and then expand?

    I have a R710 with a PERC 6 / i, Win 2008 R2 running. I have a small disk for the operating system, the other 5 bays are filled with 1 TB disks in a RAID array-5.

    I need to add more storage, so I want to buy three discs of 3 TB. I plan on the withdrawal of old readers, and then put it in the new, bigger. I assume that it will take 1 of the 3 TB and repair. Leaving free 2 TB disk. Repeat this step twice more, which will result in three discs of 3TO with 6 TB of disk space not used in the RAID.

    Is it possible to have the controller expand storage in my table of RAID-5 existing free space, and then delete the two remaining 1 TB disks in the array?

    Who is? Is it still possible? Or do I have to backup the data on another storage device and delete the table and simply start a new one with the three discs of 3 TB and copy the data back?

    This will not work:

    (1) the PERC 6 won't take 3 TB drives; the maximum size is 2 TB.

    (2) you cannot delete records in a table - your RAID 5 5x1TB must always have records of 5 or more (you can add without deleting).  Even when using the same number of disks, isn't it possible to do the smaller table/VD.

    (3) even if you used 2 TB disks, there is no way to expand the RAID 5 using the extra space on the disks - with 5 disks in RAID 5, it will remain the same size. The only thing you can do with the new space is to create a second RAID array on the disks (called "slice").  This new VD is handled by the operating system as another "drive."

    Keep in mind if backup and restore in a larger painting, as if the VD ('disc') is greater than 2 TB, the disc "" MUST be converted to GPT and active UEFI bootmode (instead of BIOS).  Make sure that your backup software is capable of restoring one using the BIOS install on a system UEFI (and the 'disc' TPG 'disc' MBR).

  • remove items from the table and resize the matrix

    Hello, I'm new to Labview so I'm struggling with ideas. I have the following matrix

    A = [1 2 3 4

    5 6 7 8

    9 10 11 12

    13 14 15 16]

    I want to get only follows resized in a matrix with items 6, 7, 10 and 11, that is

    B = [6 7

    10 11]

    I appreciate your help

    On the table-online matrix palette, there is a function to get a submatrix.

  • Not all programs show in Add/Remove programs from the control panel

    Help me please when I go to Control Panel then add and remove programs, that nothing comes and he says its finished loading but all my programs and I scanned with norton 360, malwarebytes, SUPERantispyware, and sophos anti-rootkit, and all of them reported anything.

    Why not post on a forum that is more appropriate for your operating system Windows-
    http://social.answers.Microsoft.com/forums/en-us/group/WindowsAnswers

    This forum addresses the Windows updates.

    Thank you.

    TaurArian [MVP] 2005-2010 - Update Services

  • How to add (remove) items from the context Menu in Windows XP

    I want that some programs appear in the OPEN WITH context menu. This allows me to choose another in the associated program. I don't want to change the association, and I don't want to search the program folder programs whenever I need.
    morphingstar

    Right click on a file you want to modify the 'open with'.
    Click 'Open with' and "Choose program."
    Do not forget that you uncheck "Always use this program to open this type of file" except default if you want to use this program each time.

    Select the program you want to use, if it is not listed, then click Browse and navigate to the program. And then click OK.
    The new program now appears when you right click on the file or program.

    Please let us know if that helps.

  • Problem with the removal of the first row of the table

    Hi all

    I have a problem with my forms with tables where I have buttons to add or remove rows from the table. Adding the lines works fine but deleting lines has a problem when deleting the first row. Example: Here is a table with two rows where column 1 has the add and remove buttons and column 2 user imput that looks like this:

    Column 1
    Column 2
    Add and remove buttons hererank 1
    Add and remove buttons hererank 2
    Add and remove buttons hererank 3

    If the user deletes line 2 the table looks like which is correct:

    Column 1
    Column 2
    Add and remove buttons hererank 1
    Add and remove buttons hererank 3

    If the user deletes line 1 then the table looks like which is false since the ranks 2 and 3 should be left:

    Column 1
    Column 2
    Add and remove buttons hererank 1
    Add and remove buttons hererank 3

    The code is pretty simple:

    Table3.row2.instanceManager.addInstance (1); for the click event of the button Add line

    Table3.row2.instanceManager.removeInstance (1); for the click event of the button Delete line

    What I am doing wrong?

    Thanks in advance!

    Al

    The expression will be based on your structure... done .This refers to the current object, parent refers to the container parent of this object and index is the index of this object. So watching your hierarchy and from the key, you will need this.parent to join the line subform is it in (usually it is th esubform that repeats). If it's in a subform, you will need to add another parent. Continue on this road until you get to the repeating subform and then ask its index. Your expression might look like this.parent.parent.parent.index. Using this.index, you find the instance of the button object and there are just people and that's why you always get 0.

    Make sense?

    BTW your form is attached not... so I can't check what you should put it.

    Paul

  • How to capture what oracle object delete rows in the table?

    Hi all

    I have a table in which I am storing data deleted from the main table. I have a delete on the main table statements in the various packages, now I want to capture what sql statement what package is remove rows from the table. I created the trigger to insert data into the backup table. I'm using oracle 11g.

    Please help me...

    Thanks and greetings

    Vidyasagar.B

    You can use DBMS_UTILITY.FORMAT_CALL_STACK.
    
    SQL> create table t
      2  (
      3    no integer
      4  );
    
    Table created.
    
    SQL> create table t_log
      2  (
      3    str clob
      4  );
    
    Table created.
    
    SQL> create or replace trigger t_trig before insert on t
      2  begin
      3     insert into t_log(str) values (dbms_utility.format_call_stack);
      4  end;
      5  /
    
    Trigger created.
    
    SQL> create or replace procedure p
      2  as
      3  begin
      4    insert into t (no) values (1);
      5  end;
      6  /
    
    Procedure created.
    
    SQL> create or replace package pkg
      2  as
      3     procedure run;
      4  end;
      5  /
    
    Package created.
    
    SQL> create or replace package body pkg
      2  as
      3     procedure run
      4     is
      5     begin
      6       p;
      7     end;
      8  end;
      9  /
    
    Package body created.
    
    SQL> exec pkg.run
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from t_log;
    
    STR
    --------------------------------------------------------------------------------
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    3abbbc6d8         1  anonymous block
    3ad03bf88         2  KARTHICK.T_TRIG
    3a51a18a8         4  procedure KARTHICK.P
    3ac4f1508         6  package body KARTHICK.PKG
    3ac91c250         1  anonymous block
    

Maybe you are looking for

  • Qosmio F50 - 125 Local network sharing problem

    Hello Recently I installed windows 7 and downloaded all the necessary drivers for my computer toshiba laptop. The problem is that I can't access the computers in my home network and others cannot see my computer. I am connected to the network with a

  • Location of the file modified Photos - how I update Photos directory in FCP?

    I recently moved the storage location of all my photo files of my internal HD to an external hard drive that I was running out of room.  When I shot to the top of the FCP to edit videos, I noticed that the list of Photos is now empty where before it

  • In vsphere 6.0 MEM Setup error

    Hi, I keep getting the following error message when you try to install 1.3 MEM in vsphere 6.0: Could not bind vmk1 one iSCSI adapters. He has always worked with vsphere 5.5. This problem occurred with all my knots including installed costs, if I try

  • FREE UPDATE OF THE

    SINCE FEBRUARY 2009, I USE VISTA, BECOMES VERY SLOW WHEN NAVIGATING, IT ONLY Y HAS NO CHANCE TO UPGRADE TO WINDOWS 7 (FREE UPDATE), I'M USING TOSHIBA U400-144 CONCERNING Hussain

  • How do activate you the wireless communication switch?

    I use a Toshiba Satellite L755 (laptop) and my wireless communication switch is turned off, I tried the system restore, but nothing works. My wireless communication switch any lights I tried to use the fn + f8 key is not working. The thing is that I