Home » Developer & Programmer » Forms » Dynamic columns
Dynamic columns [message #594342] Tue, 27 August 2013 10:47 Go to next message
newbieinapps
Messages: 13
Registered: August 2013
Junior Member
Hi all,

I have 2 tables T1, T2

T1 is having 2 columns t1_c1, t1_c2
T2 is having 3 columns t2_c1,t2_c2,t2_c3

I need to design a form which should be like

there must be a pop item (Dropdown menu) in a separate block.

If I select 1 from the pop item,
T1 with 2 columns should display in a tabular form.
If I select 2 from the pop item,
T2 with 3 columns should display and T1 with 2 columns should hide.

So the form should be dynamic based on the selected pop item.
Is there any chance to do this?
If so please explain me.
Re: Dynamic columns [message #594348 is a reply to message #594342] Tue, 27 August 2013 13:35 Go to previous messageGo to next message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Put each data block onto a separate stacked canvas. Show/hide them depending on a choice you make.
Re: Dynamic columns [message #594361 is a reply to message #594348] Tue, 27 August 2013 20:48 Go to previous messageGo to next message
newbieinapps
Messages: 13
Registered: August 2013
Junior Member
Could you please elaborate in detail
Re: Dynamic columns [message #594376 is a reply to message #594361] Wed, 28 August 2013 01:22 Go to previous message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You have two tables. Each of them should be represented by its own data block in a form. As you want to show only one of them, one option is to create two stacked canvases and place these blocks onto them - every block onto its own canvas.

A content canvas (which you must have) would contain a dropdown menu you mentioned. Depending on what you select, show one stacked canvas and hide another.

Or, you could try with tab canvases; that's maybe even simpler.
Previous Topic: advantages of forms
Next Topic: scroll bar issue
Goto Forum:
  


Current Time: Fri Apr 19 10:04:24 CDT 2024