A company created a Catalog with items tagged with one or more of the following categories using the custom tags metadata attribute: Enterprise, Department, Team, andProject.Select the option showing the code that builds the right CatalogSearchCriteria for a search that will correctly populate the Catalog search results with the list of Entitlements tagged with a selected category. Only Entitlements must be displayed.
A. CatalogSearchCriteria tags = new CatalogSearchCriteria(Catalogsaarchcriteria.Argument.TAG, selectedcategory,CatalogSearchCriteria.Operator.EQUAL);CatalogSearchCriteria cat = new CatalogSearchCriteria(CatalogSearchCriteria.Argument.CATEGORY,"Entitlement",Catalog SearchCriteria.Operator.EQUAL);CatalogSearchCriteria scrt = new CatalogSearchCriteria (tags,cat,CatalogSearchCriteria.Operator.AND);
B. Catalogsearchcriteria scrt. = new CatalogsearchCriteria(Catalogsearchcriteria.Argument.CATEGORY, "Entitlement",CatalogSearchCritetia. Operator.EQUAL);
C. CatalogSearchCriteria scrt = new CatalogSearchCriteria(CatalogSearchCriteria.Argument.TAG, selectedCategory,CatalogSearchCriteria. Operator. EQUAL);
D. CatalogSearchCriteria tags = new CatalogSearchCriteria(CatalogSearchCriteria.Argument. TAG, selectedcategory,CatalogSearchCriteria.Operator.EQUAL);CatalogSearchCriteria cat = new CatalogSearchCriteria(CatalogSearchCriteria. Argument. CATEGORY, "Entitlement",CatalogSearchCriteria.Operator.EQUAL);CatalogSearchCriteria scrt = new CatalogSearchCriteria (tags, cat,CatalogSearchCriteria.Operator.OR);
A company created a Catalog with items tagged with one or more of the following categories using the custom tags metadat
-
- Site Admin
- Posts: 899559
- Joined: Mon Aug 02, 2021 8:13 am