Page 1 of 1

How DO I Copy Custom Properties to Another Stack?

Posted: Mon Sep 19, 2011 6:01 am
by BarrySumpter
Just playing the the Name Generator from Tactile Media
http://www.tactilemedia.com/index.html? ... rials.html

This stack has three custom properties each with say 50 custom keys.

I'd like to increase this to say 50 custom properties each with 50 customkeys.

Since I had all kinds of issues copying a test DataGrid with its template to another stack,
I'm wondering how to copy a stacks 50 custom properties each with 50 customkeys
to another stack?

Any help would be greatly appreciated.

Re: How DO I Copy Custom Properties to Another Stack?

Posted: Mon Sep 19, 2011 2:22 pm
by BvG
There's an example about copying custompropertysets in the dictionary entry for the customproperties property.
You can get or change the value of a single custom property using array notation. For example, the following statement copies the entire set of custom properties from one card to another, changing only the custom property named "changedDate":

put the customProperties of this card into myCustomProps
put field 3 into myCustomProps["changedDate"]
set the customProperties of next card to myCustomProps

Re: How DO I Copy Custom Properties to Another Stack?

Posted: Mon Sep 19, 2011 3:19 pm
by Dixie
Barry...

stack attached..

be well

Dixie

Re: How DO I Copy Custom Properties to Another Stack?

Posted: Mon Sep 19, 2011 10:44 pm
by BarrySumpter
Hi Bvg,

Thanks for taking the time to reply and posting the code.
Much appreciated.

I was expecting the solution to come from a developer like the DataGrid Copy template.
And not be in the dictionary.
Information overload.


Hey Dixie,

Thanks for the sample stack.
A sample stack is worth 10 thousand words.
Very much appreciated.