In mapping entities, I have noticed that IDVault.gets return bracketed
data.

i.e.,

Empty String or Missing Attr -> '[]
One item -> '[stringVal]'
Multiple items -> '[strVal1, strVal2,....,strValN]'

Because this is treated as a string when assigned to an instantiated
variable "var val = IDVault.get(x)", I have been using the following
code to essentially work with the data inside:

val = val.substring(1, val.length - 1).split(',')

I haven't run into any issues as of yet (as I haven't had any
multi-valued data that contains commas, such as DNs). However, I am
curious if there is a better way to handle this?


--
ccohoon
------------------------------------------------------------------------
ccohoon's Profile: https://forums.netiq.com/member.php?userid=3429
View this thread: https://forums.netiq.com/showthread.php?t=51440