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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to return only a certain value from infotable

AF_10333884
7-Bedrock

How to return only a certain value from infotable

I tried to use the code from https://community.ptc.com/t5/IoT-Tips/Analytics-Prediction-Methods-Mashup/ta-p/817989#M30973, but there is an error for the last line of predict strength script. Then I change the result to only predictivescorse, and got this result. How do I get only the expected outcome and put it into my properties?

AF_10333884_0-1687409823354.png

 

thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @AF_10333884 

 

Please find the below snippet. 

var expectedOutCome = resultInfoTable.rows[0].ExpectedOutCome; // Get Outcome value from InfoTable
me.propertyExpectedOutCome = expectedOutCome // Update Properties

 

/VR

View solution in original post

3 REPLIES 3

Hi @AF_10333884 

 

Please find the below snippet. 

var expectedOutCome = resultInfoTable.rows[0].ExpectedOutCome; // Get Outcome value from InfoTable
me.propertyExpectedOutCome = expectedOutCome // Update Properties

 

/VR

Hi,

 

I tried to do what you just said, but the result become undefined when it should be string/number

AF_10333884_0-1687481227558.png

 

Hi @AF_10333884 

 

There is a typo in your script line number 32. It should be "ExpectedOutcome"

 

/VR

Top Tags