It's all about the answers!

Ask a question

RTC custom attribute - Value Set load external data

Soeren Schilling (112) | asked Jul 18 '19, 8:28 a.m.
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.

(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?

Be the first one to answer this question!

Register or 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.