Normal Topic Command Button to Launch another database (Read 682 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Command Button to Launch another database
Jan 9th, 2007 at 3:21pm
Print Post Print Post  
I was fiddling with creating a command button within one database to launch/open another database withing the same application.

My programming on element entry currently is as follows but is not working:

var vRun as Int

//OPENS SALES CALLS DATABASE TO ADD RECORD


vRun = @SelectTreeItem("Search Update Menu!Navigation!Save Record")

vRun = @SelectTreeItem("SALES CALLS!Add Data Menu!Add Data")

     

vRun = ""

Does anyone see a flaw above and is this doable?

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Command Button to Launch another database
Reply #1 - Jan 9th, 2007 at 3:35pm
Print Post Print Post  
Quote:
vRun = @SelectTreeItem("SALES CALLS!Add Data Menu!Add Data")


There is no such tree item to select. @SelectTreeItem can't be used with a randomly assembled string of instructions with bangs between them. @SelectTreeItem simulates clicking on a tree item on one of Sesame's menu trees. If there is no such item, nothing will happen.

To open a form, use the tree item you would click on the Sesame Application Menu. Something like:
vRun = @SelectTreeItem("YourAppTitle!Forms!Add Data!SALES CALLS!SALES CALLS")
  

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


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Command Button to Launch another database
Reply #2 - Jan 10th, 2007 at 2:38am
Print Post Print Post  
Thanks Erika for the input.  Works great.

Louis

P.S. I never received an email notification that there was a response even though I clicked the option below.  this also happened on previous topic.  has something changed here?
  

Louis Galvao
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Command Button to Launch another database
Reply #3 - Jan 10th, 2007 at 4:24am
Print Post Print Post  
Quote:
Thanks Erika for the input.  Works great.

Louis

P.S. I never received an email notification that there was a response even though I clicked the option below.  this also happened on previous topic.  has something changed here?


No, but your spam filter/ISP may have decided that you can't have email from forums or our IP address or some other such arbitrary decision. For example, the forum can't send email to anyone at AOL. They refuse to accept it.  Roll Eyes
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged