Calling an action after setTemplateTag (bug with app.queueAction)

You could store them as metadata using the functions I wrote into the TADpoLe library. They store the data outside of the draft so as not to pollute the existing content or meta data (e.g. tags).

Once you include the library (including the TAD action from the ThoughtAsylum Action group (download it and run the refresh action as per the instructions to get the latest library file on your devices) you can then call the meta data functions.

draft.TA_metaRead() will initialise the current draft with any persistent data held on file.

draft.TA_metaWrite() will write the current draft meta data to be persistently held to file.

Then in action #1 you could write something like this:

draft.TA_metaRead();
draft.meta.test = "hello world";
draft.TA_metaWrite();

In action 2, you could read the value of the test property back like this:

draft.TA_metaRead();
alert(draft.meta.test);

Examples:

Hope that helps.

2 Likes