Polymorphic dynamic search with Skuid?

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Not sure if this is a job for Skuid, or something to be coded up with Javascript & Apex, but here goes.

I have a Skuid page called Client View that acts as the Account detail page. It's housed in a Visualforce page that overrides the standard Salesforce Account view page. I also have pages that override Contact and User. All my Skuid pages hide Salesforce's header and sidebar (we're effectively "reskinning" Salesforce) and have a common nav bar that I've created.

The user will often be on the Client View, Contact View or User View page want to easily find and navigate to another account, contact or user. My plan is to have a search box in my nav bar where the user can start typing a string and it returns matching accounts, contacts and users as they type. It's polymorphic like Salesforce's global search, but returns records as you type like a Skuid lookup field. The user selects the name of one of the returned records and clicks to navigate to its detail page.

Wondered if you could point me to the best approach to take.

Thanks as always.
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb

Posted 5 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Official Response
FYI for those interested in using SOSL with Skuid --- as of Skuid 6.8.8, Skuid now provides a native JavaScript API that you can use for performing multi-object searches on Salesforce objects using SOSL, and then displaying them in custom UI elements. The method to call is skuid.sfdc.search()--- which is documented here
(Edited)