sapui5 - Bind input field not work -
i have problem when try mapping model in view. have view view contains
<form:simpleform minwidth="1024" maxcontainercols="2" editable="true" layout="responsivegridlayout" title="dimensione prodotto" labelspanl="3" labelspanm="3" emptyspanl="4" emptyspanm="4" columnsl="1" columnsm="1" class="editableform"> <label text="codice" /> <input value="{elements/idcodprod/value}" id="idcodprod" /> <label text="descrizione" /> <input value="{iddescprod/value}" id="iddescprod" /> <label text="famiglia" /> <input value="{idfamiglia/value}" id="idfamiglia" /> </form:simpleform>
and model (jsonmodel)
{ "elements":{ "idcodprod":{ "id":"idcodprod", "enabled":true, "required":true, "value":"123" }, "iddescprod":{ "id":"iddescprod", "enabled":true, "required":true }, "idfamiglia":{ "id":"idfamiglia", "lookup":"tab_fam", "enabled":true, "required":true } } }
how can ibind value of idcodprod in input?? set model view correctly in first input not see "123"
ok, solve problem: replace {elements/idcodprod/value}
{/elements/idcodprod/value}
Comments
Post a Comment