cancel
Showing results for 
Search instead for 
Did you mean: 

Backoffice how to customise search & display for specific customer context

Former Member
0 Kudos

Hi, I have a scenario where in backoffice the backoffice User will land with customer in context via the URL (Basically the backoffice is opened via SSO).

Here is is the sequence:

  • Have used BookMark Event to get hold of the URL parameter (CustomerID) with in widget, which is working fine.

  • Have got a separate perspective with Tree on the leftslot and centerslot with collapsable having Search/Advanced Search (top slot) , List (middleslot) & Details in the bottom slot.

  • Have got "All Orders" in the left hand Tree and when i click it refreshes the centerslot with list items.

Questions

  • When I click on the "All Orders" I need to make sure that the list on the center slot display ONLY the Orders related to the Customer in context. I have seen the "AdvancedSearchController" is triggered and a doSimpleSearch is called, If I extend AdvancedSearchController will I be able to override the search functionality?

  • How to make the Simple Search & Advanced search to fetch items ONLY related to the Customer in context.

  • On the URL if I pass an Order ID then the corresponding Order should be opened after all the widgets are loaded in the center slot.

Thanks, Srini

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srinivasan,

You can achieev that by extending AbstractInitAdvancedSearchAdapter and overriding the method addSearchDataConditions to add your custmized filter. This will trigger whenever you click navigation node in explorer tree and fulfill your requirement. Its not required to customize the Advanced Search Controller.

The approach is well documented in the wiki. Advanced Search Customization

Please do let me know if you have any issues or questions. I hope this helps.

Thanks

Jayahar

Former Member
0 Kudos

Thanks Jayahar, I'll try this now. So I can add a condition to select Orders or any DataType based on a Customer?

Also is it possible to load the backoffice with the Order opened (3rd query above)?

Regards, Srini

Former Member
0 Kudos

Hi Srinivasan,

If you can get hold of customer value, the wiki shows how to apply the filter based on navigation node. I have tried the above approach before to filter for ex itemtypeA specific to some status. In my case I have passed the status value in addsearchdataconditions to filter the results. I didnt try about opening the itemtype by default in center slot.

Thanks

Jayahar

Answers (0)