Create an object in a DIFFERENT card
Posted: Sun Jul 27, 2014 11:01 am
Hi,
I've got a stack with a lot of different cards, each having the same customproperty with a specific value.
I'm trying to write a recursive function, that has to be assigned to a button in a specific card, that does this:
- creates an invisible field in each card
- puts the customproperty into that invisible field
for some cards.
The code I've written does this:
As I read from the documentation, "create" only works on the current card, so the script throws an error. Is there any way to get around this without doing it manually?
Many thanks!
Mike
I've got a stack with a lot of different cards, each having the same customproperty with a specific value.
I'm trying to write a recursive function, that has to be assigned to a button in a specific card, that does this:
- creates an invisible field in each card
- puts the customproperty into that invisible field
for some cards.
The code I've written does this:
Code: Select all
repeat for each line targetline in the elencoPagine1 of this card //this is where I stored the list of cards
create invisible field "correctTitle" in card targetline
put the titoloPagina of card targetline into field "correctTitle" of card targetline
end repeat
Many thanks!

Mike