Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Data Grid Filters

  • Andreas Pfeiffer

    Administrator
    November 25, 2025 at 11:18 am

    Hi Sam,

    You would need to create a report class that defines what is going to be printed. I recommend using an instance variable of type list inside the report. Assign this list as a $listname for the report. Then declare a parameter of type list in the $construct method of the report class and copy the data from the parameter to the instance variable.

    Finally in your remote form you can use the command “print report” with an argument of the list that you have in your remote form. This content will then be transferred into the parameter of the report class.

    I hope this helps.

    Best,

    Andreas

  • Sam Kashlan

    Member
    November 29, 2025 at 7:32 am

    Hi Andreas;

    Thank you for your quick response. However, I do not think I explained the issue properly. We are using the filter available the JS remote form the list object itself. Sorry I was not able to upload the picture on the Omnis website, it kept giving an error.

  • Andreas Pfeiffer

    Administrator
    December 1, 2025 at 8:43 am

    Hi Sam,

    So you do not want to print it then?

    Or am I missing something here?

    Best,

    Andreas

  • Sam Kashlan

    Member
    December 1, 2025 at 11:36 am

    I do want to print the filtered list. The user want to print on different filters available part of the SJ object.

  • Andreas Pfeiffer

    Administrator
    December 1, 2025 at 3:29 pm

    Sam,

    I think you would need to filter the list on the server before you can print it in a report.

    All the component does is to filter it on the client I assume.

    What exactly do you mean when you say “print”? Just display or create a PDF report? In the latter case it would need to be filtered on the server. You can do this by making the list become a smart list, set $smartlist of the list to kTrue. Then you can filter the list using the $filter method of the list. Finally you can pass this list to the report class to create a PDF report out of it.

    I hope this helps.

    Best,

    Andreas

Log in to reply.