Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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?
thanks
Solved! Go to Solution.
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 @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