navigate between forms/stacks

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jlspereira
Posts: 18
Joined: Sat Mar 01, 2014 10:35 pm

navigate between forms/stacks

Post by jlspereira » Thu Jan 14, 2016 12:46 pm

hello. I am a real newbie to Livecode, coming from MS/Access.

In my application I need to have a number of forms, that show different views of the backbone database. In ms/access it is quite easy: you just design a master form and program a button that enables you to jump to a specific form, opening it. On the subform, on the "open event" you close the original form (if needed), and you program a button that will reopen it.

I reckon that, in livecode, I must design a stack for each of the forms. My question is: how do we navigate on them? Or is there a completly different paradigm that I am overlooking?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: navigate between forms/stacks

Post by Dixie » Thu Jan 14, 2016 2:33 pm

Hi...

You don't need to put each form in a new stack... You can put a form on separate cards in a stack... or use 'tabs' and put a form into a group, hiding and showing groups depending on which 'tab' you click on...

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: navigate between forms/stacks

Post by dunbarx » Thu Jan 14, 2016 2:53 pm

Hi.

What Dixie said, and that holds true even if the physical size of each form is different.

I assume that when you say Access allows you to jump to different forms, based on a master form, that the default data in each instance changes, but not the format of the form itself. Is that what you meant? If so, and I cannot imagine it otherwise, then, again, what Dixie said. Write back if you need a jump start.

Craig Newman

FredBeck
Posts: 77
Joined: Fri Nov 01, 2013 3:07 pm
Location: Paris
Contact:

Re: navigate between forms/stacks

Post by FredBeck » Sat Jan 16, 2016 10:23 am

Hi,
True and true...
However just to answer your initial question, you can still

Code: Select all

go to card 1 of stack myStack in window
if you want to stick to stack (Ha! Pun!) based forms.
Fred.

jlspereira
Posts: 18
Joined: Sat Mar 01, 2014 10:35 pm

Re: navigate between forms/stacks

Post by jlspereira » Sat Jan 30, 2016 5:59 pm

Hi all !

Thanks a lot. It's working now with your help! :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”