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!
|
|
Calling an Active Form from a Legacy View
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? |
|
|
|
Re: Calling an Active Form from a Legacy View
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?
|
|
|
| |
|
Re: Calling an Active Form from a Legacy View
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. |
|
|
|
Re: Calling an Active Form from a Legacy View
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 |
|
|
|