Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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
Solved! Go to Solution.
@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
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
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.
Thanks
A support case has been opened for this and working with RnD on it. Once we determine the cause of the issue, I will post an update here.
Hi @VaibhavShinde.
The support case that was opened for this issue is now closed. Can you please share details of the solution?
Regards.
--Sharon
@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
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