Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 1, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: SLX Web startup hook ?
Jeffrey Johnson
Posts: 69
 
SLX Web startup hook ?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 09 8:29 AM
Is there a process in which, I could hook-in a dll or business rule at the start of SLX Web client (after log-in) ?

For example, I would like to call a function at startup to set a few variables based on database record value results and then disable or enable a menu item and allow other pages ie, contact.aspx to be able to use the values as well
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: SLX Web startup hook ?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 09 10:10 AM
How about the Login page itself?

SalesLogix uses an ASP Login control, which exposes an OnLoggedIn event, just add a handler to it and place your custom code within it.
[Reply][Quote]
Jeffrey Johnson
Posts: 69
 
Re: SLX Web startup hook ?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 09 10:21 AM
Where do I access this OnLoggedIn event?

I am trying to make my plug-in which is installed via a bundle to be very unobtrusive to any standard SLX pages, etc. Is it possible then to do this handler without modifying the Login page directly ? I mean, if other plug-in or customization also changes the Login page, I dont want my changes removed.

Also, what is the best way for say the Contact.aspx page to see data from say MyOtherPage.aspx. I was looking into Session hash but if i set that on MyOtherPage.aspx it seems Contact.aspx cannot see it. Do i have to setup Session in the master page? if so how? or can i user Application state ?
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: SLX Web startup hook ?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 09 10:28 AM
As far as I know, you would have to make your changes on the Login.aspx page itself. That is where the control is located and that is where you would have to add the Event Handler and then wire it to the ASP:Login control.

And yes, any customization that you build has the potential of being overwritten by someone else's. You have to trust the Administrator to properly merge any changes as he/she applies the bundles.

As far as Session variables, your Contact page should be able to see any Session variables set from any page (off course, within the same session). I have extensively used Sessions variables and am aware they work fine. There is no need to do any setup, just make sure you put in the necessary code to handle any exceptions.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: SLX Web startup hook ?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Dec 09 2:33 PM
Quote:
Originally posted by Jeffrey Johnson

Is there a process in which, I could hook-in a dll or business rule at the start of SLX Web client (after log-in) ?

For example, I would like to call a function at startup to set a few variables based on database record value results and then disable or enable a menu item and allow other pages ie, contact.aspx to be able to use the values as well


1) There are several ways to do this. First, the built-in Global.ascx file could be used to wire up a session start handler.

2) As Raul mentioned, you could add some code into the Login.aspx page and wire up the OnLoggedIn event. Of course, any changes by Sage to the Login.aspx file and you'd loose your changes.

3) You could create a portal-wide module that could do what you've described

4) Finally, you could add a standard HttpModule to the site (wired up in the web.config to do this too.

Anyway, just a few ideas.

-Ryan
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/1/2025 1:02:39 PM