0

Dialog function when creating a new record

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

5 replies

null
    • Mconneen
    • 5 yrs ago
    • Reported - view

    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. 

    • Administrateur
    • 5 yrs ago
    • Reported - view

    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!

    • Olivier_BARBOT
    • 5 yrs ago
    • Reported - view

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

    • Birger_H
    • 5 yrs ago
    • Reported - view

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

    Birger

Content aside

  • 5 yrs agoLast active
  • 5Replies
  • 2225Views