I’m currently developing on an app which allows the user to create a Macro and serve some content on a given page. The macro collects data from users which must be stored in Active Objects.
Problem 1: How can I uniquely identify a macro? The macro-id is only unique for a page and the current version.
Solution 1: I could attach a unique id (macro parameter) which is generated by my app whenever a macro is inserted for the first time into a page.
Problem 2: If I use solution 1, I might run into a situation where a user copies a macro: To the same page, or to another page. If the user edits the data in a copied macro, they would change the data for all macros with the same macro parameter - as the macro parameter is not changed when copying.
Problem 3: If I cut and paste the macro to the same page, or to another one, I want to keep the reference to the data.
Maybe you have run into similar situations and have some advise. I’m looking for best practices if no solution exists.