Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 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 - Legacy Development
Forum to discuss SalesLogix legacy development including views, scripts, etc.. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Legacy Development | New ThreadView:  Search:  
 Author  Thread: Calling an Active Form from a Legacy View
Dan Carvin
Posts: 227
 
Calling an Active Form from a Legacy ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Jun 08 6:03 PM
I have a button in a Legacy view that I want to open an Active form for editing or to create a new record.

(SLX 6.2 - I know I'm supposed to recreate the Legacy view as an Active form, but this is a very complex form & assorted scripts.)

There is an issue with knowing which record should be loaded into the Active form, so the legacy view has a legacy script that loads certain values into global variables which are supposed to be used by the Active Form to query the record to lead, or, if no record exists, load some default values to create a new record.

But when I try to launch the Active form directly from the Legacy button control, I get "Cannot find or access the subject required by the (Active form name) plugin using the option you selected.

Next, I had the legacy button launch an Active Script that launched the Active Form. The script ran (msgboxes before & after the Application.BasicFunctions.DoInvoke appeared), but the Active form did not appear.

Finally wrote a legacy script launched by the button to launch the Active Form. This throws the same error as the first thing option I tried.

Any suggestions?
[Reply][Quote]
Dan Carvin
Posts: 227
 
Re: Calling an Active Form from a Legacy ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jul 08 2:07 PM
Thought I'd give this another shot.

The problem may be that the the ActiveForm I'm trying to open is an Add/Edit view for a different tab on the same mainview (Opportuntities). Is it not possible to open a bound Opportunity form from a different Opportunity Form?

[Reply][Quote]
Walter Shpuntoff
Posts: 167
 
Re: Calling an Active Form from a Legacy ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Jul 08 5:51 AM
What call are you using to launch the active form?

Also - you could try having your legacy script launch an active script that launches the form.

ws
[Reply][Quote]
Dan Carvin
Posts: 227
 
Re: Calling an Active Form from a Legacy ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 08 9:39 AM
I'm using
DoInvoke "Form","Personal:FormName"

The legacy launch script also sets global variables that should be read by the Active Form to set which record to open.

I tired launching the active script from the legacy script to open the form using Application.BasicFunctions.DoInvoke. I get the test mesboxes I Put int he script, but the active form does not appear, and doesn't throw an error either.
[Reply][Quote]
Walter Shpuntoff
Posts: 167
 
Re: Calling an Active Form from a Legacy ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 08 9:45 AM
I'd try something like this:

1. legacy script sets globals and calls active script
2. active script does an application.showviewforrecord type call

or the other way to go is to use an unbound form. I suspect that it's "getting lost" the way you are trying to do it.

ws
[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/25/2024 7:51:22 AM