Thursday, January 16, 2020

Tip of the Day: Manage Tab Permissions with Enhanced Tab Set Control
Product.......: R:BASE X.5 and R:BASE X.5 Enterprise (Version 10.5)
Build.........: 10.5.2.20114 or higher
Sections......: Forms
Keywords......: Tab Set, Tab, PROPERTY, GETPROPERTY, EEP

Did you know Tab Set control was enhanced with new properties and an added
EEP to make it possible for access to a tab to be prevented?

The Tab Set control includes two properties TabTo and AllowChange and the
additional "On Before Tab Change" EEP, which is triggered before the tab is
changed.

TabTo
Returns the index of the target tab. The control uses a zero-based index
for tabs. Tabs "Two" and "Four" are indexed as 1 and 3.

AllowChange
Tells the Tab Set control if it should allow the tab change or not. The
default behavior is to allow the change.

Note that the properties TabTo and AllowChange are only to be used in the
"On Before Tab Change" EEP.

-- The following prevents focus to focus to tabs 2 and 4.
   SET VAR vTab TEXT = NULL
   GETPROPERTY TabSetControl1 TABTO vTab
   IF vTab = '1' OR vTab = '3' THEN
      -- Prevent the tab change
      PROPERTY TabSetControl1 ALLOWCHANGE FALSE
   ENDIF
   RETURN

The added functionality makes it possible for access to a tab to be prevented
by user, application menu structure, and more!

Very Best R:egards,

Razzak.

https://www.rbase.com
http://www.facebook.com/rbase/


--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/202001160940.00G9eJI3013634%40jax4mhob04.myregisteredsite.com.

Reply via email to