cancel
Showing results for 
Search instead for 
Did you mean: 

on_new_focus needs to trigger reload of view

Former Member
0 Kudos

Hi,

I have following issue:

There are 2 views on one overview page, the do_prepare_output method of the second view triggers on_new_focus for the first view.

However since the do_prepare_output of the first view has already been processed (because it is above view2) the new collection_wrapper for view 1 is set but not displayed until the next roundtrip.

Can I somehow avoid this?

I am looking either for a way to trigger a reload of view1 from within the on_new_focus method, or a way to determine in which sequence the views should be loaded (without changing the actual order of the views on screen).

Thanks for any advice!

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Euan,

After setting the collection to the collection_wrapper of View1, try to call PUBLISH_CURRENT( ).

Example:

me->typed_context->btitems->collection_wrapper->publish_current( ).

This may help to display the new data set to collection wrapper.

Best Regards,

Varma

Answers (0)