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

✨ Add search and editing support for Relation Reference widget (1:N relations) #631

Merged
merged 21 commits into from
Nov 9, 2023

Conversation

wlorenzetti
Copy link
Member

@wlorenzetti wlorenzetti commented Oct 24, 2023

Summary

Parse RelationReference settings when uploading QGIS project inside G3W-SUITE and send it to g3w-client for editing and searching actions.

Screenshot_20231010_151557

For search widget, if the field of searching has a ReltionReference QGIS form widget and if a 'Selectbox' or a 'Autocompletyebox' is set fro the search widget, now is possibile set the the use fo RelationReference into the serchign form:

Screenshot_20231031_080233

In client seraching configs into options section you'll find the boolean property relation_reference:

"queryurl": null,
"title": "ricerca per relationreferance",
"results": [],
"filter": [{
  "op": "eq",
  "attribute": "gid_padre",
  "label": "",
  "input": {
    "type": "selectfield",
    "options": {
      "numdigaut": "2",
      "relation_reference": true,
      "values": [],
      "blanktext": ""
    }
  },
  "logicop": "AND"
}],
"dozoomtoextent": true,
"otherquerylayerids": null,
"layerid": "figlio_9fbf65ac_4c99_4606_9a49_3db065402a37",
"querylayerid": "figlio_9fbf65ac_4c99_4606_9a49_3db065402a37"

Closes: #616

@wlorenzetti wlorenzetti added the feature New feature or request label Oct 24, 2023
@wlorenzetti wlorenzetti added this to the v3.7 milestone Oct 24, 2023
@wlorenzetti wlorenzetti self-assigned this Oct 24, 2023
@wlorenzetti wlorenzetti changed the title Relation reference support ✨ Relation reference support Oct 24, 2023
@wlorenzetti
Copy link
Member Author

@volterra79 for search widget, if the field of searching has a ReltionReference QGIS form widget and if a 'Selectbox' or a 'Autocompletyebox' is set fro the search widget, now is possibile set the the use fo RelationReference into the serchign form:

Screenshot_20231031_080233

And in the client seraching configs into options section you'll find the boolean property relation_reference:

"queryurl": null,
                "title": "ricerca per relationreferance",
                "results": [],
                "filter": [
                    {
                        "op": "eq",
                        "attribute": "gid_padre",
                        "label": "",
                        "input": {
                            "type": "selectfield",
                            "options": {
                                "numdigaut": "2",
                                "relation_reference": true,
                                "values": [],
                                "blanktext": ""
                            }
                        },
                        "logicop": "AND"
                    }
                ],
                "dozoomtoextent": true,
                "otherquerylayerids": null,
                "layerid": "figlio_9fbf65ac_4c99_4606_9a49_3db065402a37",
                "querylayerid": "figlio_9fbf65ac_4c99_4606_9a49_3db065402a37"
            }
        }

wlorenzetti and others added 8 commits October 31, 2023 08:42
@Raruto Raruto changed the title ✨ Relation reference support ✨ Add support for Relation Reference widget (1:N relations) Nov 8, 2023
@Raruto Raruto changed the title ✨ Add support for Relation Reference widget (1:N relations) ✨ Add support for Relation Reference widget (1:N relations) Nov 8, 2023
@Raruto Raruto marked this pull request as ready for review November 8, 2023 13:15
@Raruto Raruto changed the title ✨ Add support for Relation Reference widget (1:N relations) ✨ Add search and editing support on Relation Reference widget (1:N relations) Nov 8, 2023
@Raruto Raruto changed the title ✨ Add search and editing support on Relation Reference widget (1:N relations) ✨ Add search and editing support for Relation Reference widget (1:N relations) Nov 8, 2023
@wlorenzetti wlorenzetti merged commit d4e78fa into dev Nov 9, 2023
@wlorenzetti wlorenzetti deleted the RelationReference branch November 9, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ Add support for Relation Reference widget (1:N relations)
2 participants