#11143: Use another layer as input for attribute table dropdown#11152
Merged
dsuren1 merged 5 commits intogeosolutions-it:masterfrom Jun 11, 2025
Merged
#11143: Use another layer as input for attribute table dropdown#11152dsuren1 merged 5 commits intogeosolutions-it:masterfrom
dsuren1 merged 5 commits intogeosolutions-it:masterfrom
Conversation
…om layer to be used in another layer - create CustomAutocompleteEditor component to be used for the new requirements [fetching/displaying atrribute values from layer to be used in another layer] - create custom stream 'createCustomPagedUniqueAutompleteStream' to fetch values - add unit tests
dsuren1
requested changes
Jun 11, 2025
Contributor
There was a problem hiding this comment.
@mahmoudadel54
The changes look fine. Could you also update the FeaturePlugin with this configuration as an example, detailing the props, similar to what’s described in the documentation?
web/client/components/data/featuregrid/editors/CustomAutocompleteEditor.jsx
Outdated
Show resolved
Hide resolved
Contributor
Author
done |
dsuren1
requested changes
Jun 11, 2025
- update docs in FeatureEditor plugin
dsuren1
approved these changes
Jun 11, 2025
Contributor
|
@ElenaGallo Kindly test it in DEV, when available. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a new capability within the FeatureEditor plugin to handle fetching/paginated and displaying unique attribute values from a specified source layer for use in editing attributes of another (target) layer. This is achieved by introducing a new rule with the editor key CustomAutocompleteEditor within cfg.customEditorsOptions.rules.
Configuration Example:
The PR includes:
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
#11143
What is the current behavior?
#11143
What is the new behavior?
User can now define rules into FeatureEditor plugin in localConfig.json to specify an external source layer and attribute from which autocomplete suggestions are fetched to be used in add new feature or edit an existing feature.
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information