Skip to content

[WC-3441] DG2: export column enhancements#2287

Open
yordan-st wants to merge 4 commits into
mainfrom
feat/WC-3441_DG2-export-column-enhancements
Open

[WC-3441] DG2: export column enhancements#2287
yordan-st wants to merge 4 commits into
mainfrom
feat/WC-3441_DG2-export-column-enhancements

Conversation

@yordan-st

@yordan-st yordan-st commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

When export type is set to "Default" for attribute columns, the exported Excel cells now use the attribute's own formatting (number decimals/grouping, date pattern) instead of exporting raw values without formatting.

For numbers, the exported cell mirrors what the grid shows: Mendix Decimal attributes do not expose a fixed decimal precision at runtime (only whether digits are grouped), so the format uses up to 8 fractional digits with trailing zeros suppressed. This keeps 1234.56 as 1234.56, 0.5 as 0.5, and integers as integers — instead of collapsing to whole numbers.

Also hides the export type and format properties in Studio Pro for dynamic text columns, since they have no effect.

What should be covered while testing?

  1. Attribute column with exportType "Default" and a Decimal attribute → exported cell is a numeric cell that mirrors the grid (e.g. 1234.56 stays 1234.56, 0.5 stays 0.5, integers stay integers; thousands grouping applied when the attribute uses it). Excel format: #,##0.######## (grouped) or 0.######## (ungrouped).
  2. Attribute column with exportType "Default" and a DateTime attribute with custom pattern dd/MM/yyyy → exported cell should have Excel format dd/mm/yyyy
  3. Attribute column with exportType "Number" or "Date" (custom) → still uses the manually specified export format (unchanged behavior)
  4. Dynamic text column → Studio Pro should NOT show export type, export number format, or export date format properties
  5. Custom content columns → unchanged behavior, all export types still work
  6. Existing configurations with no changes → no regression, everything exports as before

@yordan-st yordan-st force-pushed the feat/WC-3441_DG2-export-column-enhancements branch from 6696f2e to 39c37d2 Compare June 22, 2026 16:01
@yordan-st yordan-st marked this pull request as ready for review June 22, 2026 16:11
@yordan-st yordan-st requested a review from a team as a code owner June 22, 2026 16:11
@github-actions

This comment has been minimized.

@yordan-st yordan-st force-pushed the feat/WC-3441_DG2-export-column-enhancements branch from 39c37d2 to 96a5c83 Compare June 23, 2026 12:10
@github-actions

This comment has been minimized.

iobuhov
iobuhov previously approved these changes Jun 23, 2026
@yordan-st yordan-st force-pushed the feat/WC-3441_DG2-export-column-enhancements branch from c94f30c to adc9e02 Compare June 24, 2026 12:51
@github-actions

This comment has been minimized.

@yordan-st yordan-st requested a review from iobuhov June 24, 2026 13:11
@yordan-st yordan-st force-pushed the feat/WC-3441_DG2-export-column-enhancements branch from adc9e02 to 1e6e1fd Compare July 1, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants