Skip to main content
16-Pearl
March 16, 2021
Solved

Grid fields displaying when fields removed from Datashape TWX 9.1

  • March 16, 2021
  • 2 replies
  • 2037 views

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

Best answer by mgoel

@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

2 replies

16-Pearl
March 17, 2021

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

16-Pearl
March 18, 2021

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

Community Manager
April 21, 2021

Hi @VaibhavShinde.

 

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

 

Regards.

 

--Sharon

mgoel5-Regular MemberAnswer
5-Regular Member
May 25, 2021

@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

Community Manager
June 2, 2021

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