Hide the fields in Print dialog

Community plugins and extensions
Post Reply
User avatar
kevinvdheuvel
Posts: 96
Joined: Mon Mar 09, 2015 3:31 pm

Hide the fields in Print dialog

Post by kevinvdheuvel »

Hi

As per our requirement, we would like to hide a few fields on dialog like orientation, range

We had tried below code but we don't have luck

Code: Select all


           plugins : [                      
                                // Plugin that enables printing
                                Ext.create('Sch.plugin.Printable',{
                                    ptype              : 'scheduler_printable',
                                    pluginId           : 'printable',
                                    exportDialogConfig : {
                                        defaultFormXType : 'myexportform',
                                        format           : "A3",
                                        orientation      : "landscape",
                                        showOrientationField:false,
                                        range            : "complete",
                                        showRangeField      :false,
                                        showHeader       : true,
                                        stateful             : true,
                                        showColumnPicker     : false,
                                        modal                : true,
                                      showOrientationField:false,  // This is not working
                                      showDPIField: false         // It is working 
                                        
                                    },



                                    docType             : '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">',                                    
                                    
                                    
                                    
                                    
                                })
                           ]
           


Please help us

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2996
Joined: Fri Apr 01, 2016 11:08 am

Re: Hide the fields in Print dialog

Post by pmiklashevich »

Hello,

orientationField and rangeField do not have their showOrientationField and showRangeField equivalents. Sch.widget.ExportDialogForm has orientationFieldConfig and rangeFieldConfig. These field will be created anyway, but you can try to hide them:

Code: Select all

exportDialogConfig : {
    orientationFieldConfig : {
        hidden : true
    },
    rangeFieldConfig : {
        hidden : true
    }
}
Pavel Miklashevich - Core Developer

User avatar
kevinvdheuvel
Posts: 96
Joined: Mon Mar 09, 2015 3:31 pm

Re: Hide the fields in Print dialog

Post by kevinvdheuvel »

Thanks

Post Reply