Quantcast
Viewing all articles
Browse latest Browse all 79901

Filter Lookup value based on the fields

I have to filter a lookup value based on the user profile which I am able to get using the XHR request. Now I am using the the both field to filter the related product( which is a lookup in the custom "area" entity

if (franchise !== null&& market !== null) {
    varfilter = "<filter type='and'>" +
        "<condition attribute='sb_product' operator='null' />" +
        "<condition attribute='statecode' operator='eq' value='0' />" +
        "<condition attribute='sb_availablemarkets' operator='contain-values'>" +
        "<value> " + market + "</value > " +
        "</condition>" +
        "<condition attribute='sb_businessunit' operator='eq' value='" + franchise[0].id + "' />" +
        "</filter>";
    
I do not how to proceed to apply it in the "area" main form . And see the filtered value in product lookup field in "area" main form
Can Anyone please help me here?

Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>