In http://forums.runrev.com/phpBB2/viewtop ... =7&t=11635 I learned how to copy a group to a substack.
Now I have a update problem. When I chance an object or add a new object to the group in the mainstack, the cards in the substack will not be updated.
I tried to use a button to do an update:
Code: Select all
on mouseUp
   -- for every card in the substack 'daten' ...
   set the defaultStack to "Daten" 
   put number of cards into tAnzahl
   go to first card
   repeat with i = 1 to tAnzahl
      get the long ID of this card
      put it into tNewCard
      -- make an update of the group:
      set the defaultStack to "Test_DB_1" 
      copy group "bkgMasterCard" of card "VorlageDaten" to tNewCard # (1) Here is the problem!
      
      set the defaultStack to "Daten" 
      go to next card
   end repeat
end mouseUp
copy group makes a second group to the card. I can delete the old group, but than I will lose all entries in the fields.
Is there a command for an update of group?
If not: I have to write a script, that will copy all entries of fields from the old group to the new group, before I delete the old group.
Thanks for reading and have a nice weekend.
Jens
