Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 23, 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!
 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: How can I close One form and open another
Bill
Posts: 71
 
How can I close One form and open anotherYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Feb 08 9:21 AM
I have a series of screens that have a Next button on them. There is a global recordset that will get passed from screen to screen. What I would like to do is have the current screen close and another screen open when a user presses the next button. Users will also have a back button that they can select if they need to go back and enter more data before continuing on. I have tried several scripts on the OnClick event for the Next button but I am unable to get the current screen to close and the next screen to open. The next screen that is called opens but the former screen is still visible also. Any ideas would be greatly appreciated. Thanks.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: How can I close One form and open anotherYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 08 10:42 AM
Hi Bill,

The problem is that when you open a form modally, it is a blocking call. That is, the next line of code does not execute until the blocking call returns (meaning the form is closed). So, in your scenario, you're launching the next form from the "Next"button of the current form. The line of code to close the current form will not execute until the next form closes.

What you need to do is have a script that controls the flow from one screen to the next. The script would be something like this:

1) Open form1
----- Form1 opens
----- Form1 closes and sets a global to indicate if Next/Cancel/etc was the closing action
----- Optionally Form1 could set the ModalResult which could be read from the script
2) Read global or ModalResult set from Form1
3) Launch Form2
....

See what I mean?
[Reply][Quote]
Steve Smith
Posts: 3
 
Re: How can I close One form and open anotherYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Feb 08 4:30 AM
Hi Bill

Another option on this is to have just one form and a tab control to give the wizard effect?

It depends on the result you are looking for
[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): 8/23/2025 12:56:55 AM