11/22/2024 9:55:45 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!
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.
|
|
|
|
AXFormChange(Sender)
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. |
|
|
|
Re: AXFormChange(Sender)
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.
|
|
|
|
Re: AXFormChange(Sender)
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 |
|
|
|
Re: AXFormChange(Sender)
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 |
|
|
|
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!
|
|
|
|
|
|
|
|