Input list of records in Lookup

Input list of records in Lookup

Salut,

I have 2 scripts that input list of records in a lookup. The first on works fine, the second one doesn't and I do not know why.

The only differences, is that the first one input in a lookup a list of records from an actual lookup field, and with the second one I try to input a list of records from a numerical field in a lookup field. In both cases, I get all the good ID number I need in the variables (checked with INFO command).

First script:

enable Produits_LIGNE;
clear Produits_LIGNE;
RefCat = input.Categorie_LIGNE.Categorie_OFFRE;
ListeDispo = Offre_de_produits[Quantite_offerte > 0 && Categorie_OFFRE == RefCat];
input.Produits_LIGNE:ui.add(ListeDispo.Produit_OFFRE.getall());

Second script:

enable Offre_produits_LIGNE;
clear Offre_produits_LIGNE;
RefCat = input.Categorie_LIGNE.Categorie_OFFRE;
RefProduit = input.Produits_LIGNE;
RefUnite = input.Prix_Unite_LIGNE;
RefOffre = Offre_de_produits[Categorie_OFFRE = RefCat && Produit_OFFRE == RefProduit && Unite_OFFRE == RefUnite];
input.Offre_produits_LIGNE:ui.add(RefOffre.Quantite_offerte.getall());

Anybody can tell me what is wrong with the second one ?

Sylvain