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
In the next part, I am passing the lines in array to GetEquipmentNetworkForKPIs_
Solved! Go to Solution.
Hello @ankitag,
Your code is building the query from the latest row in the Network InfoTable.
Maybe try something like below (this is non-tested pseudo code ) :
let to_arr = [];
getChild.rows.toArray().forEach(row => { to_arr.push(row.to) };
let query = {
"filters": {
"type": "IN",
"fieldName": "name",
"values": to_arr
};
Hello @ankitag ,
Try to remove the let keyword on the result line.
The result variable is automatically defined in a Script service, you just have to set it.
Thank you @smainente . I am trying to get the the output for the LINE-A and LINE-B. But, instead of that I am a
getting output related to LINE-B only inside infotable. Could you please help me getting this out.
Hello @ankitag,
Your code is building the query from the latest row in the Network InfoTable.
Maybe try something like below (this is non-tested pseudo code ) :
let to_arr = [];
getChild.rows.toArray().forEach(row => { to_arr.push(row.to) };
let query = {
"filters": {
"type": "IN",
"fieldName": "name",
"values": to_arr
};
Thank you for your support and it works.