ECMA Script

Hi All,

I have a directory structure as-
OU1-
[INDENT]OU2-[/INDENT]
[INDENT][INDENT]GRP1[/INDENT][/INDENT]
[INDENT][INDENT]GRP2[/INDENT][/INDENT]

There are large no of groups inside OU2 and the count is unknown.
I need to fetch these group names.

I am trying the ECMA expression IDVault.containers(filedname, DN of OU2, "o", true)
But this does not updates the form field. This expression has been placed in event action(onload) of the approval form.
Am I missing something here?
If possible, please provide a code for the same.

Thanks
  • That function is only for getting the containers, you will not get the groups that way.
    You will need to create a Query in the DAL for this and then use IDVault.globalQuery("fieldname", "yourqueryname"); or IDVault.globalQuery("fieldname", "yourqueryname", "parameter"); if you have some parameter to add to the query.

    Cheers
  • DAL worked for me!

    Thanks.

    joakim_ganse;2422559 wrote:
    That function is only for getting the containers, you will not get the groups that way.
    You will need to create a Query in the DAL for this and then use IDVault.globalQuery("fieldname", "yourqueryname"); or IDVault.globalQuery("fieldname", "yourqueryname", "parameter"); if you have some parameter to add to the query.

    Cheers