Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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: Controlling a Managed Form in SLX 7
Richard
Posts: 33
 
Controlling a Managed Form in SLX 7Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Dec 06 3:31 PM
fiogf49gjkf0d
I read the "Controlling a Managed Form" thread with hope since I'm trying to do the same thing. Sadly, the suggestions don't work for me in version 7.

I'm trying to close a manage form only after I can validate data and I'd like to put code in the OK button click event to control the close. Having set the modalresult to mrCustom, I can prevent the form from closing, but I can't find a way to close the form when I want to.

CloseCurrentView doesn't do anything, regardlees of whether I set it to True or False. And setting the modalresult of the button to mrOK inside of the click even doesn't do anything because (I suppose) the button has already been pressed.

Is there a clean way to close the current view? Or, more precisely, what's the cleanest way to close the current view?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Controlling a Managed Form in SLX 7Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Dec 06 7:43 AM
fiogf49gjkf0d
To close the form, set the ModalResult of the FORM, not the ModalResult of the button.

ie:

'do this
ModalResult = mrOK

'NOT this
button1.ModalResult = mrOK


Make sense?
[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/26/2024 10:29:08 PM