7/1/2025 5:34:33 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Invoking a EntityPortalPage via button press - startup issue
Posted: 01 Dec 09 2:22 PM
|
I have an entityPortalPage that contains 3 tabs (ascx, smartparts) which is invoke when the user clicks on a button in the Nav bar menu under Marketing. The question I have is, is it possible to call a function (OnInit ?) before the smartparts are loaded to do some account verification logic; if so, what event and/or function do I override?
|
|
|
| |
|
Re: Invoking a EntityPortalPage via button press - startup issue
Posted: 02 Dec 09 3:53 PM
|
Sure,
Basically, I want to inform the user of error or allow user to see my CoolNew.aspx portal page based on a database field in my table. I would like to read that database field on the click of the Nav button then show the user a blank page in CoolNew.aspx (with msg saying not authorized etc and dont show the tabs). I supposed I could try to use roles. Currently, I am doing the validation in the OnInit of the first tab. |
|
|
|
Re: Invoking a EntityPortalPage via button press - startup issue
Posted: 02 Dec 09 4:09 PM
|
You may want to look into the Link Handler class. If you notice, the Menu items under Schedule invoke a Javascript function. That in turn calls some server side code, which you can use to programatically determine if it is ok to proceed to the Page or if you rather redirect the user to different content.
Now, that would not prevent the users from typing your page directly into the Address bar and accessing it, so you probably should either use Roles, or have validation code built into your Tabs as well.
|
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|