Memento Database 5.4.0 Beta available for beta testers

724 views
Skip to first unread message

admin

unread,
Jun 12, 2024, 5:05:36 PM6/12/24
to mementodatabase
Hello everyone,

Memento Database Android 5.4.0 Beta is available for beta testers.
Changelog:
• Linked Tree View: Users can now effortlessly navigate through interconnected entries from various libraries within a unified tree view interface, accessible on a single screen.
• Enhanced Visualization with Colorized Fields: Field values in both entry lists and entry view cards can now be dynamically colorized, allowing for intuitive visualization based on specified rules and field values. Where: Edit field > Colorize field value
• Added the ability to edit images created in drawing fields.
• Added the ability to display a secondary thumbnail icon in the entries list by selecting a second image field, along with the ability to customize thumbnail placeholders to suit specific preferences.
• The list field type now offers enhanced versatility with two distinct modes of operation: checklist or ordered list.
• All cloud libraries and template URLs in the online directory now have the hostname mementodb.com.
• JavaScript: Users can now automate processes by scheduling triggers to execute at predetermined times, leveraging the new "At scheduled time" trigger event.
• JavaScript: The script editor has been refined with added functionality, including the ability to undo and redo actions.
• JavaScript: Centralized script execution logs. Where: Open library > Menu > Scripts > Logs icon
• JavaScript: Added the ability to create Android notifications directly through scripts using the notification() method.

Message has been deleted
Message has been deleted

pedr...@gmail.com

unread,
Jun 15, 2024, 5:24:06 PM6/15/24
to mementodatabase
I'm using this code to try the new notification() method:

let note = notification();
note.title = "Hello this is the title";
note.body = "Hello, this is the body";
note.show();

The mobile device recives the notification but nothing is shown in the title nor the body

Any ideas? Thanks
El sábado, 15 de junio de 2024 a las 5:03:54 UTC+2, Wojciech S. escribió:
Hello,

When I switch one library to Linked tree view the app crashes. Another libraries still work.

I think it's because I have many connected libraries. I tested Linked tree with libraries not connected with some many others and then the view works. 

I hope this problem will be solved. Maybe it's memory problem? Maybe loading library in this Link Tree view can be done partly, not all library at once? I don't know.
--
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/acc5ac94-a8de-4661-95f4-71e4a15f9c9an%40googlegroups.com.

admin

unread,
Jun 15, 2024, 10:42:43 PM6/15/24
to mementodatabase
The `notification()` function creates and displays notifications on Android devices.

notification()
  .id(int) //  Sets the ID of the notification. (Optional)
  .title(string)  //Sets the notification title.
  .text(string) / Sets the main text.
  .bigText(string)  //  Sets the expanded text. (Optional)
  .smallIcon( iconCode )  //  Sets the small icon. (Optional)
  .largeIcon( iconCode or image URL )  // Sets the large icon. (Optional)
  .alertOnce() // Ensures the notification alerts only once.  (Optional)
  .show(); // Displays the notification.

Er Mo

unread,
Jun 16, 2024, 2:07:50 AM6/16/24
to mementodatabase
Hallo
Habe es zum Laufen gebracht . Aber mir wird nur der Teil mit " bigText " angezeigt.Der Teil mit " text " wird NICHT angezeigt.
Weiter konnte ich die Sktiptauslösung auf Zeit basiet nicht zum Laufen bringen .

Hello
I got it to work. But only the part with "bigText" is displayed. The part with "text" is NOT displayed.
I also couldn't get the script triggering based on time to work.

let note = notification();
note.title("Hello this is the title");
note.text("Hello, this is the Text");
note.bigText("Hello, this is the bigText");

note.show();

Ernst

Mmm

unread,
Jun 16, 2024, 5:55:30 PM6/16/24
to mementodatabase
Пока версия 5.4.0 является тестовой, предлагаю добавить:


>>>JavaScript: Users can now automate processes by scheduling triggers to execute at predetermined times, leveraging the new "At scheduled time" trigger event.
- как получить доступ к списку активных триггеров по времени и изменить или отменить время выполнения триггера этого вида с помощью JavaScript;
- добавить триггерное событие "Закрытие карточки записи".

>>>Added the ability to display a secondary thumbnail icon in the entries list by selecting a second image field, along with the ability to customize thumbnail placeholders to suit specific preferences.
- кроме замещения миниатюр значением поля или буквами, было бы интересно замещать иконками из стандартного набора или галереи;
- поле "Рисование" также может быть миниатюрой записи, но для него не предусмотрено замещение миниатюр;


>>>The list field type now offers enhanced versatility with two distinct modes of operation: checklist or ordered list.
- до настоящего времени с помощью JavaScript можно получить массив элементов списка, но нет возможности получить состояние элемента списка (выбран - не выбран), а также изменять выбор элементов с помощью JavaScript.

Дополнительное пожелание, при копировании скрипта Действие копируется только первая вкладка "Скрипт", вкладки "Аргументы" и "Вид" не копируются. Это актуально для изменения очерёдности пунктов меню если скриптов несколько. Попробуйте изменить очерёдность пунктов меню в примере (см. скриншот). Сейчас это возможно только путем копирования скриптов Действие в нужной последовательности, так как их сортировка не предусмотрена.

Впечатления от динамики доработок и исправлений только положительные. Спасибо!

воскресенье, 16 июня 2024 г. в 09:07:50 UTC+3, ernst...@gmail.com:
Scr_1.jpg

Mmm

unread,
Jun 17, 2024, 3:18:35 AM6/17/24
to mementodatabase
Версия 5.4.0 имеет улучшение:
>>>JavaScript: Added the ability to create Android notifications directly through scripts using the notification() method.

в том числе:

>>> .smallIcon( iconCode ) // Sets the small icon. (Optional)
>>> .largeIcon( iconCode or image URL ) // Sets the large icon. (Optional)

Нужны коды стандартных иконок. 

Я получил некоторые коды путем изучения файлов шаблонов библиотек. Например: "nova:camera-1.png", "flat:wine.png". 
Эти коды работают. 

 .smallIcon( iconCode ) //цветные и черно-белые иконки отображаются как черно-белые
 .largeIcon( iconCode or image URL ) //иконки отображаются в цвете. 

Предлагаю:
1. Разместить на wiki все стандартные иконки и их коды. 
2. В последующих версиях предусмотреть копирование кодов иконок непосредственно в программе. Например, как при выборе цвета. 

Код пользовательской иконки из галереи выглядит так:
"inline:iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAACO1JREFUeJzdm9tvHFcdxz+\/MzN78dpZX2M7pmkKShB126DS0opCoQ1FalFBIEFfUAVqRVUhhFT1D+AfqLhLPFCE6EORQKD2IUXpNWqRSi+QWE1E415SNYljx+vd9d53LoeHdeyd3dn17uyuE\/f7Mjvnfj7zO79zmVmhQQtvHb9RKx4WTx9B5ABCojHNoJUrC0sZCw0koh5jQx6JqBeuME0Brc+KyAue6f3h8OG73qmPlss\/FhePRsu54V942ntERFRPPehRZy5a2K74wuKWZjrphgdRk4t4vzciex+bn5+vwgaAxcWj0eJ64jkR7uql9CDlyoqljAmimU26jMS270AQgMs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/yHsOgDQXwi7EgD0D8KuBQD9gbCrAcAGhB\/cy\/rhgwGRmtm\/vcjIycWW+Xc9AABtKM798JvBEDzNzLOvtsz7iQAA7SEYxXLLfJ8YAFAH4fOHfOHp229smUdOvv3KuohcBXvgPsrTjL5xiqGzSxQPzJL54jyooE\/y9LosvP3KKUSu3\/FGXg3SvGMK8ryGngFUqzblcplKtUq1Ut28lisVPM9Da43ruptXAHvjP0mWWTuYMgwDEdm8KqWIRaNEohGikcjmNRaLEYlYvTYZRI7JyZMv3yCuOgF09UF\/sVgitZYmk8mQyxWwnZCv00LKMi1GRhKMjo4yOTFOPB7rtgjXQG4SgIX\/vvxbtPpJpznfPfMey8uX0FwdZymCMDOzl0MHP9NxHg2\/PnzzV3+mAIzI3seAFzuusF9\/ALpS0vKC7SUeh7o\/T586dSpiV1afUPAoHQyHUqnMamrtig2BiBVheHio2yHgavid7SUev+WWW2yoA3BZJ068Nq+08xCe3KPhQKu\/1TWqlROsVKtNzs\/ZcH6NTtAMcIb1zi+ME9SavMBZRI4Z8OT8zXeero\/\/P\/9ZqrD91JQ0AAAAAElFTkSuQmCC". 

Предлагаю:
В последующих версиях добавить к стандартным иконкам вкладку-раздел "Пользовательские" и предусмотреть добавление (удаление) иконок в этом разделе Пользователем. Тогда код иконки выше мог бы выглядеть так:

"user_icon:icons8-курить-запрещено-64.png". 

Про UserVoice знаю... 

понедельник, 17 июня 2024 г. в 00:55:30 UTC+3, Mmm:

admin

unread,
Jun 18, 2024, 1:01:57 AM6/18/24
to mementodatabase
The script editor has an icon list dialog that allows you to insert icon codes into a script: click '+' > 'icon name' menu item and then select an icon.

Mmm

unread,
Jun 18, 2024, 1:56:27 AM6/18/24
to mementodatabase
Замечательно, спасибо! 

Дополню пожелания ещё одним пунктом: "Скрытая зона полей" (скрытый лист). 
Лист и поля, размещеные на этом листе, не видны Пользователю при создании, редактировании или просмотре записи в любом виде. 
Но эти поля могут быть именем или описанием записи, по ним можно создавать зависимости других полей, выполнять агрегацию, группировку, сортировку, фильтрации, строить графики, все действия с обычными полями. 

вторник, 18 июня 2024 г. в 08:01:57 UTC+3, admin:

admin

unread,
Jun 18, 2024, 2:37:21 PM6/18/24
to mementodatabase
Thank you for your suggestions. To be honest, there are already hundreds of user proposals for new functions, many of which are very good and interesting. Unfortunately, it is simply impossible to implement them all. Please add your suggestions to UserVoice.

pedr...@gmail.com

unread,
Jun 18, 2024, 5:42:13 PM6/18/24
to mementodatabase
After the last update: 5.4.1. The : `.text("This text sets the main text")` is still not displayed in the notification.
I love the improvements to the code editor, but I have a bit of trouble working with such a small font size. It would be great to be able to adjust the font size of the code editor

Mmm

unread,
Jul 3, 2024, 3:24:53 AM7/3/24
to mementodatabase
>>> JavaScript: Centralized script execution logs.  
Записи в журнал, добавленные пользователем с помощью log(), попадают в раздел "Информация" и сливаются с другими записями. 

Прошу сделать отдельный (пользовательский) раздел и изменить иконку для строк, созданных с помощью log(). 

среда, 19 июня 2024 г. в 00:42:13 UTC+3, pedr...@gmail.com:

Ali Warnali

unread,
Jul 7, 2024, 5:34:45 AM7/7/24
to mementodatabase
Hallo,

habe gerade neuste Version installiert und es stürzt ab, wenn ich den Datumsfeld leer lasse oder falsche Zeichen eingebe kommt Fehlermeldung wie unten Im Bild und wenn ich auf rote Kreuz anklicke, dann wir das Programm geschlossen. Vorher war das nicht.

20240707113206.png

Ali Warnali

unread,
Jul 7, 2024, 6:02:43 AM7/7/24
to mementodatabase
… habe Windows 10 Pro 64 Bit Version …

Mmm

unread,
Jul 14, 2024, 3:19:28 PM7/14/24
to mementodatabase
Поле "Встроенный объект". При использовании конструктора объектов возникает ошибка, если атрибут числового типа пустой (равен null). Для пустых текстовых атрибутов ошибки не возникают. 
Это ошибка Memento? Поясните.

воскресенье, 7 июля 2024 г. в 13:02:43 UTC+3, warna...@gmail.com:

Mmm

unread,
Jul 14, 2024, 3:31:21 PM7/14/24
to mementodatabase
Триггер "Изменение поля". При изменении поля триггер перед сохранением использует значение поля, которое было до изменения. Если использовать триггер "Изменение записи" триггер перед сохранением использует новое (измененное) значение.

Пример: 
Поле "Number" равно 10. Изменяем до 20.

Триггер изменение записи, перед сохранением:
message(entry().field("Number")); //20

Триггер изменение поля, перед сохранением:
message(entry().field("Number")); //10

Поясните.
воскресенье, 14 июля 2024 г. в 22:19:28 UTC+3, Mmm:

Mmm

unread,
Jul 14, 2024, 4:04:07 PM7/14/24
to mementodatabase
Вопрос по "отрисовке" записей после выполнения скрипта. Значение поля изменено (подтверждено log()), но в списке запись отображается со "старым" значением.
Чтобы отобразить "новое"  значение необходимо инициировать дополнительное событие.
Это может быть повторное открытие записи или библиотеки, изменение ориентации устройства (с вертикального на горизонтальное).
Использование функций с 
return true;
не помогает.

Поясните.

Нужен аналог recalc(), который работает только с вычислимыми полями. 
Например, reload() для всех полей записи, включая вычислимые и агрегацию.
  
воскресенье, 14 июля 2024 г. в 22:31:21 UTC+3, Mmm:
Reply all
Reply to author
Forward
0 new messages