Skip to main content
Mar 16, 2021 6:12 AM UTC
Solved

Grid fields displaying when fields removed from Datashape TWX 9.1

Hi ,

after bindings done to Grid in Mashup. i wanted to remove one field from Datashape which is connected with Grid. anyway i removed specific field from DataShape but facing below issues..

1. Still deleted fields are showing in Grid.

2. Not showing at 'Configure Grid Column' of grid . but Showing at Grid in Composer or Runtime.

 

FYI-I tried reloading the page and reloading the bindings.

 

Thanks

mgoelAnswer
May 25, 2021 2:19 AM UTC

@slangley As per the support case dynamic configuration should do the job here below are few articles which helped to resolve the issue.

 

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

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

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

 

I believe one can overcome this issue by implementing dynamic configuration.

 

Regards,

Mohit

6 replies

Mar 17, 2021 7:34 AM UTC

Hi @VaibhavShinde,

 

Indeed if you have an infotable property based on that DataShape and that contains values, those values will not be affected by the changes made to the DataShape. You may run a service like the following on your Thing to remove the field from the existing infotable property :

me.Property_name.RemoveField("Field_name");

 

or, if you have added a field to your DataShape :

me.Property_name.AddField({ "name": "Field_name", "baseType": "STRING" });

 

You can also refer to : https://community.ptc.com/t5/ThingWorx-Developers/Can-t-update-the-datashape-of-an-existing-infotable-with-data/td-p/702673?posno=19&q=delete%20field%20datashape&source=search

Mar 18, 2021 10:57 AM UTC

Hi @c_lowy 

 

I am not using Infotable property. its a datatable (has datashape) ..and already datatable's data binds to Grid. but i wanted remove one field and i removed from Datashape but still its appearing at Grid design and runtime but also not showing at 'Configure grid columns'. please see below snaps.

VaibhavShinde_0-1616064922014.pngVaibhavShinde_1-1616064982393.png

 

Thanks

Apr 21, 2021 2:39 PM UTC

Hi @VaibhavShinde.

 

The support case that was opened for this issue is now closed.  Can you please share details of the solution?

 

Regards.

 

--Sharon

mgoelAnswer
May 25, 2021 2:19 AM UTC

@slangley As per the support case dynamic configuration should do the job here below are few articles which helped to resolve the issue.

 

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

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

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

 

I believe one can overcome this issue by implementing dynamic configuration.

 

Regards,

Mohit

Jun 2, 2021 6:06 PM UTC

Hi @VaibhavShinde 

 

If you agree that the response documented by @mgoel from the case was the solution, please mark his last post as the Accepted Solution for the benefit of others with the same issue.

 

Regards.

 

--Sharon