on 2020 Dec 09 11:04 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.