Skip to Content
0
Jan 10, 2018 at 06:05 PM

Web IDE: How to capture entered data on web page into control on Submit/Save/Send press

181 Views Last edit Jan 15, 2018 at 09:25 AM 2 rev

model.png

form-data-maping.png

field-data-maping.png

Hi,

I am preparing a very simple form (Single page app) with few fields.The purpose is to update address to HR infotype. I have created Entity and entity set first. This service is working fine. I am using SAP Web IDE to develop this app . It has one view only. Data source and links are configured at manifest.In the view, I used simple form with PERNR, NACHN, VORNA and address fields. Address fields are editable. these fields are bind with data source. Till now there is no issue. Data is populating on the web page when it is executed.

Now, I made some changes on address and trying to click SAVE. on Save event, I was unable to capture edited field values. not able to read any field.

I tried below syntax:

var oView = this.getView(); => no issue

var gModel = this.getView().getModel(); => no issue

var Entity = this.getView().getModel().mChangedEntities(); => error.

var val = oView().byId("Nachn").getValue(); => error.

Please help me how to capture changed values or how to capture all field values from web page.

Thank you,

Balaji P.

Attachments

model.png (22.5 kB)