Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Search Template Search Result Columns Labels Change

    Posted Wed September 15, 2021 02:08 PM

    Hi,

    I have a search template in my Content Navigator application. This search template has 5 fields. These 5 fields are assigned in Search Criteria and Search Results. I need to set different labels for these fields because symbolic name is not user readable. In Search Criteria I did this already using below code in plug-in.

    aspect.before(ecm.widget.search.SearchForm.prototype, "_createSearchField", function (criterion, tablename, isChildCriterion, operatorHidden) {

    if(criterion.name==='ABC'){

    criterion.name='Customer Number';

    }

    );

    But this is only working for Search Criteria. I need the same customisation for Search Results. By the way I need to do this based on search template name.

    Thank you in advance.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Search Template Search Result Columns Labels Change

    Posted Thu September 16, 2021 06:24 AM

    Do you mean to customize the Search Result's column name? Have you tried to use the plugin response filter to do this? I think you may use p8/search response filter. In your filter, you can customize the columns names based on your template name.

    Thanks,

    Jason



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: Search Template Search Result Columns Labels Change

    Posted Thu September 16, 2021 11:26 AM

    Hi Jason,


    Thanks for the reply. Yes I mean Search Result's column name. Looks like plug response filter p8/search is one of the option. Will try and let you know. If possible would like to do it using plug-in js file so that all code(Search Criteria customisation and Search Results customisation) is in one place.


    Regards,

    Ravi



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: Search Template Search Result Columns Labels Change

    Posted Fri September 17, 2021 09:48 AM

    Hi Jason,

    It works with p8/search. But I could not check what is the search template name instead I should check document class name. Whereas for Search Criteria labels I am doing the label change based on the search template name. It would be nice If I could the same for Search Results Columns.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: Search Template Search Result Columns Labels Change

    Posted Wed September 22, 2021 07:16 AM

    Then maybe you can try to overwrite the search function in SearchTemplate.js. You can modify the search result callback before run self._searchCompleted(response, callback, teamspace);

    Thanks,

    Jasonn



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration