Dialog Boxes

40 views
Skip to first unread message

Da7id

unread,
Oct 1, 2025, 1:33:47 PM (3 days ago) Oct 1
to mementodatabase
I'm trying to streamline data entry for a list of purchase orders.

I've managed to add a button next to entries where the status is set to 'Ordered', so when pressed, the entry's status changes to 'Received'. This is working.

Now, I'd like to add a dialog box that asks 'All items received?' and shows the expected amount on one button (have managed this also) and also a 'No' button that allows the user to enter the actual amount received. Then the status changes to 'Partially Received'.

I can't seem to get this together. The dialog boxes don't seem to actually do anything. The rules don't wait for input; there's no branching mechanism. I'm not sure how the Arguments section is supposed to work.

Am I going at this the wrong way? Thanks for any suggestions!

Mmm

unread,
Oct 1, 2025, 1:49:22 PM (3 days ago) Oct 1
to mementodatabase
Без библиотеки (шаблона) нет возможности посмотреть, что сделано. Поделитесь копией библиотеки сюда или лично.

среда, 1 октября 2025 г. в 20:33:47 UTC+3, Da7id:

Er Mo

unread,
Oct 1, 2025, 2:12:28 PM (3 days ago) Oct 1
to mementodatabase
Hallo
Ja dialog() wartet NICHT auf eine Eingabe . Man kann aber den 3 Schaltflächen eine Funktion zuweisen die dan ausgefürt wird . Du müstes dein Skript Teilen in dialog() und " Was gemacht wird " . Der erste Teil zeigt die anzahl der Lieferung mit Abfrage ob korekt ist . Teil " OK " startet die Funktion " Auf Erhalten stellen " ( Pusitive Taste ) . Teil " Nicht OK " statet die Funktion " Stück eingeben " . So hast du 3 Skripte .


Hello
Yes, dialog() does NOT wait for input. However, you can assign a function to the three buttons, which will then be executed. You would need to split your script into dialog() and "What is done." The first part displays the delivery quantity and asks if it's correct. The "OK" part starts the "Set to Receive" function (push button). The "Not OK" part starts the "Enter Quantity" function. This way, you have three scripts.

Ernst

Da7id

unread,
Oct 2, 2025, 4:12:35 AM (2 days ago) Oct 2
to mementodatabase
I'm not scripting this, I'm just using the Automations menu rules. I added a task to change the status field but when I add a dialog box task, I get lost. I don't see an option to add a function to the buttons. Maybe it can't be done this way?

Mmm

unread,
Oct 2, 2025, 5:15:32 AM (2 days ago) Oct 2
to mementodatabase
Используете правило-триггер или скрипт-триггер не имеет значения.
Окно dialog() не прерывает выполнение триггера.

Ответ разработчика на похожий вопрос. Про андроид-версию. Думаю в других версиях MDB аналогичная реализация.
Я хотел прервать выполнение триггера при определенных условиях через диалог.

>>>В любом случае, выполнение правила "выход" не имеет смысла, поскольку диалог отображается уже после создания и сохранения записи.
Даже если вы измените фазу выполнения на "до сохранения", это всё равно не сработает, так как на Android диалог всегда отображается асинхронно, и действия кнопок никак не влияют на основной поток обработки записи (сохранение).
К сожалению, реализовать желаемое поведение — влиять на форму редактирования записи с помощью кнопок в диалоге — на данный момент невозможно.

четверг, 2 октября 2025 г. в 11:12:35 UTC+3, Da7id:
Reply all
Reply to author
Forward
0 new messages