Magic User Group

Magic Wiki-Wakka : HidingTABpanes

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register
Most recent edit on 2007-08-11 17:32:58 by InformaPlus

Additions:

Handling Dynamic Tabs:





Edited on 2007-08-11 17:24:26 by InformaPlus

Additions:
Back to: TuTorials



Edited on 2005-07-08 14:40:02 by NorbertGutscher

Additions:

Hiding TabPanes (or Listbox or combobox)



Deletions:

Hiding TabPanes (or Listbox or combobox)





Edited on 2005-07-07 22:00:17 by FrankVanHerreweghe

Additions:
Frank Van Herreweghe



Edited on 2005-07-01 22:09:38 by FrankVanHerreweghe

Additions:
All Magic Windows versions
Finally found a simple solution for a question which is raised already several times.
With an example:
You can define a Tab with labels 1,2,3,4,5
When you place your fields on it you can link them on different tabs, you run it ... no problem you see tab 1,2,3,4,5
BUT
if you say user X may not see tab 2 and 3 you have a problem.
If you use variable conditions on the 'Label' of the tab and make it look 1,4,5 the tab will be (in runtime) named correctly 1,4,5 but the linked fields will be wrong.
Tab 1 will show fields of Tab 1, Tab 4 will show fields of Tab 2, Tab 5 will show fields of Tab 3 !!
You can solve this with displaying always 1,2,3,4,5 and many conditions on the fields like not visible but a more simple solution is :
In Record Main:
On Form:


Deletions:
All Win-Magic versions
Finally found a simple solution for a question which is raised here already several times.
with an example:
You can define a tab with labels 1,2,3,4,5
When you place your fields on it you can link them on different tabs
you run it ... no problem you see tab 1,2,3,4,5
BUT
if you say user X may not see tab 2 and 3 you have a problem.
If you use variable conditions on the 'Label' of the tab and make it 1,4,5 the tab will be (in runtime) named correctly 1,4,5 but the linked fields will be wrong. Tab 1 will show fields of Tab 1, Tab 4 will show fields of Tab 2, Tab 5 will show fields of Tab 3 !!
You can solve it with displaying always 1,2,3,4,5 and many conditions on the fields like not visible but a more simple solution is :
In Record Main:
On Form:




Oldest known version of this page was edited on 2005-07-01 22:00:10 by FrankVanHerreweghe []
Page view:

Hiding TabPanes (or Listbox or combobox)


All Win-Magic versions

Finally found a simple solution for a question which is raised here already several times.

with an example:
You can define a tab with labels 1,2,3,4,5
When you place your fields on it you can link them on different tabs
you run it ... no problem you see tab 1,2,3,4,5
BUT
if you say user X may not see tab 2 and 3 you have a problem.

If you use variable conditions on the 'Label' of the tab and make it 1,4,5 the tab will be (in runtime) named correctly 1,4,5 but the linked fields will be wrong. Tab 1 will show fields of Tab 1, Tab 4 will show fields of Tab 2, Tab 5 will show fields of Tab 3 !!

You can solve it with displaying always 1,2,3,4,5 and many conditions on the fields like not visible but a more simple solution is :

In Record Main:
Select Vitual v-tab
Select Vitual v-combo Init=v-tab

{that's a new example of the 9.4 new feature Forward Recomputation ;-) }

On Form:
Place the Tab and the Combo on the form.
The Tab will have as Label the 'variable' expression depending on user X his rights (so that it becomes tab 1,4,5)
The Combo will ALWAYS have all the posibilities possible in the TAB.
LINK all your fields of the Tab to the COMBO !!
Make the combo unvisible with a width-expression=0 (don't set the property visible='false'log !!)

... And you're done.

How it works ?
Clicking on the tab-value 4 will change the v-combo in the same value as the v-Tab.
On screen the fields linked to the v-combo (4) will become visible. The Tab-panes will only have 1,4,5

Hope it will be usefull for some ...

Category
CategoryHowTo
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki trunk
Page was generated in 0.1009 seconds