Hello,
I experience the following error when I try to access an one row table with getValueAt function.
Failed to resolve expression ' getValueAt($newlunssizetable,IndexLunSource)
$newlunssizetable is a input parameter as table.
IndexLunSource is the index in a loop represented by getSize($luns)
$lun is a imput parameter multiselect SQL query
SELECT
lun.full_path,
ROUND(lun.size_mb / 1024,
0) AS Size
FROM
cm_storage.lun AS lun,
cm_storage.vserver AS vserver,
cm_storage.volume AS volume
WHERE
lun.vserver_id = vserver.id
AND lun.volume_id = volume.id
AND volume.name = '${myVol}'
AND vserver.name = '${Mysvm}'
If the the table is more that one row, it works fine.
The certified command works with 1 dim 1 row array
def getValueAt(arrayVar, index)
{
return arrayVar.split(",")[index-1];
}
Any ideas welcome.
François