Skip to main content

I am using a search component in a new area of my customer community, but I’ve got some issues that I need to resolve before I can release it.


My customer profile has access to all the records in this case (a Quotes custom object) but I want to restrict the quotes they can see using a field called Agent_Shared__c = TRUE and not display to them the FALSE ones.


For testing, I build a model and placed a table on my page with the same condition (Agent_Shared__c = TRUE.) Logged in as a community users, I correctly see 3 records.


My search component is setup to query this one Quotes object, and return the Name of the quote, ID and related Account.Name.


I get the ID so that my select action just redirects to the /{{Id}} page.


To accomplish the condition on the Search for Agent_Shared__c = TRUE, I added it to the xml, like this:




_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _

_ _


Issue 1: The results list doesn’t return the expected results:


Issue 2:

When clicking the “View”, the pop up shows ALL the quotes and doesn’t respect the Share_Agent__c = TRUE condition at all. And, the table has the ugly ID in it, which I don’t want my customers to see.


Can these issues be fixed, or should I bail on the search component in my community for now??


Chanrda

bumping back up in hopes there is a cure.  As of now, internally we are planning on removing all the search components… 


The search component does not currently allow you to specify conditions on what is displayed in the drop down or in the resulting popup page.  Sorry. 


Thanks for the reply, Rob.  Is there a hack to hide the “view” link on the search component?


You might be able to override the class that shows “view”  with css " display: hidden; "    I can’t say I’ve tried that though.  


I think the css would be…


.sk-search-result-header&gt;.sk-view-link,&nbsp;.sk-search-result-header&gt;a.sk-view-link&nbsp;{<br>&nbsp; &nbsp;display: none;<br>}