cancel
Showing results for 
Search instead for 
Did you mean: 

Behaviour of Edit Flow / OnBeforeCreate overide in a draft enabled Fiori Elements Application

Robert_Schulte
Participant
0 Kudos
91

Hello everyone,

we "overrode" above mentioned method in our draft enabled application to be able to request data from the user not concerning the object to be edited. If the user does not enter anything, creation should be stopped.

Unfortunately before our additional popup the standard Fiori Elements dialog requesting the key value of the object to be created is shown. 

Is there any way to avoid this?

Best regards

Robert

Accepted Solutions (0)

Answers (1)

Answers (1)

sandeep_rs
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

It sounds like you are getting the dialog described in the V4 specific section "Working with the Create Dialog in POST-Based Create" of page. This would be the default behavior in case of "missing" key/immutable fields.

If you do not need this but want the user to provide some other parameter, you could model the create via NewAction - see V4 specific section of page. Then the parameters you define for this "NewAction" would show up when user clicks on Create - the V4 specific section "Action Parameters" of page would have more information.

Best Regards,

    Sandeep

Robert_Schulte
Participant
0 Kudos
Hi Sandeep, i know that the behaviour regarding the popup for key fields is like documented. I just thought that there might be sth which i missed to achieve the additional popup before that POST. So OnBeforeCreate unfortunately is not 100% "before" regarding drafts. Having two popups - one OnBefore and then key fields would be a no go anyway. Best regards, Robert