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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Issue with Tree Widget UI rendering when used with Networks( _BMCollectionViewInfoTableIndex)

AjaykumarKerur
4-Participant

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)

SCRIPT5007: Unable to get property '_BMCollectionViewInfoTableIndex' of undefined or null reference

 

Similar issue is posted :link

 

           

13 REPLIES 13

Are you using the Advance Grid Tree Widget?

The original Tree Widget is currently not supported.

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 linkbut 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

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.

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.

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).


@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" ?

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

 

Just wondering if you had a chance to open a support ticket for this since the last communication. 

A support ticket is already open with PTC. 

Could you please let me know the ticket number as I don't seem to find it?

@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

Advanced Tree Grid Widget works fine. 

You need to properly link Child and Parent ID fields to define the heirarchy

For future reference and to update this thread later, Jira opened PSPT-6507

Announcements


Top Tags