cancel
Showing results for 
Search instead for 
Did you mean: 

Default values on ObjectPage in create mode

0 Kudos
1,350

Hallo,

I've got a simple application based on the List Repot Template. The ListReport shows a smart table with an AddEntry button. The button appears automatically because the entity set has a sap:creatable="true" property.

When I press the button, the corresponding ObjectPage opens within the create mode. The object page has a quite compex structure with many facets, internal tables etc.

I need to put default values into some fields on the ObjectPage.

I've tryed to use extenstionAPI of the ObjectPage and attachPageDataLoaded, but the event is fired when the header of an opened entity is present only. Also I've checked an information about SideEffects but they are not triggered when a new entry is created.

Is the any way to put default values into the object page's field when an entity is created?

Thank you in advance.

Best regards,

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member642701
Discoverer
0 Kudos

Hi Alex,

One option you can try to use the relevant vent service implementation as described in the documentation below.

https://sapui5.hana.ondemand.com/sdk/#/topic/11ff444f82e14eb3a2e8eca0065a5055.html

Also draft creation via newAction is also can be used to pre fill default values.

https://sapui5.hana.ondemand.com/#/topic/8ba009d7b8434dc1a4948c9211e30c40

Thanks,

Amit

0 Kudos

Hi, Amit,

thank you for your advice.