Skip to content

GitHub Issue #1056: ConditionalFormat applied via DomainUtil.getPropertyDescriptor() doesn't handle multiple filter conditions#7586

Draft
cnathe wants to merge 2 commits intodevelopfrom
fb_calcColCondFormat1056
Draft

GitHub Issue #1056: ConditionalFormat applied via DomainUtil.getPropertyDescriptor() doesn't handle multiple filter conditions#7586
cnathe wants to merge 2 commits intodevelopfrom
fb_calcColCondFormat1056

Conversation

@cnathe
Copy link
Copy Markdown
Contributor

@cnathe cnathe commented Apr 15, 2026

Rationale

#1056 Unable to apply multiple conditional formats to a Calculation field

DomainUtil.getPropertyDescriptor() was loading conditional format filters from XML metadata by calling gwtFormat.setFilter(...) in a loop, causing each iteration to overwrite the previous filter so only the last one
survived. This PR fixes the bug by extracting the filter-building logic from ConditionalFormat.convertFromXML() into a shared buildFilterQueryString() helper, then calling that from both sites.

Changes

  • factor out XML metadata conditional format parsing and query string generation in ConditionalFormat.java to be reusable
  • use ConditionalFormat.buildFilterQueryString in DomainUtil.getPropertyDescriptor

…rtyDescriptor() doesn't handle multiple filter conditions

- factor out XML metadata conditional format parsing and query string generation in ConditionalFormat.java to be reusable
- use ConditionalFormat.buildFilterQueryString in DomainUtil.getPropertyDescriptor
@cnathe cnathe self-assigned this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant