
dialog function
Hi there,
I use this code but doesn't work:
let check := dialog("Attenzione", "confermi la cancellazione?", ["CONFERMO", "ESCI"]);
if check = "CONFERMO" then delete ('Ordini.Prodotti')
end
Thx
-
Hi Andrea,
Without a data model, it is difficult. Why do you have the quotation marks on 'Ordini.Prodotti'?
I would try like this:---
let check := dialog("Attenzione", "confermi la cancellazione?", ["CONFERMO", "ESCI"]);
if check = "CONFERMO" then delete Ordini.Prodotti
end
---
You can first check the deletion with a button and then paste it into the dialog
Leo
-
Looks like dialog() is limited to 20 choices. The title or question can be left blank by using "".
It seems like the width of the dialog box is fixed. If there are a bunch of choices, they will all be on one line, and they can extend past the dialog box window. As you add more choices, the selection buttons get smaller and smaller, and the choice text may not fit.
-
It appears that a dialog may NOT be called via a Trigger after update. .. If I do a simple alert.. that works.. but if I replace the alert with a dialog.. it never fires.. Is this by design as a dialog blocks?
I wanted to use a dialog as opposed to an alert as I use dialogs in my save/close buttons.. so I want to present a common error dialog. :(