Multiple Stack Instances

Andrew Kluthe andrew at ctech.me
Tue Oct 9 10:55:01 CDT 2012


Correct. It seems there are plenty of fine ways to do this, I just had
always managed to not have to do it. These techniques will help me a
great deal. Thank you.

On Tue, Oct 9, 2012 at 10:44 AM, Richard Gaskin
<ambassador at fourthworld.com> wrote:
> Andrew Kluthe wrote:
>> I have come across a scenario when I need to be able to have multiple
>> copies of the same stack with different form data in the field. So
>> that the user can have multiple instances of this form available to
>> switch between. Typically, I just allow them to edit 1 record at a
>> time and launch that form as a modal or a single palette that fills
>> and saves the form as it is edited or another one is selected, but
>> that isn't going to work here.
>>
>> This seems like rookie stuff, but I am not sure how to go about it.
>>
>> What kind of process do some of you use to handle this?
>
> If I understand this correctly, this is similar to document-centric apps, in
> which we'll want any number of documents windows to be open, each having the
> same layout as the others.
>
> For that sort of thing I use the clone command on a substack of my app that
> I use as a sort of template:
>
>   clone stack "MyDocumentTMPL"
>
> This will give me a stack named "Copy of MyDocumentTMPL", which I can then
> rename to anything else, and even set its filename property if I need to
> save it to disk.
>
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting: http://www.fourthworld.com
>  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>  Follow me on Twitter:  http://twitter.com/FourthWorldSys
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
Regards,

Andrew Kluthe
andrew at ctech.me



More information about the use-livecode mailing list