Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
Updating sap.ui.model.json.JSONModel on Input Change

I have the following problem:

I have created a JSONModel with data in my SAPUI5 application. After that I created an input field, which got as model the just mentioned JSONModel. The value of the input field is bound to the model.

Now when I start the application, the initial value from the model is written to the input field. But if I now change the value in the input field, it will not be adjusted in the model. Only when I confirm the value in the field with Enter, it works. Can I work around the fact that I have to press Enter after changing a value?

var oModel = new sap.ui.model.json.JSONModel();
oModel.setDefaultBindingMode(sao.ui.model.BindingMode.TwoWay);
oModel.setData({
    test_value: "Hallo"
})

var oInput = new sap.m.Input({
    value: "{test_value}"
})
oInput.setModel(oModel);

Thanks for your help!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Set the property valueLiveUpdate on your Input to true.

Documentation can be found here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!