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!
|
|
Close a managed form
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 |
|
|
|
Re: Close a managed form
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.
|
|
|
| |
| |
|