Content Management and Capture

Content Management and Capture

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

 View Only
Expand all | Collapse all

How to change the filename generated on ICN's "Export" function on search results?

  • 1.  How to change the filename generated on ICN's "Export" function on search results?

    Posted Tue May 04, 2021 03:59 PM

    Hi. I'm using ICN 3.0.9 with CM9.6 as a backend.

    I have a requirement to change the filename generated by the "Export" function when an user right-clicks a selection in the search results.

    To do so, I thought of using a ResponseFilter for the "/export" function. I created the filter and added it to the getResponseFilters() method in the main plugin class. I've put a breakpoint in the filter() method to check the response, but the code isn't stopping there.

    I've created a RequestFilter just to double-check I was doing everything correctly and it seems I am. The code runs the RequestFilter but isn't running the ResponseFilter. Could anyone shed some light on that? Does the export function support a ResponseFilter?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: How to change the filename generated on ICN's "Export" function on search results?

    Posted Tue May 04, 2021 03:59 PM


  • 3.  RE: How to change the filename generated on ICN's "Export" function on search results?

    Posted Mon May 10, 2021 09:26 AM

    Hi,

    You may implement a new export action and set the filename in the response. Refer to SampleRepositoryGetDocument.java of the sample plugin.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration