Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

For multiple object views with html content, global refresh is triggering API in each page multiple times.

$
0
0

I am developing a plugin where there are multiple object views. Each view contains an html content inside it.

Consider there are 3 object views.

View 1 has API  call 1 , view 2 has API call 2 and view 3 has API call 3.

If I navigate to all 3 views and then press refresh , then in browser console, I see all API calls happening 3 time.

(i.e) API call 1 , 2 and 3 is happening 3 times.

The number of times call happens is equivalent to the number of object views/html content inside each view.

Is there any fix for this ?

Below is a sample extension view I added.

<extension id="com.vmware.samples.rack.AnalysisView">

      <extendedPoint>com.vmware.samples.rack.monitorViews</extendedPoint>

      <object>

         <name>Analysis</name>

         <componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView">

            <object>

               <root>

                  <url>/vsphere-client/k2vcpui/resources/vbddsp.html</url>

               </root>

            </object>

         </componentClass>

      </object>

   </extension>

I am using SDK 6.0.0


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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