Current Position:Home > How to identify the last instance of a dynamic table row

How to identify the last instance of a dynamic table row

Update:10-11Source: network consolidation
Advertisement
Hi all,
I am trying to figure out how to create an action for my form in Livecycle Designer ES2 that will affect the most recent instance of a dynamic table row. I have a table with a repeatable row where the user will enter information about a purchased part and I have buttons that allow the user to add and remove rows. I need to create an additional add row button that will add a new instance of the repeatable table row (this is not an issue) and will disable and change the background color of the first cell in the added row. The problem I am having is how to have an action that affects the last instance of a row.
If anyone knows how to do this in Javascript I would appreciate some advice/help.

The Best Answer

Advertisement
Hi,
I think this is beyond what an action will provide. You will a have to write some JavaScript directly.  When you call the addInstance method it returns the new row, so you can do something like;
var row = Table1._Row1.addInstance();
row.TextField1.border.fill.color.value = "255,0,0";
row.TextField1.access = "protected";
To find the last row and do the same thing you can do something like;
var row = Table1.resolveNode("Row1[" + (Table1._Row1.count - 1) + "]");
row.TextField1.border.fill.color.value = "255,0,0";
row.TextField1.access = "protected";
Regards
Bruce
  • How to identify the last instance of a dynamic table row Update:10-11

    Hi all, I am trying to figure out how to create an action for my form in Livecycle Designer ES2 that will affect the most recent instance of a dynamic table row. I have a table with a repeatable row where the user will enter information about a purch

  • Identify an ASM instance Update:11-30

    Hi Experts, I have a short questions about ASM. I know that one ASM instance can be used by many RDBMS instances and disks/diskgroups in one ASM instance can be shared by different databases. But how can we set a database instance to use only one spe

  • The view instance name of the table and its columns cannot be null.ERROR Update:10-11

    Currently I am working in OTL Approval Workflow. After submitting the time card, When i open the notification from status monitor, the following error occurred. Could anyone please help in this regard. The view instance name of the table and its colu

  • How to identify missing records in a single-column table? Update:10-11

    How to identify missing records in a single-column table ? Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.Something like: WITH t AS (            SELECT 1

  • Triggering "exit" event of a drop-down list in all instances of a table row Update:10-11

    I have a drop-down list in a table row with multiple instances that performs a calculation on the exit event. This calculation draws information from 2 other dropdown lists contained above in non-repeating rows of the same table. The desired behavior

  • Select all instances of cells form a dynamic table Update:11-30

    HI, I've an issue with a table. I've found some answers here : http://forums.adobe.com/thread/849841 but don't work. Let me explain. I've got a dynamic table (with addInstance button and remove one). There is 4 columns: 2 open and 2 readOnly. Some us

  • Can we have two admin instances while performing Dynamic clustering? Update:11-30

    Can we have two admin instances while performing Dynamic clustering?Just referring you to this thread. https://social.technet.microsoft.com/Forums/windowsserver/en-US/91f6434f-8a4e-4e53-b185-2f3a493aa134/issue-with-office-365-integration-module?forum

  • Are reentrant VI dataspace instances static or dynamic? Update:11-30

    Hi, all, Still looking at the good ol' LED blink detector issue. Another member posted a solution that depended on shift registers to store the times when the LED changed state. This works fine for monitoring a single LED (after some debugging). But

  • How to manage rdf schema and instance data in multiple tables? Update:11-30

    Hi, I need to store the rdf schema in one table and rdf instance data in another table. 1. How I can do this? 2. How to configure the joseki-config.ttl to work for multiple models? Some example will help me to understand the solution. 3. Is there any

  • How to identify the bpel instance called by specific esb instance Update:11-30

    Hello expets, Greetings, Is there any way to find out the instance of BPEL process invoked by an esb process. In short i have a esb process invoking a bpel. I want to find out the Instance of Bpel process invoked by esb Are there any tables which sto