Re: Datagrid substack question

2018-08-31 Thread Sannyasin Brahmanathaswami via use-livecode
Aha! that why a data grid on a cloned stack won't work!

On 8/28/18 6:14 AM, Knapp Martin via use-livecode wrote:
> Thanks zryip - I’ll give that a try!
>
> Marty
>
>> On Aug 28, 2018, at 12:31 AM, zryip theSlug via use-livecode 
>>  wrote:
>>
>> Marty,
>>
>> You have to change the row template property of your datagrid to point it
>> to the template group located in your renamed substack.
>>
>> set the dgProps["row template"] of grp "myDatagrid" to the long id of grp
>> "myGrpTemplate" of cd "myCardTemplate" of stack "myTemplateStack"


-- 
Svasti Astu, Be Well!
Brahmanathaswami
 
Get the SivaSiva app, it's free:
https://www.himalayanacademy.com/apps/sivasiva


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Datagrid substack question

2018-08-28 Thread Knapp Martin via use-livecode
Thanks zryip - I’ll give that a try!

Marty

> On Aug 28, 2018, at 12:31 AM, zryip theSlug via use-livecode 
>  wrote:
> 
> Marty,
> 
> You have to change the row template property of your datagrid to point it
> to the template group located in your renamed substack.
> 
> set the dgProps["row template"] of grp "myDatagrid" to the long id of grp
> "myGrpTemplate" of cd "myCardTemplate" of stack "myTemplateStack"
> 
> On Tue, Aug 28, 2018 at 2:40 AM Knapp Martin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I'm developing an app that has a half dozen template stacks that users can
>> edit. These each have a datagrid. I made a "master" template stack with the
>> common features and then cloned this stack and modified the clones for that
>> stack's specific features. But as the datagrid created a substack and each
>> has the same name in the individual stacks, I get the dreaded "a stack by
>> this name is already open" when I close one stack and open the next. I set
>> the "purge stack on close" to true but I still get the message occasionally
>> (which makes no sense). So I thought I would change the name of the
>> datagrid sub stack to a unique name in each stack but that breaks the
>> connection to the actual datagrid and causes errors. Any advice on what I
>> should do?
>> 
>> Marty


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Datagrid substack question

2018-08-28 Thread zryip theSlug via use-livecode
Marty,

You have to change the row template property of your datagrid to point it
to the template group located in your renamed substack.

set the dgProps["row template"] of grp "myDatagrid" to the long id of grp
"myGrpTemplate" of cd "myCardTemplate" of stack "myTemplateStack"

On Tue, Aug 28, 2018 at 2:40 AM Knapp Martin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm developing an app that has a half dozen template stacks that users can
> edit. These each have a datagrid. I made a "master" template stack with the
> common features and then cloned this stack and modified the clones for that
> stack's specific features. But as the datagrid created a substack and each
> has the same name in the individual stacks, I get the dreaded "a stack by
> this name is already open" when I close one stack and open the next. I set
> the "purge stack on close" to true but I still get the message occasionally
> (which makes no sense). So I thought I would change the name of the
> datagrid sub stack to a unique name in each stack but that breaks the
> connection to the actual datagrid and causes errors. Any advice on what I
> should do?
>
> Marty
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Zryip TheSlug
http://www.aslugontheroad.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Datagrid substack question

2018-08-27 Thread Knapp Martin via use-livecode
I'm developing an app that has a half dozen template stacks that users can 
edit. These each have a datagrid. I made a "master" template stack with the 
common features and then cloned this stack and modified the clones for that 
stack's specific features. But as the datagrid created a substack and each has 
the same name in the individual stacks, I get the dreaded "a stack by this name 
is already open" when I close one stack and open the next. I set the "purge 
stack on close" to true but I still get the message occasionally (which makes 
no sense). So I thought I would change the name of the datagrid sub stack to a 
unique name in each stack but that breaks the connection to the actual datagrid 
and causes errors. Any advice on what I should do?

Marty
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode