Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Clear form efficiently and fast

Hi,

I have a UI5 (javascript) application where i have an icontabbar which has multiple icontabfilters. Each IconTabFilter has a sap.ui.layout.form.Form for content.

Each IconTabFilter is basically a view and has a back button. What is the best way to clear all the forms of all the icontabfilters? Basically i need to set the whole icontabbar to the way it was when first opened/loaded.

Going through all the fields of a form clearing the values and setting their valuestates, changing all the icons etc is tedious and doesn't feel reasonable to me.

Is there a better, cleaner more efficient way of doing this?

Tags:
replied

I think what need to be done is the reset the value like this

JS Bin - Collaborative JavaScript Debugging

Thanks

-D

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question