Skip to main content
1-Visitor
April 23, 2020
Solved

Adding new KPIs to Production KPIs mashup

  • April 23, 2020
  • 2 replies
  • 1782 views

Hello,

 

I have created a new KPI for the assets following the documentation available at https://support.ptc.com/help/thingworx_apps/r8.5/en/#page/thingworx_apps%2FThingWorxAppsCust%2Fcreating_additional_kpis.html and the new KPI is being calculated correctly periodically.

 

Now I'm trying to add the new KPI as a new column in the Production KPIs mashup:

-I added the required fields to both PTC.Factory.PlantStatusTreeDataShape and PTC.Factory.EquipmentStatusTreeDataShape.

-I updated the service PopulateProductionKPIsTreeGrid from PTC.Factory.PlatStatusUtils to include the new KPI.

 

When I access "Configure Grid Columns" of "treegridadvanced-plantnetwork" from the PTC.Factory.PlantStatus mashup, the column with the name newkpi_displaycirclehtml is not available even if it's included in the DataShape.

 

Could you please provide me with the detailed instructions to show a new KPI in the "Production KPIs" mashup?

 

Could you please tell me where is the "treegridadvanced-plantnetwork" reading the list of columns and how could I include the required newkpi_displaycirclehtml in that list?

 

Thanks in advance.

 

Regards,

Iker

Best answer by ganeja

Hi @Iker 

 

Could you please check have you updated  GetEquipmentNetworkForKPIs service with the underlying PopulateProductionKPIsTreeGrid service to include the KPI in the InfoArray on the PTC.Factory.PlantStatusUtils thing .

 

Thanks

Gunjan Aneja

2 replies

ganeja5-Regular MemberAnswer
5-Regular Member
June 11, 2020

Hi @Iker 

 

Could you please check have you updated  GetEquipmentNetworkForKPIs service with the underlying PopulateProductionKPIsTreeGrid service to include the KPI in the InfoArray on the PTC.Factory.PlantStatusUtils thing .

 

Thanks

Gunjan Aneja

Community Manager
June 24, 2020

Hi @Iker.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon