Rollbase print option - filter on print page

Posted by mihai_neagoe on 16-Sep-2014 03:34

Hi,


We are using the print option from Rollbase 3.0 for OE service objects. Each object has default filter set on Search Criteria and the other options hidden from js component. When printing the Records list page the default filter appears on page. Is it possible to remove it?

Thank you.

All Replies

Posted by Orchid Corpin on 16-Sep-2014 08:51

Hi mihai,

You can remove print option for non-admin role permission. Edit the permission > got to Administrative Permission section > Uncheck the Print and Export *export functionality to non-admin will be hidden as well in doing this.

Hope this may help.

Regards,

Orchid

Posted by mihai_neagoe on 17-Sep-2014 01:46

Hi Orchid,

The print option should be available for the user. The problem we have is that on the print page the default filter appears.

Posted by Orchid Corpin on 17-Sep-2014 09:08

Hi mihai,

I see, you can do this with some CSS codes, just get the element ID, name or class of the filter to be use in the CSS. Usually the filter name is the Section name itself.

<style media="print">
div[name='Detailed Search'] { display: none; }
</style>


Hope this may help.

Regards,

Orchid

Posted by mihai_neagoe on 24-Sep-2014 03:03

Hi Orchid,

This solution works for the print action in the browser but does not change the print page that pops-up from using the default action. The default filter setting for our object is Search Criteria so the selection filter does not appear on page (and from this perspective should not appear on the print page either). Previous to version 3.0 this print action poped-up a print page which containted only the search criteria besides the data.

Thank you,

Mihai

Posted by Orchid Corpin on 25-Sep-2014 16:14

Hi Mihai,

Yes, the code is working for the actual print preview both parent and popup window.
Currently Rollbase does not have option to hide elements only in the Print popup window, some codes in the script component can hide elements like the css <style media="print"> but in the actual print preview (ctrl+p).
The thing is if you want to have codes to hide the filter upon popup onload this might also affect the parent window.
If you want this functionality to be available in the future versions feel free to file an enhancement through the link below, your ideas are important to help us improve our product.
https://community.progress.com/businessusers/i/rollbase/default.aspx

Regards,
Orchid

This thread is closed