0

Problem with loop

Hi team support ! 

First, apologies for my english. I'm working of a project of management for my agence.

I have 3 tables

- TRANSACTIONS

- BIENS - Direct Link

- VENDEURS - Subtable linked to Propriétaires

When the transaction is OK, i would like have a button to change the statut : 1 become 2

 

let reply := dialog("", "ATTENTION !!! - UNIQUEMENT SI L'ACTE S'EST DÉROULÉ !!!

L'ACTE EST-IL PASSÉ CHEZ LE NOTAIRE ?

OUI POUR CONFIRMER. NON POUR ANNULER

", ["Oui l'acte a eu lieu", "Non l'acte n'est pas encore passé"]);
if reply = "Oui" then
let myIDBien := 'BIEN CONCERNÉ'.ID;
for r in select 'Propriétaires' where BIENS = myIDBien do
r.(Statut := r.2)
end
end

Code no working .... 

Any proposition ?

1 reply

null
    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    I think,

    r.(Statut := r.2) should be:

    r.(Statut := 2)

    also

    if reply = "Oui l'acte a eu lieu"

    I think you need the whole text of that "Oui" button.

    Steven

Content aside

  • 4 yrs agoLast active
  • 1Replies
  • 674Views