Hi,
I have my default oDataModel defined in my manifest.json as "". This oDataModel has a entity called "ZC_MAINT_ZLABELS_PRINT" with some properties. 1 of these properties is Plant and has a value help defined in CDS (RAP).
I want to put a SmartField in my application for property Plant (So I don't need to create a value help myself):
<form:SmartForm id="idNewLabelSmartForm" class="editableForm" editable="true"> <form:Group id="idNewLabelGroup"> <form:GroupElement id="idNewLabelGroupElement"> <smartField:SmartField id="idPlantNewLabelprinterSmartField" value="{Plant}" entitySet="ZC_MAINT_ZLABELS_PRINT"/> </form:GroupElement> </form:Group> </form:SmartForm>
Now when I select a value from my value help or enter a value in the SmartField directly it is cleared automatically and my SmartField is empty again. How do I fix this issue? In the sample code ".bindElement(/abc)" is executed but this is something I cannot do as the entity does not exist yet.
Thanks!