Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

dynamically adding tables based on radio button selection

Avatar

Level 2

Let's say I've got 4 radiobuttons.

Each radiobuttons opens a subform/Table.

For Example:

button 1     button2     button3     button4  

Each button belongs to each company. i am displaying total employees present in each company by selecting radio

buttons

when I click on them they open subform/tablewhich should be dynamic ie (data is displaying from database)

if button 1 has 100 employees under it then by clicking button 1 it display 100 rows
if button 2 has 20 employees  under it then by clicking button 1 it display 20rows
if button 3 has 30 employees  under it then by clicking button 1 it display 30rows
if button 4 has 40 employees  under it then by clicking button 1 it display 40rows


Please help me out..

1 Reply

Avatar

Level 6

Adding table rows dynamically is not always works so I recommend you to redesign your template and use single row subform in place of entire table. It is easy to work with repeating subforms than table rows in your case. Then if you are using XSD in your template just match the parent node to the subform binding and then make row data is pulled from child nodes (siblings) under that parent. Once you set your bindings and write your JS/FormCalc scripting for Button click you should see the expected result. If you still need assistance shoot me an email with your attached template at "meetsekhar AT yahoo.com"

Good Luck,