Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 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: Closing Form on open (in SLX 6.2)
Rene Paredes
Posts: 6
 
Closing Form on open (in SLX 6.2)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Feb 07 1:16 PM
fiogf49gjkf0d
Hi,

I am trying to close form on open event. But it is not working. I am using the following code to close the form in open

Application.BasicFunctions.CloseCurrentView(True)

Even i tried with this also: Application.BasicFunctions.CurrentViewCancelShow

None of them is working.
Please assist how to close a form on open event.

Regards..
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Closing Form on open (in SLX 6.2)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Feb 07 1:27 PM
fiogf49gjkf0d
Closing a form on it's open event never really works. A better approach is to add code to prevent the form from opening in the first place.
[Reply][Quote]
Rene Paredes
Posts: 6
 
Re: Closing Form on open (in SLX 6.2)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Feb 07 1:53 PM
fiogf49gjkf0d
You have some idea of like doing it?
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Closing Form on open (in SLX 6.2)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Feb 07 2:02 PM
fiogf49gjkf0d
OnOpen wouldn't work but I believe OnChange should. Since that happens after the controls are initialized from the database it shouldn't cause as much of a hiccup.

With regards to an example it would have to be in context of what you're doing. If you're closing the form because of a missing value for instance, query the value ahead of time and only open the form if it's present.
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Closing Form on open (in SLX 6.2)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Feb 07 5:13 AM
fiogf49gjkf0d
use WhenChange and Application.BasicFunctions.CurrentViewCancelShow
[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): 11/27/2024 7:02:34 AM