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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to use a variable in an infotable query

AndyHilton
13-Aquamarine

How to use a variable in an infotable query

I need to know how to use a variable in an infotable query.

 

For example: (In this example I want to pass the server variable into the query.

 

var server = "MYSERVER01";

 

var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": "server"
}
};

ACCEPTED SOLUTION

Accepted Solutions
AndyHilton
13-Aquamarine
(To:AndyHilton)

Figured it out.

 

Just enter server after "value": without the double quotes.

Example:

var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": server
}
};

View solution in original post

1 REPLY 1
AndyHilton
13-Aquamarine
(To:AndyHilton)

Figured it out.

 

Just enter server after "value": without the double quotes.

Example:

var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": server
}
};

Announcements


Top Tags