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

Array of Elements - Multi-Dimensional Arrays

$
0
0

Need:

I have a need for a multi-dimensional array that I want to utilize across multiple workflows. 

 

Detail:

The information for each individual of the 10+ child arrays is static information attributes of VC:objects like VC:sdkconnection, VC:DatacenterFolder, VC:NetworkFolder, VC:Datacenter, etc.

 

Direction:

My idea was to create a configuration element for each of the array.  Then create a Parent Configuration Element with an attribute type Array of Configuration Elements.  To test this I wanted to run a for each loop to loop through the array of elements.

 

System.log("Total Number of array objects: " + ParentElement.length);
for(var i=0; i<ParentElement.length; i++){  System.log("Total Number of array objects name " + ParentElement[i].name);  System.log("Total Number of array objects: " + ParentElement[i].length)
}

I am successful in printing out the Child Element object names. 

 

I have been unsuccessfull in getting listing out the attributes within the child objects.

in the above code ParentElement[i].length is undefined.

 

Advice/Direction is appreciated.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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