Normal Topic opening a from in other application (Read 848 times)
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
opening a from in other application
Feb 14th, 2008 at 1:44pm
Print Post Print Post  
Hallo!

I would like to use a CommandButton in a application A and want to start directly a form X  in a Application B
Is there a way to do that with a unsecured application B ?
and how is with a secured application B ?

Thank you for the Help.

Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: opening a from in other application
Reply #1 - Feb 14th, 2008 at 2:32pm
Print Post Print Post  
One way is to set the form to be the Startup Form in Application B then call DeferredOpenApplication() form the command button in Application A.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: opening a from in other application
Reply #2 - Feb 14th, 2008 at 3:09pm
Print Post Print Post  
Hallo Erika,
The application B has 11 forms.
The form to start is variable . Therefore one of 11 forms in the Applicatiob B.

Thanks.
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: opening a from in other application
Reply #3 - Feb 14th, 2008 at 3:19pm
Print Post Print Post  
Another way to open a certain form upon application start up, is to use @SelectTreeItem() in the "On Application Open" event. This allows you to select whether to open it in Add or Update mode. You could probably use a text file to get the name of the form into the 2nd application.

Quote:
and how is with a secured application B ?

You can use the "-macro" switch in DefferedOpenApplication(). The macro can enter the login information. See this thread for details: http://www.lantica.com/Forum3/cgi-bin/yabb2/YaBB.pl?num=1200773744
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: opening a from in other application
Reply #4 - Feb 14th, 2008 at 3:24pm
Print Post Print Post  
Quote:
You can use the "-macro" switch in DefferedOpenApplication(). The macro can enter the login information. See this thread for details: http://www.lantica.com/Forum3/cgi-bin/yabb2/YaBB.pl?num=1200773744


Carl,

Does this work with DeferredOpenApplication() or do you need to use a different launch command?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: opening a from in other application
Reply #5 - Feb 14th, 2008 at 3:43pm
Print Post Print Post  
Hammer wrote on Feb 14th, 2008 at 3:24pm:
Carl,

Does this work with DeferredOpenApplication() or do you need to use a different launch command?

Oops, You're right!  Embarrassed

I changed from using DeferredOpenApplication() to @AsynchShell(). The shell points to a Windows shortcut file which contains the -macro switch.

So Amor, you could use something like the following, instead of DefferedOpenApplication():
Success = @AsynchShell("\Documents and Settings\Carl\Desktop\ApplicationB.lnk")
This opens a Windows shortcut file. The shortcut doesn't need to be located on the Desktop, you could bury it in another folder, somewhere out of sight.

The "Target" in the shortcut file would look something like this:
C:\Sesame2\Program\sesame.exe Data\ApplicationB.db -macro Data\Login.mac
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged