Anonymous_User Absent Member.
Absent Member.
229 views

Populate multi value attribute in Workflow


UserApplication 4.0.1
eDirectory 886
I am creating a woflow to modify user information.
In that i have one multivalued attribute in eDirectory which i would
like display in the Form Field.

I have form field with below details.

FieldName DataType ControlType

WSINumber String Text

multivalued in eDirectory attribute has the below value

WSINumber: 123
WSINumber: 987

I want to display these values in the Form field like this

WSINumber 123,987


In the Event property of this field i have written this logic, but i
get only one value display. I knew if the control type is
Picklist/Static list, it displays in the form field. But i would like to
display in the Text control type with comma separated.


--------------------------------------------------
dn=form.getValue("UserName");
try
{
stringdn = new String(dn)
var av = IDVault.get( null, stringdn, "user","SecondaryWSI" );
alert (av)
field.setValues(av)
}
catch(e)
{

}

-------------------------------------------
Any idea?


--
lvaradha
------------------------------------------------------------------------
lvaradha's Profile: https://forums.netiq.com/member.php?userid=226
View this thread: https://forums.netiq.com/showthread.php?t=42717

Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Populate multi value attribute in Workflow


Something like:


var av = IDVault.get( null, stringdn, "user","SecondaryWSI" );
var display = "";
try
{
if ( typeof( av ) == "string" ) display = av;
else
if ( typeof( av ) == "object" ) display = av.join(",");
}
catch( e )
{
alert( e );
}
alert( typeof( av ) + ": " + display );
field.setValues( display )


Wolfgang

On 10.10.2012 02:44, lvaradha wrote:
>
> UserApplication 4.0.1
> eDirectory 886
> I am creating a woflow to modify user information.
> In that i have one multivalued attribute in eDirectory which i would
> like display in the Form Field.
>
> I have form field with below details.
>
> FieldName DataType ControlType
>
> WSINumber String Text
>
> multivalued in eDirectory attribute has the below value
>
> WSINumber: 123
> WSINumber: 987
>
> I want to display these values in the Form field like this
>
> WSINumber 123,987
>
>
> In the Event property of this field i have written this logic, but i
> get only one value display. I knew if the control type is
> Picklist/Static list, it displays in the form field. But i would like to
> display in the Text control type with comma separated.
>
>
> --------------------------------------------------
> dn=form.getValue("UserName");
> try
> {
> stringdn = new String(dn)
> var av = IDVault.get( null, stringdn, "user","SecondaryWSI" );
> alert (av)
> field.setValues(av)
> }
> catch(e)
> {
>
> }
>
> -------------------------------------------
> Any idea?
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Populate multi value attribute in Workflow


Its works!!! Thanks Wolfgang


--
lvaradha
------------------------------------------------------------------------
lvaradha's Profile: https://forums.netiq.com/member.php?userid=226
View this thread: https://forums.netiq.com/showthread.php?t=42717

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.