Issue with Tree Widget UI rendering when used with Networks( _BMCollectionViewInfoTableIndex)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Issue with Tree Widget UI rendering when used with Networks( _BMCollectionViewInfoTableIndex)
Hi All,
We are facing issue with Tree Widget UI rendering when used with networks.
Explanation: We are trying to display below sample network structure in tree widget.
ABC
XYZ
Animal
Cat
Fruit
Apple
Watermelon
Location
India
US
Whenever we delete Cat from Animal,if we click on Animal again,then click on Fruit, it will not show Apple and Watermelon,it goes same with any same level parent element.
We inspected in browser console.We got the below error.
We tried in both Microsoft Edge(IE) and Chrome.
Chrome Error:(Version 71.0.3578.98)
Combined.8.3.2-b535.20180903.111233.00726.js:130008 Uncaught TypeError: Cannot read property '_BMCollectionViewInfoTableIndex' of undefined
at TW.Runtime.Widgets.collection.updateThingworxSelection (Combined.8.3.2-b535.20180903.111233.00726.js:130008)
at TW.Runtime.Widgets.collection.collectionViewDidSelectCellAtIndexPath (Combined.8.3.2-b535.20180903.111233.00726.js:129898)
at BMCollectionView.set selectedIndexPaths [as selectedIndexPaths] (Combined.8.3.2-b535.20180903.111233.00726.js:126845)
at Object.completionHandler (Combined.8.3.2-b535.20180903.111233.00726.js:129018)
at animationOptions.complete (Combined.8.3.2-b535.20180903.111233.00726.js:127648)
at Combined.8.3.2-b535.20180903.111233.00726.js:118589
Error in Microsoft Edge:(Version 42.17134.1.0)
Similar issue is posted :link
- Labels:
-
TWX Dev Portal
- Tags:
- thingworx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Are you using the Advance Grid Tree Widget?
The original Tree Widget is currently not supported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for the reply.We are using regular tree widget(tree widget with comes by default with Thingworx),I tried with advanced Grid Tree Widget by downloading the extension (from this link) but it displays data in the greed format.We need to display data in hierarchical format (parent and child relationship).Something like below.
ABC XYZ Animal Cat Fruit Apple Watermelon Location India US
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Have you checked out the documentation and examples that come along with the extension? The asvanced grid tree is indeed a grid but it does represent data in a hierarchical (parent-child node) format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for the reply.Ya ,I checked the full documentation .I didn't find any such example. Documentation is more concentrated on the concept of filtering and sorting etc.Our primary requirement is to, display
hierarchical data in tree format and that is not discussed in document.If you find any such example please share the link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I'm attaching the main document I was referring to, on pages 4, 6, 29 it describes working with a tree grid data (Expandable nodes, child-parent dependencies).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@posipova wrote:
Are you using the Advance Grid Tree Widget?
The original Tree Widget is currently not supported.
Do you mean the AdvancedGridExtension (v3.0.5) when you say "Advance Grid Tree Widget" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The issue persists even with TreeGridAdvanced widget. The browser console gives the following error:
Uncaught TypeError: Cannot read property '_BMCollectionViewInfoTableIndex' of undefined
at TW.Runtime.Widgets.collection.updateThingworxSelection (Combined.8.3.4-b993.20181130.093259.00705.js:130061)
at TW.Runtime.Widgets.collection.collectionViewDidSelectCellAtIndexPath (Combined.8.3.4-b993.20181130.093259.00705.js:129951)
at BMCollectionView.set selectedIndexPaths [as selectedIndexPaths] (Combined.8.3.4-b993.20181130.093259.00705.js:126890)
at Object.completionHandler (Combined.8.3.4-b993.20181130.093259.00705.js:129069)
at animationOptions.complete (Combined.8.3.4-b993.20181130.093259.00705.js:127694)
at Combined.8.3.4-b993.20181130.093259.00705.js:118622
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Just wondering if you had a chance to open a support ticket for this since the last communication.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
A support ticket is already open with PTC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Could you please let me know the ticket number as I don't seem to find it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@posipova Here's the detail of the support ticket.
PTC Case: C14719191 / PTC / Severity 1 - Business Critically Impacted /There is a rendering issue with the collection widget and tree widget when bound together
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Advanced Tree Grid Widget works fine.
You need to properly link Child and Parent ID fields to define the heirarchy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
For future reference and to update this thread later, Jira opened PSPT-6507
