I have an app using REST APIs.
I have an action that creates a new item with a POST call (
createQuery). When that call is successful, I am refreshing a table by calling a GET call (
getallQuery) that retrieves all such items (using Success Event Handlers)
What I'd like to do now is to then select the row in the table that corresponds to the new item. It obviously needs to be done after the
createQuery call has completed and the table refresh has also taken place.
I tried adding a control component > table > select row (with the id from the createQuery.data.id) in the Success Event Handlers in the
createQuery, but that doesn't work (as it can't be made to wait on the other event handler).