Could someone explain me, with a simple example. How does the new trigger event works?
Thanks.
--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/a8481234-0962-427d-a125-5b2c7cf80295o%40googlegroups.com.
This event is the same as in the Desktop 1.5.0 beta version: https://groups.google.com/g/mementodatabase/c/OVO34t-JZ2Q
In the Desktop version, it is called when the fields in the table are changed or when you change fields from the list, for example - choice fields or checkbox can be edited directly from the list.
So, for Android the same, this event executed when you edit fields directly from the list, or kanban (move entries in another column is changing one field). Android doesn't have the ability to edit fields from the table, but it will be implemented in the future.
var f = field();
message("|" + f.title + "| = |" + f.value);
Added a checkbox field to a library and set Where you can edit to all 3 places. I haven't checked Table view yet. I'm not sure if that's supposed to work yet on mobile, though it certainly should on desktop.
When I tested in the script editor, field() returns null. I had expected it to prompt me with a list of entries, so I could pick one to test with. I don't know when to expect the prompt and when it'll just result in words.
After going back to the entries list and checking an entry's checkbox, it properly emitted the expected 3-second message at the bottom of the screen.
I didn't try multi-selecting entries and checking their checkboxes, but according to Vasiliy, the trigger should not fire.
Note that it lets both multi-selected entry updates and edit card entry updates go untriggered. I expect him to provide us the multi-select trigger in a future release -- maybe soon? The edit card field-by-field update trigger is (I'm guessing) far harder to implement -- though also far more beneficial to the user -- so if he implements that, it I don't expect it soon. So, it'll be a while before we can have all updates under our scripting control.
I'll continue to test various scenarios and let you know of any wisdom I might obtain. I haven't tested other choice fields yet --single & multiple choice list fields and radio buttons and checkboxes fields. I believe it is supposed to work on them as well.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/19d83245-91e1-4a98-9d08-7e48f699fa28n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/9377c3c9-06bd-4230-8c1e-2f76c62138acn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/9377c3c9-06bd-4230-8c1e-2f76c62138acn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/471a5bb6-7ee4-4870-950b-8c2847aace4fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/a37488b4-153d-45fc-aee5-fc3db99e7b4fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/c64ed643-e550-49d3-89da-3a7479073371n%40googlegroups.com.
I thought that the option "Update a field" in the Trigger scripts will prevent "for" loops in the library, but it seems not .....
Has anyone able to explain how the "Update a field" option works in Trigger scripts ....?

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/a1b83293-aa09-432a-baa7-46a0662d8247n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/6302e773-e001-491d-b166-0a79aa232d89n%40googlegroups.com.