Multiple Stack Instances

Andrew Kluthe andrew at ctech.me
Tue Oct 9 10:50:38 EDT 2012


This is kind of what I do already, Mark. I really want to allow them
to have several open forms that they can minimize and pull back up as
needed. There will probably only be about 4-5 maximum instances of
this at a time. But I want to code 1 stack and have many instantiate
copies of the stack. I can handle the data stores and all of that but
how do I actually turn 1 stack into 4-5 stacks with script? Do I just
'copy stack "form" ' and if that is the ticket, how do I manage calls
to that stack if they all use the same stack name? I''ve never
constructed cards or stacks with scripts before.

Thank you for the response,

Andrew Kluthe

On Mon, Oct 8, 2012 at 1:04 PM, Mark Schonewille
<m.schonewille at economy-x-talk.com> wrote:
> Hi Andrew,
>
> I would use only one stack with one form and keep the data in a custom property. Put the data into the fields in a preOpenCard handler.
>
> Another option is to use multiple cards in one stack and display different cards as required.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com
>
>
>
> On 8 okt 2012, at 19:27, Andrew Kluthe wrote:
>
>> Hey there,
>>
>> 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?
>>
>> --
>> Regards,
>>
>> Andrew Kluthe
>> andrew at ctech.me
>
>
> _______________________________________________
> 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