Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to change default summary function in Domain Designer?


    nbochenko
    • Features: Domains Version: v5.2, v5.1, v5.0 Product: JasperReports® Server

    Issue:

    In some use cases default aggregation function in domain designer is set to "None". In some rare cases, if you need to edit many fields, you may want to change the default aggregation function selected in UI:

    [toc]

    defaultAggregate.png.c13f88ae202331b85d012dc6d53bc005.png


    Resolution:

    In order to change it, find file /domain.designer.display.js. Locate the lines:

    if (!item.isParent()) {
        metanode.extra['dataType'] = item.param.extra.JavaType,
        metanode.extra['defaultAgg'] = 'none',
        metanode.extra['defaultMask'] = 'none'
    }
    

    Change metanode.extra['defaultAgg'], for example, to this:

    metanode.extra['defaultAgg'] = 'Average',
    

    You will need to refresh your page.

    Note that this is only a UI setting, and won't change your domain. It is relevant only when selecting Measures.

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...