Auto refresh after create or edit ?

Auto refresh after create or edit ?

tinncuptinncup Posts: 15Questions: 5Answers: 0

should I expect an auto refresh after an edit or create? The server is returning the data array as documented.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,992Questions: 26Answers: 4,887

    Yes, you can see this behavior in this example.

    Do you get errors in the browser's console?

    Use the browser's network inspector tool to capture the JSON response. Post it here so we can see the structure.

    Kevin

  • tinncuptinncup Posts: 15Questions: 5Answers: 0
    edited July 7

    Do you get errors in the browser's console? - No
    The returned object is =

    [
        {
            "data": [
                {
                    "_id": "662587b201726293f361c591",
                    "lbudget": "4628.83",
                    "mbudget": "1313.8",
                    "name": " R2 BCY 50V Controls Box PLC Panels Wiring and Conduit Replacement",
                    "number": "48021766"
                }
            ]
        }
    ]
    

    Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide

  • kthorngrenkthorngren Posts: 20,992Questions: 26Answers: 4,887
    Answer ✓

    Looks like the response is within an array. The response should look like this instead:

        {
            "data": [
                {
                    "_id": "662587b201726293f361c591",
                    "lbudget": "4628.83",
                    "mbudget": "1313.8",
                    "name": " R2 BCY 50V Controls Box PLC Panels Wiring and Conduit Replacement",
                    "number": "48021766"
                }
            ]
        }
    

    See the example client/server data exchange docs for more details.

    Kevin

  • tinncuptinncup Posts: 15Questions: 5Answers: 0

    Thank you - that fixed it and allowed me to also test the error

Sign In or Register to comment.