+ Start a Discussion
punnoosepunnoose 

can a validation be done on load

i have an application with 4 tabs(each tab has a page attached to it), is it possible to check on load if the user has right previlages from an external webservice.

If the user doesnot have any previlages the application should not load (it should show an Error page)like if the login for salesforce is treated as vilidation.

If it is not there in an external database application should not be loaded. Else all the application needs to be loaded

Regards

Punnoose

JitendraJitendra

Hi,

With the help of <action:support> you can call the method of controller on Page load. In that method check accesibility from external web service meanwhile show the loading image on VF page.

 

If user is authorized then show whatever is the requirement otherwise display an error.