Dialog function when creating a new record
Ninox Profile

Good morning, everyone,

How to integrate this function when creating a new record:

let result := dialog("Alerte avant céation ORT", "Offre déjà existante?", ["Oui", "Non"]);
if result = "Oui" then
openTable("Offres clients", "En Suspens")
else
null
end

with a button it works fine but nothing happens when I integrate it into the trigger on creat function

thank you in advance for your help

Ninox Profile

You are correct... the dialog function will NOT fire from the trigger.   I recall in some other thread Ninox saying this was by design to mitigate some other issues. 

Ninox Profile

https://ninoxdb.de/en/forum/technical-help-5ab8fe445fe2b42b7dd39ee7/dialog-function-5b557619b23d4c7ca268b581

 

Ninox Profile

thank you for your help, so if I currently understand well no possibility to do what I wanted, I will look for another solution thank you!

O

You need to create a new records with a button. Just finishing your formula with the function createRecord()

Ninox Profile

Dialogs (and Alerts) will not work an onChange Triggers - only on Bottons.

Birger

Reply