简体   繁体   English

SAP UI5:提交后如何清除输入字段

[英]SAP UI5 : How to clear the input fields after submit

after providing login credentials when i click login button it takes me to next screen But the values remain there when i press log out i am routed to login screen where it holds user name and password which provided by me during login提供登录凭据后,当我单击登录按钮时,它会将我带到下一个屏幕但是当我按下注销时,值仍然存在,我被路由到登录屏幕,其中包含我在登录期间提供的用户名和密码

pls help me out to resolve this请帮我解决这个问题

You can reset the Input value via.您可以通过重置输入值。

this.oLabelInput.setValue("");

And do this in the onRouteMatched() or onPatternMatched() of your Login page.在登录页面的 onRouteMatched() 或 onPatternMatched() 中执行此操作。 Then you will always get empty fields然后你总是会得到空字段

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM