Hello everyone,
I have two tables:
The first one allows the user to add rows, and for each addition, the second table should get an additional column.
Is there a way of doing this?
Thanks in advance!!
Edwina
Adding table columns dynamically
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 24
- Joined: Fri Nov 04, 2016 7:41 pm
-
- Moderator
- Posts: 419
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
-
- Ebase User
- Posts: 24
- Joined: Fri Nov 04, 2016 7:41 pm
Hello Steve,
Yes, but I am going to store the second table differently in the database, from user's view, "column" is added, but in reality, "row" is added. And in reality, maximum 10 of the "columns" will be added.
I just need to find a way to display the table differently, ie. variable name on the left side instead of on the top of the table.
I am going to try repeater, but not sure whether that will work or not.
regards,
Edwina
Yes, but I am going to store the second table differently in the database, from user's view, "column" is added, but in reality, "row" is added. And in reality, maximum 10 of the "columns" will be added.
I just need to find a way to display the table differently, ie. variable name on the left side instead of on the top of the table.
I am going to try repeater, but not sure whether that will work or not.
regards,
Edwina
0 x
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
Edwina can you explain what it is you're trying to do exactly.
I don't know if this is what you're trying to do exactly but I created a simple project which has 2 non-database backed tables to make things simple.
Table 1 has 3 columns and an add row button. Table 2 has a total of 8 columns all of which are initially hidden. Whenever you click on add row in table 1, I loop through table 2 and find the next column going from left to right that is hidden and unhide that column so that every time you click on add row in table 1, another column from table 2 gets shown. I can send you this project if this what you are trying to do.
I don't know if this is what you're trying to do exactly but I created a simple project which has 2 non-database backed tables to make things simple.
Table 1 has 3 columns and an add row button. Table 2 has a total of 8 columns all of which are initially hidden. Whenever you click on add row in table 1, I loop through table 2 and find the next column going from left to right that is hidden and unhide that column so that every time you click on add row in table 1, another column from table 2 gets shown. I can send you this project if this what you are trying to do.
0 x
-
- Ebase User
- Posts: 24
- Joined: Fri Nov 04, 2016 7:41 pm
Thank you so much Seji,
That's exactly what I am trying to do, I've never thought about doing it this way (using hide).
I tried the repeater, and it worked ok so far. So every time user click 'Add row' for the first table, the second 'table' will have an extra column.
But I really appreciate your suggestion, will try it soon.
regards,
Edwina
That's exactly what I am trying to do, I've never thought about doing it this way (using hide).
I tried the repeater, and it worked ok so far. So every time user click 'Add row' for the first table, the second 'table' will have an extra column.
But I really appreciate your suggestion, will try it soon.
regards,
Edwina
0 x
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Who is online
Users browsing this forum: No registered users and 12 guests