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

RTC custom attribute - Value Set load external data

Hallo everyone,

I am trying to create a custom attribute in RTC with a list being loaded from another server. Therefore I created a "Value Set" and chose the "Script Based Value Set" provide since the data depend on other values.

Now I noticed this doesn't work, since RTC seems to execute the script on the server and not in the browser. This is the code

/*******************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2011. All Rights Reserved.
 *
 * Note to U.S. Government Users Restricted Rights:  
 * Use, duplication or disclosure restricted by GSA ADP Schedule
 * Contract with IBM Corp.
 *******************************************************************************/
dojo.provide("com.example.ValueSetProvider");

(function() {
    dojo.declare("com.example.ValueSetProvider", null, {

        getValueSet: function(attributeId, workItem, configuration) {

            var result = [];

            var rawFile = new XMLHttpRequest();

...

The problem actually is the class XMLHttpRequest is undefined.

Does anybody have an idea how to solve this? Like including the right library or some other workaround?

0 votes


Be the first one to answer this question!

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

Question asked: Jul 18 '19, 8:28 a.m.

Question was seen: 1,266 times

Last updated: Jul 18 '19, 8:28 a.m.

Confirmation Cancel Confirm