A company created a Catalog with items tagged with one or more of the following categories using the custom tags metadat

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

A company created a Catalog with items tagged with one or more of the following categories using the custom tags metadat

Post by answerhappygod »

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);
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This question has been solved and has 1 reply.

You must be registered to view answers and replies in this topic. Registration is free.


Register Login
 
Post Reply