Skip to main content
1-Visitor
Jan 23, 2020 1:30 PM UTC
Solved

Customizing the Asset Filter List

Hi all,

 

I customized the filter option in the asset advisor by the following article and implemented all necessary bindings.

https://support.ptc.com/help/thingworx_apps/r8.5/en/#page/thingworx_apps%2FThingWorxAppsCust%2Fcustomizing_the_asset_list_filtering.html%23

 

The filter does work with serialNumber and location,  but i want to use my own new properties (e.g. equipmentNumber). Can you help me how to implement the filter option with different properties ? 

 

 thanks!

5-Regular Member
Mar 25, 2020 11:56 AM UTC

Hi @Iker  @ninja 

 

At the moment, we don’t support filtering of Assets using custom properties (the ones that added to equipment directly or indirectly and do not shown in the AssetDataShape), It is an enhancement will be implemented  in future release of product .

 

The temporary solution for this is a hack and we don’t encourage it, adding the new properties in the DataShape by calling DataShapes["PTC.SCA.SCO.AssetDataShape"].AddFieldDefinition in a custom service.

 

Thanks

Abhishek

 

5 replies

1-Visitor
Feb 27, 2020 2:45 PM UTC

Hello,

 

I'm trying to do the same as you with no success. Where you able to do it finally?

 

Thanks in advance.

 

Translate
5-Regular Member
Mar 23, 2020 1:04 PM UTC

Hi @ninja 

The customized filter option in the asset advisor , the filter works only with the properties  which are listed in Filed definition of PTC.SCA.SCO.AssetDataShape; however the DataShape is non-editable so you can't add your own new properties to the PTC.SCA.SCO.AssetDataShape.  I am working on this with R&D team on this i will keep you posted on this.

 

 

Thanks

Abhishek

Translate
1-Visitor
Mar 24, 2020 7:40 AM UTC

Hi Abhishek,

 

Any news on how to solve this problem?? I'm facing exactly the same problem and I still didn't find the solution. 

 

Thanks,

Iker

Translate
5-Regular Member
Mar 25, 2020 11:56 AM UTC

Hi @Iker  @ninja 

 

At the moment, we don’t support filtering of Assets using custom properties (the ones that added to equipment directly or indirectly and do not shown in the AssetDataShape), It is an enhancement will be implemented  in future release of product .

 

The temporary solution for this is a hack and we don’t encourage it, adding the new properties in the DataShape by calling DataShapes["PTC.SCA.SCO.AssetDataShape"].AddFieldDefinition in a custom service.

 

Thanks

Abhishek

 

Translate