A443721 Absent Member.
Absent Member.
775 views

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
Labels (1)
0 Likes
2 Replies
Knowledge Partner
Knowledge Partner

Re: ECMA Script

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
0 Likes
A443721 Absent Member.
Absent Member.

Re: ECMA Script

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
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.