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?