Now I'm working on one scenario :
- create document with header and items
I've created all necessary parts of Business Object logic:
- CDS (with associations and so on)
- Behaviour definition (managed with unmanaged SAVE)
- UI Annotations
- Service and Binding (Odata2 UI)
Everything working well (preview and create app using BAS), but application do not work as I need.
Application works as described below :
- "CREATE" document - I can only create header data
- Object detail from list - first on detailed screen there is header only in view mode and I can create items - create one item, save, create other item and save ....
- when I switch to "EDIT", I can change header data, existing items, but I cannot create new items.
So, this scenario is, I think, not good for most of applications.
I've trying to analyze CDS for Business Partner - everything in my app is like in BP (RAP). But, in BP app it works as i need - I can create BP (general data) with associated data (bank account, industry sectors, ...) in one - saving as an whole object, not particular CDS (tables).
Please, how can I create app using RAP, where I can manage whole object in total ? To create header and items in one step, to change header and items in one , ...
Does it depends on how I have defined CDS and behaviour, or it is defined next when I create an application in BAS ?
EDIT : Application have been developed on on-premise system ...