how to refresh widget

202 views
Skip to first unread message

Jan Beneš

unread,
Mar 7, 2022, 7:14:16 AM3/7/22
to mementodatabase
Hi, can anybody help me? I am using mementřo database WIDGET (I use simply "tasks" database). Every day I update whole database with new date via triger javascript (change of colour of FINISHED tasks to grey colour, change of number of days till tasks etc). My problem is that WIDGET is not updated. Only way is to manually update one of records and then is updated also widget.

Does anybody know how to refresh widget by javascript?

thank you!!

Jan

Wojciech S.

unread,
Sep 4, 2022, 9:41:24 AM9/4/22
to mementodatabase
Yes. For me also this is inconvenient.

Bill Crews

unread,
Sep 4, 2022, 1:49:17 PM9/4/22
to Wojciech S., mementodatabase
If you want to keep it simple, just add your ID field as an integer and set it's default to autoincrement. Then you're done.

--
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/11c45d9e-e0fc-4c0c-a634-339a1bd3e78bn%40googlegroups.com.

Wojciech S.

unread,
Sep 8, 2022, 1:34:36 AM9/8/22
to mementodatabase
I don't understand?

Bill Crews

unread,
Sep 8, 2022, 8:09:20 AM9/8/22
to Wojciech S., mementodatabase
There's not much to understand. If you create an Integer field ID, set its display option (I call it its role) to Entry name, and set its Default value to Autoincrement, you will have unique entries serialized by the ID field.

If I really want a Name or Title as the entry name, I add it ahead of ID in the FIELDS list, with the ID field guaranteeing uniqueness, in case you have 2 John Smiths. To ensure you never get non-unique entries, in Edit Library in the MAIN tab, set Unique Fields to Entry name, which will catch all entry name fields in order of their definition in the Edit Library FIELDS tab. Then, if there's ever a glitch (though there shouldn't be one), Memento will force you to make the entry name unique before saving the entry.

Wojciech S.

unread,
Sep 9, 2022, 1:06:39 AM9/9/22
to mementodatabase
Ok. But does it refresh widget?

Bill Crews

unread,
Sep 9, 2022, 11:26:02 AM9/9/22
to Wojciech S., mementodatabase
If you're talking to me, I'm afraid I posted the autoincrement message to the wrong thread. Please disregard it.

Since you didn't respond to Beth's question, let me point out that I'm presuming that when you're referring to WIDGET, you're referring to some template you may have found and downloaded from the template catalog. In my case, I've never heard of it.

These templates are known only to those who have searched for the template, downloaded it, and used it, which is likely to be very few people. The forum members who respond with help rarely use the same template as you, so at a minimum, it would be wise to announce that you are referring to a template from the catalog. Also, what you feel constitutes an update to WIDGET may not be clear to helpers, so you might be more specific about what it is that's not happening. Then you might receive more & better responses from the forum.

Bill Crews

unread,
Sep 9, 2022, 11:32:10 AM9/9/22
to oot...@gmail.com, mementodatabase
I erroneously posted the following message to another thread. Now you have it.

Craig Hunter

unread,
Sep 9, 2022, 3:55:05 PM9/9/22
to Wojciech S., mementodatabase
I would like to see this fixed also.

I had a similar problem (in 2017 or 2018). When I creat a record automatically using Tasker app, the Memento scripts that are supposed to run when a record is created do not run. The answer I got was that it would not be fixed.

It might be easier to get the widget update problem fixed. They could add a javascript function like .updatewidget()

Miles

unread,
Sep 22, 2022, 10:37:07 AM9/22/22
to mementodatabase
Same. Any update on this since about 6 months ago?

I wonder if somebody has found any other ways around to update android widget.

Participating in hope.

Craig Hunter

unread,
Sep 22, 2022, 11:56:55 AM9/22/22
to Miles, mementodatabase
I searched in uservoice to see if this has been suggested before. It has not, so I started a new sugestion. Please follow the link and vote. You can comment there also.

https://memento.uservoice.com/forums/110673-general/suggestions/45726964-widget
Reply all
Reply to author
Forward
0 new messages