cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Smart Template Issues

Former Member
0 Kudos
281

All,

We are using SAPUI5 1.34.10, but the odd behavior with SmartField and SmartForm can be found in the latest version in the cloud.   Any suggestions on a workaround would be appreciated.

Here is what we are seeing:

This bug is regarding the SmartForm and SmartField. The SmartForm comes with frontend validation e.g. mandatory field check. I found that the mandatory field check does not work in these 2 cases.

  • Mandatory check not working for the field which is annotated to be a textbox.
  • Mandatory check not working for the amount field that is annotated with sap:unit and that unit field is annotated with sap-semantics=”currency-code”

Please see the screenshot below. The field Amount and Longtext are supposed to turn red as they are mandatory.


View Entire Topic
akshaya_p
Contributor
0 Kudos

Try getting the smartform and give this.getView.byId("smartformId").check() This will trigger validation. Worked for me

0 Kudos

Hi aks1591,

Have tried entering space on mandatory fields and perform check?

For me in this case mandatory check is not working. How can we avoid this case?

Thanks

Sreekanth