forms - SAPUI5 - SmartForm/ SmartField - disable automatic odata backend update -
i started use smartform , smartfield in sapui5 application. when i'm in edit mode, changes directly updated in backend. not want.
what want trigger odata submitchanges function manually, when user has finished changes , press save button. when cancel button pressed want reset changes in odata model using resetchanges.
so question - possible disable automatic update of smartfield - or - best practice use smartfrom functionality?
example:
xml view:
<smartform:smartform id="smartform" title="general" edittogglable="true"> <smartform:group label="product"> <smartform:groupelement> <smartfield:smartfield value="{id}" /> </smartform:groupelement> <smartform:groupelement> <smartfield:smartfield value="{name}" /> </smartform:groupelement> <smartform:groupelement> <smartfield:smartfield value="{description}" /> </smartform:groupelement> <smartform:groupelement> <smartfield:smartfield value="{valid}" /> </smartform:groupelement> </smartform:group> </smartform:smartform>
manifest:
"": { "datasource": "mainservice", "preload": true, "settings" : { "defaultbindingmode": "twoway" } }
cheers j.
Comments
Post a Comment