Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Monday, August 18, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
8/18/2025 1:27:27 AM
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: fire event from onchange of lueAccount (insert opp)
Steve Knowles
Posts: 657
fire event from onchange of lueAccount (insert opp)
Posted: 15 Apr 09 6:40 AM
I have added a dropdown to the insert opp form (I have moved this file to support files so I can modify in VS) that is populated with routine call 'BindList' that uses the accountID of the account in lueAccount. What are my options on when to fire this event based on the fact that the account is often chosen after the form has loaded? Does the lueAccount have an onchange event I can hook into? I noticed there is code in AA on the OnChange event but I don't see how to hook into this in Visual Studio.. I also tried adding code to the onchange of the Reseller lookup to see if code was generated I could copy but I don't see where this event is fired from.
I was also trying to capture the postback of the lueAccount control. I tried in the pageload event of the smartpart but this doesn't seem to fire when the lueAccount posts back.. Where can I fire my routine to populate my custom dropdown when an account has been chosen on the insert opp screen? Thanks
[
Reply
][
Quote
]
Nick Hollis
Posts: 549
Re: fire event from onchange of lueAccount (insert opp)
Posted: 17 Apr 09 11:31 AM
Add an onchange event to the lookup - and select C# Snippet Item (Obsolete). This will keep the code in the form and will be easier for you to manipulate in VS. The new Code Snippet method removes all of the code and puts it in a dll, which is not easy to manipulate in VS. It is a better approach from a software perspective to use the new code snippet (fully separating logic from presentation etc (blah blah)) but it does have its drawbacks.
Actually re-reading your post I guess you are already utilising a custom smartpart? (not a quickform). If so a line such as:
//lueAccount.LookupResultValueChanged += new EventHandler(myMethod);
to your OnWireEventHandlers() method (in your custom smartpart). This will setup an onchange call for your lookup. Then just code your method (myMethod)...:
//protected void myMethod(object sender, EventArgs e) { ..... }
Thanks,
Nick
[
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
|
page cache (param): 8/18/2025 2:24:25 AM