Use the HttpConnector from a javascript calc value?
Hi,
I want to retrieve user details from Active Directory to populate a text presentation with a summary of the account e.g. internal/external email, location, interests etc .. when an Active Directory user is selected in a dependent attribute.
So far, I've written a servlet that I use in a javascript FilteredValueSet attribute customisation, to retrive a filtered list of names and staff ids using the HTTPConnector. which upon selection, populates it's associated attribute : globalDirectoryUser.
So far so good!
I now want to use a Calculated value javascript to fire upon this selection to populate the User's details in an attribute called globalDirectoryUserDetails.
I had hoped to re-use the HTTPConnector in the calculated value script - but there's
NO
'context'
argument passed into the getValue() dojo function
getValue()
:
unlike,
getFilteredValueSet:
So, my question is/are:
> Is there any way I can retrieve the 'context' from within a calculated value javascript
> But what I REALLY want is ... is a way to utilize the HTTPConnector from within a calculated value javascript ?
Thanks in advance
I want to retrieve user details from Active Directory to populate a text presentation with a summary of the account e.g. internal/external email, location, interests etc .. when an Active Directory user is selected in a dependent attribute.
So far, I've written a servlet that I use in a javascript FilteredValueSet attribute customisation, to retrive a filtered list of names and staff ids using the HTTPConnector. which upon selection, populates it's associated attribute : globalDirectoryUser.
So far so good!
I now want to use a Calculated value javascript to fire upon this selection to populate the User's details in an attribute called globalDirectoryUserDetails.
I had hoped to re-use the HTTPConnector in the calculated value script - but there's
getValue: function(attributeId, workItem, configuration) {...
unlike,
getFilteredValueSet: function(attributeId, workItem, context, filter) {...
So, my question is/are:
> Is there any way I can retrieve the 'context' from within a calculated value javascript
> But what I REALLY want is ... is a way to utilize the HTTPConnector from within a calculated value javascript ?
Thanks in advance
Comments
Alicia McPherson
Jun 05 '12, 4:33 p.m.Hi Paul,
Were you able to utilize HTTPConnector from within a calculated value javascript?
Thanks!