Skip to Content
Technical Articles
Author's profile photo Louis-Arnaud BOUQUIN

Fiori Elements : navigate to Object Page in Edit Mode

There is a nice feature available on fiori elements List Report / Object page applications: navigate from list report to object page in edit mode .


This is cool, but not available in previous SAPUI5 versions (I don’t know when it appeared but it is not available in 1.71). As I couldn’t find any solution to implement this feature, I decided to code it myself and I share it with you in this blog post.


Step 1 : find the path for edit action.

This is quite simple if you are familiar with SAPUI5 application, you can find it in the annotations of the service :


Step 2 : add a custom column with an edit button.

There is a wizard to add a custom column. Just change the content of the column in the xml view fragment in order to add the button :

Step 3 : implement the javascript function in the controller extension.

Replace the action with the action you got from step 1.

Basically, this code just call the edit function on the object. If it succed, then the navigation is done to the draft object. If it failed (probably because the object is already in edit mode), then it simply navigate to the object in its current state.

The result look almost the same as the standard implementation:

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Akshay Verma
      Akshay Verma


      Thank you for the informative blog.

      Can we call the Create Action i. NewAction under draftRoot using InvokeAction method from a custom action button in List report page ?

      Author's profile photo Louis-Arnaud BOUQUIN
      Louis-Arnaud BOUQUIN
      Blog Post Author

      Hello Akshay,

      Not sure to understand, but you can call any action available of the object. I guess that in that case you would like to remove the navigation that is done.

      I don't think that it make sense to call the create action in that case because it is not related to the object where the button is added.

      Author's profile photo Akshay Verma
      Akshay Verma

      Hi Louis,

      Thanks for the reply. Please let me explain my scenario to you.

      In my scenario, I have a custom static factory action Create on List Report Toolbar created via RAP. When user clicks on it it opens a dialog to ask for Account number and then calls the respective action method in the backend.

      Now in certain scenario, like when user applies an account number filter on the list report and then click on create. I need to get that account number from filter bar and skip the create dialog and pass that account number as parameter using Invoke Action method.

      But I am getting an error that create action not found.