Relevant tutorial: Customize the WIzard Generated Application
Bug description
The code snippet that is given in Step 4.5 seems faulty. The EntityViewModel class inherits the ODataViewModel class. As there is an override for the onFloatingAdd function the IDE complains that the declaration of the onFloatingAdd in the parent class (ODataViewModel) is not declared as open.
Secondly, the variable entitySet cannot be resolved as a reference by the IDE in the given code snippet and therefore leads to an error.
Proposed solution
Simply adding the keyword open fixes the firstly mentioned failure. However, I've not been able to completely understand and therefore fix the unresolved reference bug for the entitySet variable
Technical Details
- Android Studio Version: Meerkat 2024.3.1
- SAP BTP SDK for Android Version: 25.4.7
- Jetpack Compose-based UI
Relevant tutorial: Customize the WIzard Generated Application
Bug description
The code snippet that is given in Step 4.5 seems faulty. The EntityViewModel class inherits the ODataViewModel class. As there is an override for the
onFloatingAddfunction the IDE complains that the declaration of the onFloatingAdd in the parent class (ODataViewModel) is not declared asopen.Secondly, the variable
entitySetcannot be resolved as a reference by the IDE in the given code snippet and therefore leads to an error.Proposed solution
Simply adding the keyword
openfixes the firstly mentioned failure. However, I've not been able to completely understand and therefore fix the unresolved reference bug for theentitySetvariableTechnical Details