Use the HttpConnector from a javascript calc value?
![]()
Paul Romanus (33●5●5)
| asked Nov 07 '11, 6:59 p.m.
edited Mar 21 '13, 11:27 a.m. by Ralph Schoon (62.3k●3●36●43)
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 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 |
Accepted answer
![]()
Sorry, the HttpConnector is only available for value set providers.
Paul Romanus selected this answer as the correct answer
|
2 other answers
![]()
Did anyone figure out how to use HttpConnector in a Calculated Value script?
Thanks! |
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Mar 21 '13, 11:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In RTC 4.0 it is possible to call the HTTP Filtered Value Set in JavaScript
|
Comments
Hi Paul,
Were you able to utilize HTTPConnector from within a calculated value javascript?
Thanks!