Ciao a tutti,
ho un problema con una condizione or utilizzando una formula in esperto di selezione
se eseguo le condizioni singolarmente il risultato è corretto, mentre se le unisco viene valutata solo la prima...
la formula è la seguente
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
(
(not ISNULL({tabella4.ID_1}) and {tabella5.valore}=true )
or ({tabella6.valore2}=false and {tabella6.valore}=true and NOT ISNULL({tabella4.ID_2}))
or (not ISNULL({tabella4.ID_3}))
)
ripeto, eseguite singolarmente
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
(not ISNULL({tabella4.ID_1}) and {tabella5.valore}=true )
e
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
({tabella6.valore2}=false and {tabella6.valore}=true and NOT ISNULL({tabella4.ID_2})
e
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
not ISNULL({tabella4.ID_3})
selezionano i dati corretti