Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 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: Close a managed form
John Bennett
Posts: 34
 
Close a managed formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Sep 07 2:19 PM
V6.2.4

I have a toolbar button that fires a script and first checks to see if i have Opp main view up..if not i open a managed view that displays a grid with our opportunities showing. User can then pick the Opp they want by either double clicking or highlighting row and clicking on Ok button. From there I grab the Opp ID and open a data view where the user will then proceed to move on in their process.

Problem is that I want the managed view to close and the data view to open once they have either double clicked on the record or clicked on OK. Currently the data view opens but the managed view is still open behind it. I have everything working except closing the managed view? Do I use the form.ModalResult = mrOK or can i use App.basicfunction.closecurrent view and when do i actually call it? before i open the data view or after?

JB
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Close a managed formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Sep 07 2:47 PM
The trick is on doing it on the Script that fires the Managed view.

On the Manage view, set some global variables to indicate the ID of the records that you want to open and/or whatever flag you want to send.
Then on the Script that opens the Managed view, right after you display it, add the code that checks the Global variables and invokes the Data view from there.

By doing it this way, your Managed View will already be closed, and then the script will open the Data view.


[Reply][Quote]
John Bennett
Posts: 34
 
Re: Close a managed formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Sep 07 3:25 PM
thanks!!
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Close a managed formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Sep 07 4:01 PM
Any day!!
[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): 6/20/2025 7:05:40 AM