| Lantica User Forum | |
|
Lantica Discussions >> Lantica Discussion >> switch to alternate form directions needed
https://www.lantica.com/Forum5/cgi-bin/yabb2/YaBB.pl?num=1183858801 Message started by BOBSCOTT on Jul 8th, 2007 at 1:40am |
|
|
Title: switch to alternate form directions needed Post by BOBSCOTT on Jul 8th, 2007 at 1:40am
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 |
|
Title: Re: switch to alternate form directions needed Post by Carl Underwood on Jul 8th, 2007 at 3:20am
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? |
|
Title: Re: switch to alternate form directions needed Post by BOBSCOTT on Jul 8th, 2007 at 3:34am
Thanks Carl
I only wish it was that, but its not. I must have something else wrong. Any other thoughts? I will keep playing. :) |
|
Title: Re: switch to alternate form directions needed Post by BOBSCOTT on Jul 8th, 2007 at 3:56am
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.
|
|
Title: Re: switch to alternate form directions needed Post by BOBSCOTT on Jul 8th, 2007 at 4:46am 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 |
|
Title: Re: switch to alternate form directions needed Post by Hammer 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? |
|
Title: Re: switch to alternate form directions needed Post by BOBSCOTT on Jul 8th, 2007 at 7:26pm Hammer wrote on Jul 8th, 2007 at 12:35pm:
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 |
|
Title: Re: switch to alternate form directions needed Post by Hammer on Jul 8th, 2007 at 7:44pm
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.
|
|
Title: Re: switch to alternate form directions needed Post by BOBSCOTT on Jul 8th, 2007 at 7:45pm
Thanks, Have a GREAT day!
|
|
Title: Re: switch to alternate form directions needed Post by Carl Underwood on Jul 8th, 2007 at 8:38pm
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. |
|
Title: Re: switch to alternate form directions needed Post by Hammer on Jul 8th, 2007 at 9:02pm
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.
|
|
Title: Re: switch to alternate form directions needed Post by Carl Underwood on Jul 8th, 2007 at 10:58pm
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.
|
|
Title: Re: switch to alternate form directions needed Post by Amor on Jul 10th, 2007 at 11:09am
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 |
|
Title: Re: switch to alternate form directions needed Post by Carl Underwood on Jul 10th, 2007 at 12:03pm
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") |
|
Title: Re: switch to alternate form directions needed Post by Amor on Jul 10th, 2007 at 3:06pm
Hello Carl,
..it works fine Thank you very much ! |
|
Lantica User Forum » Powered by YaBB 2.6.11! YaBB Forum Software © 2000-2026. All Rights Reserved. |