Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive Legend: Predominance expression where clause #419

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

rslibed
Copy link
Collaborator

@rslibed rslibed commented Sep 19, 2024

No description provided.

@@ -212,8 +212,7 @@ export function handlePredominanceExpression(elementInfo: any, featureLayerView:
if (elementInfo.value === field) {
return;
}
const sqlQuery = `(${elementInfo.value} > ${field} OR (${field} IS NULL AND ${elementInfo.value} <> 0 AND ${elementInfo.value} IS NOT NULL))`;

const sqlQuery = `(${elementInfo.value} > ${field} OR (${field} IS NULL AND ${elementInfo.value} IS NOT NULL AND (${elementInfo.value} > 0 AND ${elementInfo.value} < 0)))`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would this work? (${elementInfo.value} > 0 AND ${elementInfo.value} < 0)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops you're right, I updated AND to OR. ${elementInfo.value} <> 0 wasn't working properly so I was trying to write an alternative to that.

@rslibed rslibed merged commit 736901b into master Sep 19, 2024
3 checks passed
@rslibed rslibed deleted the rslibed/interactive-legend/predominant branch September 19, 2024 16:04
Copy link

instant-apps-components

The following PR has been closed and merged. - link to PR

  • NPM Version: 1.0.0-beta.258
    -link
  • Repo Version: 1.0.0-beta.259
    -link

If you want to publish, your Repo version should be updated and differ from the current version on NPM

To publish instant-apps-components to NPM

If you would like to follow this PR up with a publish, please proceed to the actions tab and manually run the publish.

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.

3 participants