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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to get property value of type InfoTable of a Thing?

ahawaldar
1-Newbie

How to get property value of type InfoTable of a Thing?

Hi,

I have a thing which has one of the property as Infotable. I have a custom service which aims to get this infotable property and add rows to infotable each time this service is invoked.  I see that there are few properties like GetStringPropertyValue,  GetLongPropertyValue , etc ​which returns the specific property for the given property name. Is there any similar service which returns me the property of type infotable?


Note : The service i have developed is in java extension.


Thanks,

Azim

1 ACCEPTED SOLUTION

Accepted Solutions
ankigupta
5-Regular Member
(To:ahawaldar)

Hi azim hawaldar​,

Actually the InfoTable we require is inside one other InfoTable.

Let's say the name of the InfoTable returned from GetNamedPropertyValue is InfoTable1

And InfoTableProperty is our InfoTable property.

ValueCollection rowData = InfoTable1.getFirstRow();

InfoTable InfoTable2 = (InfoTable) rowData.getValue("InfoTableProperty");

So, InfoTable2 is the InfoTable we require.

View solution in original post

4 REPLIES 4
ankigupta
5-Regular Member
(To:ahawaldar)

Hi azim hawaldar​,

You can use GetNamedPropertyValue Service.

Hello Ankit Gupta​,

GetNamedPropertyValue  does return me the infotable. But i cant see any values inside it. How can i see the values inside a info table?


Thanks,

Azim

ankigupta
5-Regular Member
(To:ahawaldar)

Hi azim hawaldar​,

Actually the InfoTable we require is inside one other InfoTable.

Let's say the name of the InfoTable returned from GetNamedPropertyValue is InfoTable1

And InfoTableProperty is our InfoTable property.

ValueCollection rowData = InfoTable1.getFirstRow();

InfoTable InfoTable2 = (InfoTable) rowData.getValue("InfoTableProperty");

So, InfoTable2 is the InfoTable we require.

Hello Ankit Gupta​,

Thanks for this.

Top Tags