B4J Question Need Help TabPane + Tableview

nadhiras

Member
Licensed User
Longtime User
Hi all.. i have problem when using tabpane. tabpane is for separate data by category
i use tabpane.loadlayout from single layout cause every tab just need one view (tableview) for displaying data from DB,
but only last tab can display data.. i check the log no error found.. on other tab (1st & 2nd tab) is just displaying tableview with no data... like empty data , although the data on DB is not empty..

here is my sample code:
 

Attachments

  • animal.zip
    11.6 KB · Views: 329

klaus

Expert
Licensed User
Longtime User
The problem in your code is that you have a TableView1 in each layout.
So, when you call TableView1 in the code it refers to the last loaded TableView1 !
I added an Array of TableViews in the attached version of your project.
 

Attachments

  • animal1.zip
    3.7 KB · Views: 395
Upvote 0
Top