Skip to main content
14-Alexandrite
March 10, 2021
Question

how to write javascript service for inserting data infotable property in thingworx

  • March 10, 2021
  • 3 replies
  • 2224 views

Hello,

           I want to write service for inserting data in infotable property of thing  please suggest how do I insert data from service to infotable property??

Thanks  in advance

3 replies

16-Pearl
March 10, 2021

Hi @RM12 

 

Please refer following article.

Let me know if doesn't answer your query.

 

Regards,

Sachin

RM1214-AlexandriteAuthor
14-Alexandrite
March 10, 2021

Thanks for your reply ,I refer this code but it'll not add in infotable property plzz refer the below attachment and suggest, is there another way to inserting data into infotable property via service ???

5-Regular Member
May 7, 2021

Hi @RM12 

 

Check this article if this helps:

https://www.ptc.com/en/support/article/CS277418

 

Let me know in case of any question.

 

Regards,

Mohit

15-Moonstone
May 7, 2021

Hi,

 

1. Just create a infotable property (info_prop)with datashape attached to it in that thing (Your_Thing_name).

2. Write down service where using snippets you create a infotable(sampleInfo) using the datashape which you attached in infotable property.

3. Create entry for this infotable using same datashape using snippets.

4. Add this entry in the infotable created in step #2.

5. Things[Your_Thing_name].info_prop = sampleInfo;

 

Regards

Shyam