Based on this XPages adding @Formulas to dialogList , my dialogList1 takes values ββfrom two concatenated views: a and b .
There is another dialogList2 , which is rendered depending on if the value of dialogList1 is null or not, the values ββof which should be like this:
dialogList1.value from a => dialogList2.choices should only be from b
dialogList1.value from b => dialogList2.choices should only be from
I tried:
// Contr.txt_particontractcv_1 - is the value binded by dialogList1 var dbname = session.getServerName() + "!!" + "mynsf.nsf"; //var a = @Unique(@DbColumn(dbname, "vwNumeCompanii", 0)).sort(); //var b = @Unique(@DbColumn(@DbName(),"vwA",0)); //return a.concat(b); if ( @IsMember(Contr.txt_particontractcv_1,@Unique(@DbColumn(@DbName(),"vwA",0)))) { return @Unique(@DbColumn(dbname, "vwNumeCompanii", 0)) } else { return @Unique(@DbColumn(@DbName(),"vwA",0)) }
but dialogList2 only accepts values ββfrom vwA (from b) ... I think I'm missing something. Thank you for your time.
source share