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
    • 4 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
    • 4 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
    • 4 yrs ago
    • Reported - view

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

    • Birger_H
    • 4 yrs ago
    • Reported - view

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

    Birger

Content aside

  • 4 yrs agoLast active
  • 5Replies
  • 2219Views