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?