Quantcast
Viewing all articles
Browse latest Browse all 2218

Storage Tab not getting refreshed

Hi,

 

 

We're developing a plugin using HTML-Bridge. We are using the chassis example provided by the sdk to get us started. We have a requirement where storages are based on the system that the user selects. We have this issue where in the objects tab is not getting refreshed.

 

 

It goes something like this:

 

 

1. Once the user click our icon(shortcut), it will direct them to our home view which shows collection of system in thumbnail form.

     Image may be NSFW.
Clik here to view.
Home.png

2. The user will then select or pick a system, say for example, the 'MLA'. Behind the scene, it is setting the connection/configuration to used and then retrieves all the storages and redirect the user to our dashboard view.

    Image may be NSFW.
Clik here to view.
Dashboard.png

3. The user will click the Storage node and he will be redirected to the storage collection view (Storage Tab). It shows two storages.

      Image may be NSFW.
Clik here to view.
MLA Collection View.png

4. User go back to our home view, this time he will pick CEBU and repeat step 3, now notice that it refreshed the left pane but not the main view. CEBU should not have any storages.

       Image may be NSFW.
Clik here to view.
CEBU Collection View.png

 

How we implement it:

 

1. We used the Chassis example provided by the SDK.

2. In the ObjectStore, we defined a variable just like the rackMap.

 

    private final Map<String, Storage> _storageMap = new HashMap<String, Storage>();

 

 

Every time the user select a system from the home view, the said variable is being cleared and getting populated by new records based on the selected system. Something like this:

 

public void InitializeObjects) {

    _storageMap.clear();

     List<StorageInfo> storages = some web service

 

 

     if (storages != null && storages.size() > 0) {

        for (StorageInfo st: storages) {

           addStorage(st); // this will add the storage to the _storageMap.

        }

     }

}

 

Now the issue that we are having is that the objects tab view is not getting refreshed. I'm not sure if this is possible or if there's a work around to get the said view refreshed. Please help. :-)

 

Regards,

 

 

Michael


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>