0

How to return to previous view without calling its updateView?

Hi,

some little help needed...

what I want is the following:
when moving back to previous view I want to not update the view (to keep the same focus position).
I noticed that there can be passed backparams to the previousView call. So I want to pass a boolean variable "{ignoreUpdateView : true}" with the previousview call and check it in updateView function of the previous view - if is true then the updateView function to not be executed.
Now I get "undefined" for the value of backparam which I access like this" "this.persist.ignoreUpdateView".

how or can these backparams be accessed in the updateView?

or should this be done in a different way?

Thank you
Alex

by
5 Replies
  • The focus should stay where it was in the view by default...
    0
  • Try using this.backParams.ignoreUpdateView
    0
  • I know.

    For this view is used updateView to create dynamic controls.

    So these controls are deleted first (if exists) then created - all in updateView. That means the focus is lost if it was positioned on such a dynamic control (which got "re-created"). Thats the problem.

    Thanks
    0
  • it worked!
    was so simple but didn't thought to try that...

    thank you
    0
  • QUOTE (Alexandru @ Mar 25 2010, 11:23 PM) <{POST_SNAPBACK}>
    it worked!
    was so simple but didn't thought to try that...

    thank you

    Yea, it's not documented anywhere. I had to look through the code to find it.
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets