0

Ignorare un campo vuoto o con valore 0 - Ignore an empty field or 0-value

Problema di oggi ;)

Durante l'inserimento dei dati ho una formula che controlla se il valore è già presente nel DB, il problema è che ho più campi controllati e non tutti hanno un valore inserito, quindi quando vado a crearne uno nuovo se un campo è vuoto mi esce l'allerta per quel campo di valore gia presente. Incollo la formula, passatami da Antonello.

 

Today's problem ;)

When I get the data, I have a formula that checks whether the value is already in the DB, the problem is that I have more controlled fields and not everyone has an inserted value, so when I go create a new field if a field is empty, I get an alert for that valueadded that already present. Input the formula, pass me through Antonello.

 

let ct := Codice;
ct = if count((select 'Magazzino Ricambi')[Codice = ct]) > 1 then
alert("ATTENZIONE il codice " + Codice + " risulta già inserito")
else
let ct := 'Codice L F';
if count((select 'Magazzino Ricambi')['Codice L F' = ct]) > 1 then
alert("Attenzione il Codice LF " + 'Codice L F' + " risulta già inserito")
end
end

Reply

null

Content aside

  • 3 yrs agoLast active
  • 578Views