Skip to main content
17-Peridot
Nov 8, 2018 7:56 AM UTC
Question

Read DataTable thing from Extension

Hi All,

I am trying to Read DataTable thing from Extension. It was returning null.

My code :

DataTableThing masterTable = (DataTableThing) ThingUtilities.findThing("BConfig_CM_ParametersMaster_DT");
DataTableThing masterTable = (DataTableThing)EntityUtilities.findEntity("BConfig_CM_ParametersMaster_DT", ThingworxRelationshipTypes.DataTable);

both codes are returning masterTable as "null". how to resolve this issue?

 

Thanks.

2 replies

17-Peridot
Nov 8, 2018 1:51 PM UTC

Anyone??

Translate
Support
Dec 7, 2018 3:10 PM UTC

Hi @Sathishkumar_C.

 

Apologies for the delay on this.  Since you responded back so quickly on this thread, it appeared that it had already been responded to.

 

With the limited information you have provided, it is difficult for us to determine why you are receiving NULL.  We are assuming you are creating your own extension.  If so, we would need to see more of your code to better understand your intent.

 

If you have already resolved your issue, please feel free to post the solution here for the benefit of others who may have similar questions.

 

Regards.

 

--Sharon

Translate