Invoke Edit Form after Add Form

I have an Add Item form to create a new Item record. When the user saves the new record I would like to automatically open this Item record in the Edit Item form. In order to do this I need to know the ItemID (PK) of the Item record that was just created… I was hoping that Result from the createItem data method would return an instance of the newly created Item with its ItemID… Unfortunately it seems, at least according to intellisense, that this is not the case…

Is there a way to do what I am trying to do?

Hi @semafox,

The ID should be part of the response. You are right though that it doesn’t appear in the autocomplete. We will investigate why and fix that issue.

You should be able to add an action in the Then event of the ‘createXXX’ invoke and use ${result.ID} to navigate to the edit page.

Best regards,
Atanas

1 Like