Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, May 6, 2024 
 
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: AXFormChange(Sender)
Paul Riegle
Posts: 9
 
AXFormChange(Sender)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 06 2:54 PM
fiogf49gjkf0d
Ok I feel like I'm missing something here. On some forms this works:
Sub AXFormChange(Sender)
End Sub

On some this works:
Sub SupportAXFormChange(Sender)
End Sub

on some you have to use:
Function init()
End Function

and on some i can't get any of them to work. What am I missing?

I'm trying to get it to fire once the form has pulled its data from the db.
[Reply][Quote]
Mike Mahoney
Posts: 34
 
Re: AXFormChange(Sender)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Apr 06 12:07 PM
fiogf49gjkf0d
I hope I understand the crux of your issue. If not, let me know.

It really doesn't matter what the subroutines or functions are named. It's when and where they are executed. If you look at the properties of any given form, there is an events tab. This events tab controls the firing of sub-routines.

Look at the properties of form itself (as opposed to an object on the form). The OnOpen event is a great event to fire a subroutine just as the form is drawing. The OnChange event fires just after the OnOpen - and also fires multiple times while you are on the form. OnChange also fires before you close the form. If you must check something before the form closes call a function in the OnValidate clause.

I've not had good luck with using OnCreate, OnDestroy, OnClose.
[Reply][Quote]
Paul Riegle
Posts: 9
 
Re: AXFormChange(Sender)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Apr 06 12:25 PM
fiogf49gjkf0d
Mike thats exactly what I needed, thanks. I'm coming back to programming from like a 5 year hiatus so bear with me....i'll be able to contribute eventually
[Reply][Quote]
Mike Mahoney
Posts: 34
 
Re: AXFormChange(Sender)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Apr 06 12:30 PM
fiogf49gjkf0d
We've all been there dude!

I can't tell you how much I had to reinvent because these forums did not exist in the days I was learning the program.

Once you have the properties window open, use the combo-drop down on top of the properties window to look for your form properties. It's usually called "Form: " If you've never change the form properties before, it's probably called "Form: TAXForm"

Happy coding!

-Mike
[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 © 2024 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): 5/6/2024 7:09:05 AM