Hey guys,
I am trying to pull data from a dataset to populate a dropdown in an IRF.
I am calling the function to pull data from the dataset on load. However, the function to pull data from a Dataset is not tripping any of the callback functions.
{
populateDataInTable : function()
{
var callBack = new Object();
callBack.onSuccess = function(result)
{
alert("Success");
alert(result);
var Titles = ca_pam_convertToSimpleArray( result, 'resource_name');
var TitlesUUID = ca_pam_convertToSimpleArray( result, 'uuid');
alert(Titles);
alert(TitlesUUID);
ca_pam_clearSelectStore(Form.jobTitle);
ca_pam_addValuesInSelectStore('Form.jobTitle', ca_pam_createSelectStore(Titles ,TitlesUUID ));
}
callBack.onFailure = function(caught)
{
alert(caught);
}
alert("Get");
ca_pam_getDatasetData(Datasets["Job Titles Dataset"], callBack);
}
}
I started spamming alert funcitons to determine where the code get fired. At this moment only the "Get" alert is tripping.
Here is the dataset:
Any suggestions would be greatly appreciated.
-Dylan