Creating a Custom Table View with bundle data

Creating a Custom Table View with bundle data

lcavallero
Advocate Advocate
45 Views
1 Reply
Message 1 of 2

Creating a Custom Table View with bundle data

lcavallero
Advocate
Advocate

Hi,

I followed https://answers.flexsim.com/articles/45747/creating-a-custom-table-view.html to create custom table view.

Every work fine when using treenode table, but doesn't work when table as bundle data.

I tried to adjust the triggers in order to use bundle data correctly, but seem that the table control with style FS_CUSTOM_TABLE_VIEW_DATA_SOURCE doesn't work when the referenced table use bundle data.

Does anyone tried to use with success FS_CUSTOM_TABLE_VIEW_DATA_SOURCE with bundle data table?

Thanks

Luciano.

0 Likes
Accepted solutions (1)
46 Views
1 Reply
Reply (1)
Message 2 of 2

JordanLJohnson
Autodesk
Autodesk
Accepted solution

The main difference between using a treenode table and using a bundle table is that the getCellNode() callback should never return anything. If you wrote a custom view assuming that each value in the table would have a treenode behind it, then no, that will not work with a bundle.

When you write a Custom Table View, you can usually tell if that view will always point at a bundle or at a treenode table. If you need it to work for both, you will have to write if statements in every callback, handling each case separately.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes