PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Pages and Tables RAD
Pages and Tables RAD
Débuté par Jorge Perez, 27 oct. 2007 18:02 - 2 réponses
Posté le 27 octobre 2007 - 18:02
When WebDEv RAD create a Page with a table put some buttons as like "Modify" "Delete", etc How can I restric this functions only to authorized user?
Thanks
Posté le 29 octobre 2007 - 09:35
Hi Jorge,
You can look at GroupWare control, but I'm not sure it works in Webdev.
An other option is to create a 'security control' file having 'access levels' per user per page (or group of pages) and check user's permissions from this file at page initialization time. In pages you can create a group with your update buttons and make this group invisible or visible depending on user's permission.
In page initialization code:
IF SecurityControl.AccessLevel = "ReaOnly" THEN
grpButtonsUpdate..Visible = False
ELSE
grpButtonsUpdate..Visible = True
END

Of course you'll have to maintain this file but you see the concept,
Christian

When WebDEv RAD create a Page with a table put some buttons as like "Modify" "Delete", etc How can I restric this functions only to authorized user?
Thanks
Posté le 29 octobre 2007 - 15:11
Jorge Perez escribió:
When WebDEv RAD create a Page with a table put some buttons as like "Modify" "Delete", etc How can I restric this functions only to authorized user?
Thanks


Jorge,
Use usergrouware. It works fine.

Saludos :D