Hot Topic (More than 10 Replies) switch to alternate form directions needed (Read 1645 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
switch to alternate form directions needed
Jul 8th, 2007 at 1:40am
Print Post Print Post  
I am trying to use switch to the alternate form feature.

I added a new form to an existing database. When I am in either of the forms in the application and I click on switch to alternate form on the command  tree, I see the plus and minus change but I never get a selection of alternate forms to select.

Obviously I am missing something simple, but I have know idea what it is.

What am I not understanding?

Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: switch to alternate form directions needed
Reply #1 - Jul 8th, 2007 at 3:20am
Print Post Print Post  
The alternate form should appear just below the "Switch to an Alternate Form" line in the command tree.

Is it possible that you aren't scrolled down far enough to see it?
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: switch to alternate form directions needed
Reply #2 - Jul 8th, 2007 at 3:34am
Print Post Print Post  
Thanks Carl

I only wish it was that, but its not.

I must have something else wrong. Any other thoughts?

I will keep playing. Smiley
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: switch to alternate form directions needed
Reply #3 - Jul 8th, 2007 at 3:56am
Print Post Print Post  
Well, I used a sample database from the conference disc and  followed the same steps I did with mine and it works fine, So I must have some code interfering with it in my application. What that might be I have no idea.
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: switch to alternate form directions needed
Reply #4 - Jul 8th, 2007 at 4:46am
Print Post Print Post  

I can get it to work fine (even in my own application) on any database that is on the first level of the command tree, but I can not get it to work on a databases that is nested several layers  down. In the picture below I can get it to work on letters, emails, hrdata,callCenter, Vendors but not on property that is off of contact that is off of firm. 

I get to the form I want to use an alternate form using this on a command button.

vSearch = @SelectTreeItem("Loan Manager!Forms!search/Update!firm!Contact!Property!Property")

** I can not get image to show - hope you get the jist without it.

Thanks



  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: switch to alternate form directions needed
Reply #5 - Jul 8th, 2007 at 12:35pm
Print Post Print Post  
Robert,

Are you saying that you are on a parent form trying to get one of the subforms to display a different form?
  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: switch to alternate form directions needed
Reply #6 - Jul 8th, 2007 at 7:26pm
Print Post Print Post  
Hammer wrote on Jul 8th, 2007 at 12:35pm:
Robert,

Are you saying that you are on a parent form trying to get one of the subforms to display a different form?


No.  (well at least I dont think so) I believe I am on a parent form trying to switch to an alternate form in the same database.

As an example I opened charitydonors application from the samples included under Sesame2 on the conference cd.

I went to the donations database under donors and added a form by clicking Add donations form. I named it newerdonations. I added some elements and saved the layout.

When I look at the command tree I see both forms under donations, giving me three green dots. 1 add form option and my 2 forms.

When I run the application I goto the donations form {not the donors form) in search update press f10 to retrieve some data and then using the commandtree select switch to alternate form. I have no choices available.

Am I misunderstanding that I should have my new form available from this form?


Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: switch to alternate form directions needed
Reply #7 - Jul 8th, 2007 at 7:44pm
Print Post Print Post  
What you are doing sounds correct to me. I'll ask Support to look into this in the morning. If they see what you see, we'll look at why. If not, they'll get in touch with you and probably ask to see your app.
  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: switch to alternate form directions needed
Reply #8 - Jul 8th, 2007 at 7:45pm
Print Post Print Post  
Thanks, Have a GREAT day!
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: switch to alternate form directions needed
Reply #9 - Jul 8th, 2007 at 8:38pm
Print Post Print Post  
I can confirm what Robert is seeing. He is correct.

It seems to be a problem if the database is used as subform for another database. Because, I tried unlinking the Donations db from the Donors db, and then the alternate form shows (and works) properly.
  


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: switch to alternate form directions needed
Reply #10 - Jul 8th, 2007 at 9:02pm
Print Post Print Post  
Thanks, guys. Switching forms on a subform which is being displayed inside another form would definitely be a problem. We'll take a look to see if there is some reason why standalone also prevents this, or if the restriction can be lifted for a standalone form.
  

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



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: switch to alternate form directions needed
Reply #11 - Jul 8th, 2007 at 10:58pm
Print Post Print Post  
I'm pretty sure you already understand it correctly. But just to be absolutely sure, this is while Donations is currently being viewed only as standalone, and the application structure is set up to allow it to be a subform at another time.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: switch to alternate form directions needed
Reply #12 - Jul 10th, 2007 at 11:09am
Print Post Print Post  
Hi-
I am  on Main Menu  form trying to get one of the subforms to display a different form?

I use this on a command button.

vSearch = @SelectTreeItem("Labor!Forms!search/Update!Chemie!Resultate!Resultate")
Resultate is a Subform in Chemie form
What am I doing wrong?

* It seems to be a problem.

Thanks

  

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



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: switch to alternate form directions needed
Reply #13 - Jul 10th, 2007 at 12:03pm
Print Post Print Post  
The stucture looks correct. Is the application name "Labor"?

Here is an actual line of code from one of my applications, where Transactions is a subform of Invoice. (I always use "@Application" at the begining, so , I don't need to change the code if I change the application name.)

vSuccess = @SelectTreeItem(@Application + "!Forms!Search/Update!Invoice!Transactions!Transactions")

  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: switch to alternate form directions needed
Reply #14 - Jul 10th, 2007 at 3:06pm
Print Post Print Post  
Hello Carl,

..it works fine

Thank you very much !
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged