Lookups In form

Hi All

How can i pass Multiple Range values into Lookups like

if((cmpoccupancy.OccupantType == OccupantType::Employee) || (cmpoccupancy.OccupantType == OccupantType::SubContractor))

{

queryBuildRange.value(enum2str(ProjectFAtype::Camp),queryValue(enum2str(ProjectFAtype::others)));

}

Hello,

You can use the relational and logical operators available in X++ with strFmt function as shown below:

if((cmpoccupancy.OccupantType == OccupantType::Employee) || (cmpoccupancy.OccupantType == OccupantType::SubContractor))

{

queryBuildRange.value(strfmt("%1 || %2", ProjectFAtype::Camp, ProjectFAtype::others));

}

HI thanks Shankar its working Properly…