Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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() :
getValue: function(attributeId, workItem, configuration) {...


unlike,
getFilteredValueSet:
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

0 votes

Comments

Hi Paul,

Were you able to utilize HTTPConnector from within a calculated value javascript?

Thanks!


Accepted answer

Permanent link
Sorry, the HttpConnector is only available for value set providers.
Paul Romanus selected this answer as the correct answer

0 votes


2 other answers

Permanent link
Did anyone figure out how to use HttpConnector in a Calculated Value script?

Thanks!

0 votes


Permanent link
In RTC 4.0 it is possible to call the HTTP Filtered Value Set in JavaScript

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Nov 07 '11, 6:59 p.m.

Question was seen: 6,706 times

Last updated: Mar 21 '13, 11:27 a.m.

Confirmation Cancel Confirm