Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I'm trying to push an empty child infotable to a field (of basetype : infotable) in parent infotable
var InvalidAssets = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape({
infoTableName: "InfoTable",
dataShapeName: "ChildInfotable.DS"
});
var output = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape({
infoTableName: "InfoTable",
dataShapeName: "ParentInfotable.DS"
});
var message = "Please enter name";
output.AddRow({
"InvalidAssets" : InvalidAssets, //infotable
"StatusMessage" : message //string
});
var result = output;
attached is the output I'm seeing... but I would like to have empty infotable in the "InvalidAssets" feild as I'm trying to bind the child infotable from the output of the service to a grid in mashup.
Solved! Go to Solution.
Hi @MC_9885914
Actually, the child InfoTable is empty. If you convert InfoTable to JSON or inspect in Developer Tool, you can see an empty array in it.
If you pass a null value you won't get the child key in JSON
/VR
Hi @MC_9885914
Actually, the child InfoTable is empty. If you convert InfoTable to JSON or inspect in Developer Tool, you can see an empty array in it.
If you pass a null value you won't get the child key in JSON
/VR