cancel
Showing results for 
Search instead for 
Did you mean: 

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

balaji_vta
Participant
0 Kudos

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.

balaji_vta
Participant
0 Kudos

small correction..

var gModel = this.getView().getModel(); => error..

Accepted Solutions (1)

Accepted Solutions (1)

balaji_vta
Participant
0 Kudos

Found the issue..

Joseph_BERTHE
Active Contributor
0 Kudos

Hello,

Close the post 🙂

Regards,

Joseph

Answers (0)