question

Luciano Cavallero avatar image
0 Likes"
Luciano Cavallero asked Jordan Johnson answered

Creating a Custom Table View with bundle data

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.

gui builder
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

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.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.