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

Hierachichal Data Filter #66

Open
khalili-mahdi opened this issue Jul 6, 2019 · 0 comments
Open

Hierachichal Data Filter #66

khalili-mahdi opened this issue Jul 6, 2019 · 0 comments

Comments

@khalili-mahdi
Copy link

can i use filtering and sorting to a hierarchical source?
this is just for example my model is ListModel not json :

        {
            "identifier": 2,
            "childs": [{
                    "identifier": 201,
                    "name": "a",
                    "image": "\ueae5",
                    "levels": [{
                            "level": 1,
                            "push": "surathesab.qml"
                        }
                    ]
                }]

        }, {
            "identifier": 3,
            "name": "b",
            "image": "\uf02c",
            "childs": [{
                    "identifier": 301,
                    "name": "c",
                    "image": "\uf53c",
                    "levels": [{
                            "level": 1,
                            "push": "check.qml"
                        }
                }]
        
        }

final output should be name=="a" and name=="c"
so in this data i should see levels!=null which i go with this :

ValueFilter{
                    roleName: "levels"
                    value: !null
                }

but , name == "c" is a child how can i handle it?

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

No branches or pull requests

1 participant