Home > Archive > Clarion > August 2006 > Conditionally hide a tab in a multi-tab form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Conditionally hide a tab in a multi-tab form
|
|
| Tore Johnny Bråtveit 2006-08-21, 6:55 pm |
| Hi,
I am working on a project where the main update form consist of
not less than seven tabs, several of them with a listbox and
corresponding update buttons. I need to hide one of the tabs
under a particular condition, so that the end user cannot add any
data there. I know I could have solved this by disabling the
update buttons conditionally, but I think hiding the entire tab
would be a better solution.
Could anybody please point me in the right direction as to what
the code would be like, and which embed point I should use?
Thank you! :-)
Tore Johnny
| |
| Hans B. 2006-08-22, 3:55 am |
| IF Condition = TRUE
Tab {PROP:hide} = TRUE
END
Hans
"Tore Johnny Bråtveit" <tjb@broadpark.no> schreef in bericht
news:Pine.WNT.4.64.0608211701300.2852@aron...
> Hi,
>
> I am working on a project where the main update form consist of not less
> than seven tabs, several of them with a listbox and corresponding update
> buttons. I need to hide one of the tabs under a particular condition, so
> that the end user cannot add any data there. I know I could have solved
> this by disabling the update buttons conditionally, but I think hiding the
> entire tab would be a better solution.
>
> Could anybody please point me in the right direction as to what the code
> would be like, and which embed point I should use?
>
> Thank you! :-)
>
> Tore Johnny
>
>
| |
| KEVIN.GAUTHIER@DRESSER.COM 2006-08-24, 7:55 am |
| TJB
OK
On the tab itself, >>Tab Properties>>Mode =3D hide
Set up some type of field or condition, Like in a list box, so that it
will know when to hide or unhide the tab.
Type in this kind of source code
Example
!***************************************
*
if QER:JobType =3D 'CR'
UNHIDE(?Tab2)
UNHIDE(?Tab3)
UNHIDE(?Tab4)
UNHIDE(?Tab5)
UNHIDE(?Tab6)
disable(?QER:ORDER_NO)
ELSE
HIDE(?Tab2)
HIDE(?Tab3)
HIDE(?Tab4)
HIDE(?Tab5)
HIDE(?Tab6)
enable(?QER:ORDER_NO)
END
!***************************************
*****
Hope that helps
KeRoGa
Tore Johnny Br=E5tveit wrote:
> Hi,
>
> I am working on a project where the main update form consist of
> not less than seven tabs, several of them with a listbox and
> corresponding update buttons. I need to hide one of the tabs
> under a particular condition, so that the end user cannot add any
> data there. I know I could have solved this by disabling the
> update buttons conditionally, but I think hiding the entire tab
> would be a better solution.
>
> Could anybody please point me in the right direction as to what
> the code would be like, and which embed point I should use?
>=20
> Thank you! :-)
>=20
> Tore Johnny
| |
| Tore Johnny Bråtveit 2006-08-24, 7:55 am |
| Thank you both to Kevin and Hans B. for responding to my question.
Things are now working like I want them to, thanks to your
assistance.
Thank you very much!
Best regards
Tore Johnny
|
|
|
|
|