Question
How to remove comma for integer field in section list page?
13:17 Feb 24, 2021
Dear community,
Using "useThousandSeparator": false we can remove comma in section edit page or detail edit page. How do we do it in Section list Page?
Thanks
Like
4 comments
15:57 Feb 26, 2021
Hello Shivani,
You can change the column format in prepareResponseCollectionItem method.
Here is a sample:
define("SomeSection", [], function() { return { entitySchemaName: "SomeSectionSchema", details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/, diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/, methods: { prepareResponseCollectionItem: function(item) { this.callParent(arguments); var someColumn = item && item.columns && item.columns.SomeColumn; if (someColumn) { someColumn.dataValueType = Terrasoft.DataValueType.TEXT; item.set("SomeColumn", item.values.SomeColumn.toString()); } } } }; });
Best regards,
Bogdan S.
19:06 Feb 26, 2021
Bogdan Spasibov,
That is fantastic Bogdan. Thanks for sharing this!
Ryan
19:27 May 14, 2021
This works for the section - is there a code for a detail on the contact page? I need to remove the comma from the year field here
11:52 May 17, 2021
Hi Heather,
Please refer this post where this question was explained.
https://community.creatio.com/questions/special-character
The logic for section differs from page and there is no way to apply the property to the grid.
Regards,
Bogdan L.
Show all comments