Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

TabelModel TabelView demo issue

I have been trying to use the TableView demo to create a list with multiple columns and rows.

When I get to the point where the screen is loaded, the simulator errors out.  I even tried a try/catch statement, but that doesn't seem to work.

 

 

Has anyone been able to get this example to work?

 

Using TableModel, TableView, TableController and DataTemplate to Create a Selectable Table

 

The main difference with my version is, I already have a main screen and the screen for the list is pushed from the main screen.

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment
Developer
Posts: 228
Registered: ‎10-01-2011
My Device: Passport

Re: TabelModel TabelView demo issue

The demo works for me, I used it to experiment with table views. 

 

What error are you getting?

 

Chris

Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

Re: TabelModel TabelView demo issue

That is part of the problem, it blows up trying to create the screen and I don't see the error.  I think it partially had to do with setting the horizontal scroll in the super.   I got a little further along, but it will only display 2rows of data.

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment
Developer
Posts: 228
Registered: ‎10-01-2011
My Device: Passport

Re: TabelModel TabelView demo issue

What do you mean by "Blows up"

Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

Re: TabelModel TabelView demo issue

The debugger for the simulator cannot find the resource to display the error. So, all I can do is stop debugging and try again. 

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment
Developer
Posts: 228
Registered: ‎10-01-2011
My Device: Passport

Re: TabelModel TabelView demo issue

How are you determining that it cannot find a resource? What about sending a screen shot.

 

I have on guess without seeing anything specific.   If you are setting a preferredWidth > max width of the simulator resolution it will do wierd things like simply not hsowing the screen.

Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

Re: TabelModel TabelView demo issue

Sorry, I'll get a screen shot as soon as I can.

I just got my PC upgraded at work, so now I have to reload my software.  ugh.

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment
Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

Re: TabelModel TabelView demo issue

It looks like the error is on TableView(ScrollView).calculateVerticalScrollAmount(XYRect) line: 487

 

And it looks like for OS 6 simulator, there isn't a work around.

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment
Developer
Posts: 228
Registered: ‎10-01-2011
My Device: Passport

Re: TabelModel TabelView demo issue

Make sure your tableview is not in a scrollable manager.