Hi, I am creating a report but any number above 999 will not be calculated as it has the comma seperator so is set as a text format even though the origial templete is set as a number with comma seperator turned off or set as currency *which turns it back on again). Although you can remove the comma seperator in wpdatatables within the interger or float column settings, you can't remove it from a formula column. This has a knock on effect with the report builder as there is also no option to remove them and then Excel see the comma and decides it's a text field. Is there any way around this without you having to add the option in the setting to allow the decimal point but remove the comma seperator by default.
Could you please send us your template, or if you used file-based source data so that we can take a closer look and try to isolate exactly what could be done to make a solution for you?
The number format must be the same in wpDataTables, WordPress, and your local environment (PC, MS Office Suite, and so on). So if there are some settings different than in wpDataTables, the generated file may appear differently, like in your case.
The thousand and decimal separators can't be removed from the formula columns, as they are saved as floats and do not inherit the number format from wpDataTables (as you said yourself, it "turns" itself on again).
This ticket has been forwarded to our developers, so hopefully they have a hot-fix for you.
This needs to be done as custom work, which we do not provide support for.
You can try using the hook for the formula column, and for the table that you need. Just make sure to replace the table ID with the ID of the table that you need:
function removeSeparator ($formattedValue, $tableId){ if ($tableId == 1){ if (strpos($formattedValue,',') !== false) return str_replace(',','',$formattedValue); }
Hi, I am creating a report but any number above 999 will not be calculated as it has the comma seperator so is set as a text format even though the origial templete is set as a number with comma seperator turned off or set as currency *which turns it back on again). Although you can remove the comma seperator in wpdatatables within the interger or float column settings, you can't remove it from a formula column. This has a knock on effect with the report builder as there is also no option to remove them and then Excel see the comma and decides it's a text field. Is there any way around this without you having to add the option in the setting to allow the decimal point but remove the comma seperator by default.
Regards Bob
Hi, Bob.
Thank you for reaching out to us.
Sorry for the late response.
Could you please send us your template, or if you used file-based source data so that we can take a closer look and try to isolate exactly what could be done to make a solution for you?
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Bob
Sorry for the late response.
The number format must be the same in wpDataTables, WordPress, and your local environment (PC, MS Office Suite, and so on). So if there are some settings different than in wpDataTables, the generated file may appear differently, like in your case.
The thousand and decimal separators can't be removed from the formula columns, as they are saved as floats and do not inherit the number format from wpDataTables (as you said yourself, it "turns" itself on again).
This ticket has been forwarded to our developers, so hopefully they have a hot-fix for you.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi again Bob.
This needs to be done as custom work, which we do not provide support for.
You can try using the hook for the formula column, and for the table that you need. Just make sure to replace the table ID with the ID of the table that you need:
I hope this helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables