Skip to Content

Initializing view data....

Where, and how do I clear out the input date on a view....

E.g. when the data is saved, and I access my page from the menu, the old data is still displayed in the input boxes.

I've tried the onInit() function but that only fires the first time into the view.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 05, 2016 at 03:53 PM

    You could clear it on a successful save or you could use a routematched event of a router.

    Regards,

    Jamie

    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 05, 2016 at 03:44 PM

    when you leave the view or enter the view again. bind the model to the ui elment, clear the model data

    Add comment
    10|10000 characters needed characters exceeded