Hello,
I am trying to create action that would duplicate whole previous entry except for date/time fields, which should be updated with current date and time. Currently, as the workaround, I am doing it manually - long press last entry, copy and than edit content. Not the most elegant solution. I thought it would be a straightforward code, but than I found this thread:
https://groups.google.com/forum/#!searchin/mementodatabase/duplicate$20entry|sort:date/mementodatabase/xCH_Erbvvoo/P7Dx2-wjAwAJI attempted to follow this solution:
var entries = lib().entries();
lib().create({
field1:entries[0].field("field1"),
field2:entries[0].field("field2"),
field3:entries[0].field("field3"),
field4:entries[0].field("field4")
});
This seems to be working through fields 1-3, until field4, which is link to many field - that field remains empty. What am I doing wrong? Isn't there a simpler solution to copy whole entry into new one within same library on entry creation?