This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

how to refresh the listview which is in another feature

nickname
nickname Member Posts: 10
edited Feb 18, 2018 11:05PM in Mobile Application Framework

Hi to all,
I have a problem with  refreshing the listview.

In the application I have 3 features let's say "feature A" "feature B" and "feature C".

I also created the 2 tables and 1 view from sqlite db(local).and their names are "table A", "table B", and "view C"

view C is like this:

create view C as

select a.oneColumn

From table A a

Union

select b.oneColumn

From table B b;

Every feature has the main amx.page and each of them has listview which values come from the sqlite db (local).


In feature A, I can add new row to database (update the row or delete it ) and  the listview is refreshed with the help of the "ProviderChangeSupport".

Same thing happens in feature B. Everything is ok until now. But in feature C, it has also listview. When I do delete operation or update operation in feature A or feature B,

the listview in feature C is not refreshed.


I hope, you all can understand easily the problem and help me for the solution.

Tagged:

Best Answer

  • Frank Nimphius-Oracle
    Frank Nimphius-Oracle Senior Principal Product Manager GermanyMember Posts: 29,689 Employee
    edited Mar 24, 2015 5:03AM Answer ✓

    Hi,

    you need to reset a feature if - by navigating into it - you want to ensure the feature and thus the view refreshes. The provider change support only works within the classloader (feature) it is issued in. You can use a feature listener to refresh the data control collection used by a list, but this doesn't work automatically.

    Frank

    nickname

Answers

  • Frank Nimphius-Oracle
    Frank Nimphius-Oracle Senior Principal Product Manager GermanyMember Posts: 29,689 Employee
    edited Mar 24, 2015 5:03AM Answer ✓

    Hi,

    you need to reset a feature if - by navigating into it - you want to ensure the feature and thus the view refreshes. The provider change support only works within the classloader (feature) it is issued in. You can use a feature listener to refresh the data control collection used by a list, but this doesn't work automatically.

    Frank

    nickname
  • nickname
    nickname Member Posts: 10
    edited Mar 24, 2015 9:51AM

    Thank you Frank. This solution helps me.

  • JCasebeer
    JCasebeer Member Posts: 35
    edited Feb 18, 2018 11:05PM

    I have a similar problem. Instead of a listview I have a data control feeding 4 select once choice components. Each one affects the next. Of course I could put the on four

    different pages within the same feature, but that would make the UI much less intuitive. I'm unable to use provider change refresh on the selectOneChoice compmnents.

    I am using Maf 2.5 and the latest edition of Jdeveloper. Thank you.

    Regards Joseph.