Field format according to types


#1

Hello, i have some fields configured with the displayFormat in the metadata, but i have too many fields, is there a way to configure a displayFormat for all of them instead of each one?


#2

Actually yes, you can add some custom metadata for multiple fields based on their types, like this:

var customMeta = {
    [source]: {
        displayFormats: {
            'INTEGER': "0",
            'NUMBER': "0[.]000",
            'MONEY': '($ 0.00 a)'
        }
        fields: {}
    }
}

#3

Go it, it works good thanks, does this works with time fields also?


#4

Sure you can, check this link in the documentation.