Return a JSON string in a form drop-down

appstorm
Tera Contributor

I have an SI to populate a JSON string in a drop-down.  However, I am unsure where and how to code the input for the variable string.

 

SI

var Test = Class.create();

Test.prototype = Object.extendsObject(AbstractAjaxProcessor, {

 CourseUtils: function()

   {

   try {

   var r = new sn_ws.RESTMessageV2('Banner Courses', 'get');

   var response = r.execute();

   var responseBody = response.getBody();

   var httpStatus = response.getStatusCode();

   return responseBody;

   }

   catch(ex) {

   var message = ex.getMessage();

   return "";

   }

   },

       type: 'Test'

});

 

CS

 

1 ACCEPTED SOLUTION

@appstorm mark it as accepted as solution and helpful if it works

View solution in original post

5 REPLIES 5

@appstorm mark it as accepted as solution and helpful if it works