Tree Grid Service isn't working
I'm building a mashup that is an experience portal. A user will log-in and use the portal to view which experiences they have access to and other data associated with those experiences. One of the types of experiences I have requires the user to use it multiple times. I want to allow the user to see the history of use by using a tree grid. I only need to go down one level of children, and not every experience needs children. I've already figured out how to show the expandability of a row, my problem is getting the child data to show up. I've written a service that should work (I'll share it below), but the children don't show up. Any help would be greatly appreciated.
//input: selectedExperience (InfoTable DS: AR_ExperiencesForGroups)
// brought in by SelectedRow in the mashup
let result;
// result: STRING
let username = Resources["CurrentSessionInfo"].GetCurrentUser();
if (selectedExperience.rows[0].hasChildren) {
//Example experience name: "GBU-10 Quiz, Online"
let experienceName = selectedExperience.rows[0].ExperienceNameAlias;
let experienceSplit = experienceName.split(' ');
let arr;
for (arr = 0; arr < experienceSplit.length; arr++) {
if (experienceSplit[arr] != '') {
break;
}
}
let experienceWeapon = experienceSplit[arr];
if (experienceWeapon.includes('-')) {
let weaponSplit = experienceWeapon.split('-');
experienceWeapon = weaponSplit[0] + weaponSplit[1];
}
//Tables have a standard naming convention that this follows
let resultsTableName = username + '_' + experienceWeapon + '_ResultsDataTable';
try {
// result: INFOTABLE dataShape: "Results_For_IndividualsDT"
result = Things[resultsTableName].GetDataTableEntries({
maxItems: 50 /* NUMBER */
});
} catch (err) {}
}

