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

Error while generating getter function for selector #178

Open
btnevan opened this issue Feb 28, 2019 · 0 comments
Open

Error while generating getter function for selector #178

btnevan opened this issue Feb 28, 2019 · 0 comments

Comments

@btnevan
Copy link

btnevan commented Feb 28, 2019

I am getting this error in my console:

Error while generating getter function for selector : portal.fields.fields.fieldId NOTE: Define manually



I need to find a way to use that data, but do not know how to "define manually" as suggested by the error.

The JSON is presented in the following format (I have no way of changing this nesting)

{
    "items": [
        {
            "id": 123456,
            "portal": {
                "fields": [
                    {
                        "fieldId": 100001,
                        "fieldName": "CategoryA",
                        "valueId": 123456,
                        "value": "ValueX",
                        "fields": [
                            {
                                "fieldId": 200001,
                                "fieldName": "SubCategoryA",
                                "valueId": 123459,
                                "value": "SubValueA"
                            }
                        ]
                    },
                    {
                        "fieldId": 100002,
                        "fieldName": "CategoryB",
                        "valueId": 123457,
                        "value": "ValueY"
                    },
                    {
                        "fieldId": 100003,
                        "fieldName": "CategoryC",
                        "valueId": 123458,
                        "value": "ValueZ"
                    }
                ]
            },
            "date": "2019-02-11"
		}
    ],
    "totalCount": 1
}	

I simply need to display the value of each object (in this example, ValueX, ValueY, ValueZ, and SubValueA) . The other keys-value pairs of fieldId, fieldName, and valueId are not important for my implementation.

Can you please provide some assistance.

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