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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Can't update the datashape of an existing infotable (with data)

AlessandroN
12-Amethyst

Can't update the datashape of an existing infotable (with data)

Hi, I've updated the datashape on which is built an infotable called "myInfotable" that contains data (inside a thing), the update consists in adding a column.

I saved and even restarted the thing, but i can't see the new field i added from the datashape, but if i create a new property (on the same thing) for i.e. "myInfotable2" and populate with data, i can see the new field properly!

 

Since I can't delete the previous property because it stores important data, how can i fix this?

ACCEPTED SOLUTION

Accepted Solutions

I found a workaround and this is:

 

- Create a service on the template or thing that runs this code:

me.appointments_list.AddField({
    "name": "appointment_guests",
    "baseType": "STRING"
});

 

- Run it on the things and the new fields will appear even on the existent infotable properties!

View solution in original post

1 REPLY 1

I found a workaround and this is:

 

- Create a service on the template or thing that runs this code:

me.appointments_list.AddField({
    "name": "appointment_guests",
    "baseType": "STRING"
});

 

- Run it on the things and the new fields will appear even on the existent infotable properties!

Announcements


Top Tags