cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error while developing service:org.mozilla.javascript.UniqueTag@10bb9ddd: NOT_FOUND

SOLVED
ankitag
4-Participant

Getting error while developing service:org.mozilla.javascript.UniqueTag@10bb9ddd: NOT_FOUND

I am trying here to get child for Site1_ITHENA SITE-A (custom site) which work fine and I get the correct output showing LineA and LineB.

In the next part, I am passing the lines in array to GetEquipmentNetworkForKPIs_Copy so that I can filter only those line which has LineA and LineB. My agenda for this entire service to filter lines of a specific Site and pass it to tree grid. the output of this entire service is an infotable with Datashape PTC.Factory.EquipmentStatusTreeDataShape. (This is the same Datashape as used by the service GetEquipmentNetworkForKPIs which is used by the tree grid)

 
1 ACCEPTED SOLUTION

Accepted Solutions

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 
};

 

View solution in original post

4 REPLIES 4

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 
};

 

View solution in original post

Thank you for your support and it works.

Announcements