Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Unwrapping DynamicWrappers?

$
0
0

Since I am a complete novice in JavaScript development I am not yet familiar with how arrays of objects work.

 

Can someone shine some light on how to handle the seemingly arbitrary embedding of objects inside of a dynamicWrapper?

 

For example, when I run a SQL query I have to "unwrap" the result record before I can actually reference any properties, as shown below:

 

 

res=MAP.readCustomQuery("select * from vlantoip where vlan like '250';")

 

for each (var record in res) {

  System.log("Processing record "+record)

  subnet=record.getProperty("subnet")

  netmask=record.getProperty("netmask")

}

 

Now this makes sense for a multi-record result, but if there's only one how do I best reference it?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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