Does a card script get copied when you make a new card?
Posted: Mon Feb 15, 2010 12:56 am
Hi,
I am developing a small card based data management tool. Each card is the same and I am using grouped backgrounds to keep the data entry fields and buttons the same across cards. But, I also have a script in the card which sets a global variable to keep track of which is the current card (this is accessed from another stack to grab info from the current card to produce a report).
My problem is that when I copy a card the card script from the original card is not in the copied card. I am using "create card" in order to get a card with all the fields emptied. Is this what should happen? Or does create not copy the card level script over? This is what I suspect is the problem. If so, is there a simple workaround?
cheers
Alistair
I am developing a small card based data management tool. Each card is the same and I am using grouped backgrounds to keep the data entry fields and buttons the same across cards. But, I also have a script in the card which sets a global variable to keep track of which is the current card (this is accessed from another stack to grab info from the current card to produce a report).
My problem is that when I copy a card the card script from the original card is not in the copied card. I am using "create card" in order to get a card with all the fields emptied. Is this what should happen? Or does create not copy the card level script over? This is what I suspect is the problem. If so, is there a simple workaround?
cheers
Alistair