Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Context mapping vs Instance variables

Hi everybody,

I am facing the following issue:

when should we map data to context and when should we keep data in instance variables?

Reasons for using context which come to mind:

- UI binding

- sharing data between controllers

backend call execution is not listed as you can execute the call just calling modelClass.execute(), so strictly speaking you can do without context mapping.

Using instance variables can speed development up since you needn't access context and nodes before actual data manipulation.

I would like to hear feedback from fellows developers, thanks

Vincenzo

Former Member
Not what you were looking for? View more on this topic or Ask a question