cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptation Project: Add arbitrary fields and controller logic

martinc_mb
Participant
0 Kudos

I want to add additional fields in an adaptation project which are not in the OData model.

Presumably this means having to add a local (JSON) model for the new custom fields as well.

(The requirement would be to set a value in the OData model based on the new field).

Looking through the documentation, I cannot see anything that fits this kind of enhancement (Adapt the UI | SAP Help Portal).

Is there a way, in an adaptation project, to:

  1. Add arbitrary/new fields in an adaptation project
  2. Add a JSON model for the new fields' values
  3. Enhance the controller to respond to events from the new fields?

SAP Fiori 

View Entire Topic
junwu
Active Contributor
0 Kudos

I don't see any issue.

what you have tried?

add fragment

simply add the jsonmodel in ext controller

assign model to the fragment

martinc_mb
Participant
0 Kudos

Thanks, do you have links to any relevant documentation or an example?

(To you it seems obvious, but I am doing this for the first time).

Also, you did not mention adding behaviour in a controller?