5/4/2026 1:38:17 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 writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Run code on Form B to run when triggered on Form A
Posted: 29 Oct 07 7:07 AM
|
Is it possible to run the code on a form without actually clicking on it? I have a complex calculation behind one form. I am wondering if there is a way to run this code as if someone has clicked on the tab to activate the AXFormChange event to start the chain of events on the form that performs the proper calculations from another tab.
So I have complex code behind form B. When values are changed on Form A, I want to run the code on form B, as if some had given it focus to run the code behind it. thanks |
|
|
| |
|
Re: Run code on Form B to run when triggered on Form A
Posted: 29 Oct 07 10:25 AM
|
| You could also create a reference to the from containing the code (it would have to be a form that is open) by looping through the active forms collection in SLX. However, this will only allow to to reference controls on that form. I'm not sure if you can use that same process to call a particular method or function. You could have a function on the click event of a button on the other form and then call that click event, but I'm not sure about returning a result from the function if you call it in that way. |
|
|
|
Re: Run code on Form B to run when triggered on Form A
Posted: 29 Oct 07 10:45 AM
|
I'd second what Lloy said, put it into an include script and add it to both places. That's the best route.
However, you could also load the form as a MainView, but just never call Show or ShowModal. The form would be loaded and you could access the script on the form to call whatever you want. |
|
|
|
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!
|
|
|
|
|
|
|
|