Multiple Buttons working in a Table

JMacDeezy

07-07-2017

I have a table in my form with the following hierarchy:

Page1

                Subform 1

                                ABCTable

                                                Headings

                                                                Column1

                                                                OS

                                                                Benchmark

                                                                FQDN

                                                                IPs

                                                                Section

                                                                OVAL

                                                                Justification

                                                                Date

                                                                Column10

                                                Textfields

                                                                Button3

OSTextField

BenchTextField

FQDNTextField

IPTextField

SectTextField

OVALTextField

JustTextField

DateField1

Button2

I also have 3 buttons separately under the table:

AddRow

Edit

Separator

Buttons properly working:

Button3 – JavaScript and when it is clicked, adds a new row directly underneath the row clicked

Button2 – Deletes the current row when clicked

AddRow – Adds a blank row at the end of the table

Problems Buttons:

Separator: Similar to the add row button, instead I am trying to get the button to add a thin black row in the table for all cells. This is pretty much going to be used/moved in the table to separate different groups of rows that users fill in. I get it to add a row successfully, but cannot figure out to shrink the added row to a smaller size and to make the background of all the cells be black. Here is my JavaScript:

// '_' is shorthand for instanceManager, eg '_TextFields'

ABCTable._TextFields.addInstance(true);

// if the edit mode is active, deactivate it

// also want to have new row in non-edit mode

editRow.caption.value.text = "Done";

editRow.execEvent("click");

                                               

Edit: I am trying to follow example #5 listed here:  http://assuredynamics.com/wp-content/uploads/2010/11/Assure-Dynamics-Building-dynamic-tables.pdf

The link has the screenshots and scripts used to create the table. I see the script is all there on the website to show/hide buttons when edit is clicked. My problem is I cannot seem to figure out how to add the up and down arrow buttons in the table to move cells up and down. The delete row button is there and functional. Any idea on how I can add two different buttons (Up/Down and Delete Row) buttons within the same cell in a Table row? The script on the edit button has the functionality to show/hide the buttons once clicked.

If anyone can help me out, I would greatly appreciate it, I can easily send you the form to look at as well. My e-mail is joshrmcdonald7@gmail.com if you would like to look at the actual attachment.

Regardless, assuredynamics.com is a very useful website and has plenty of beginner to advanced tutorials about Adobe LiveCycle. Recommend you take a look even if you cannot help. If you would like the script of the buttons I have listed above that work, let me know and happy to provide as well.

Thanks.

Accepted Solutions (0)

Answers (0)