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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
LoganSix
Posts: 165
Registered: ‎01-02-2011
My Carrier: Sprint

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 Search Tool - not available at the moment
Please use plain text.
Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011

Re: TabelModel TabelView demo issue

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

 

What error are you getting?

 

Chris

Please use plain text.
Developer
LoganSix
Posts: 165
Registered: ‎01-02-2011
My Carrier: Sprint

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 Search Tool - not available at the moment
Please use plain text.
Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011

Re: TabelModel TabelView demo issue

What do you mean by "Blows up"

Please use plain text.
Developer
LoganSix
Posts: 165
Registered: ‎01-02-2011
My Carrier: Sprint

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 Search Tool - not available at the moment
Please use plain text.
Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011

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.

Please use plain text.
Developer
LoganSix
Posts: 165
Registered: ‎01-02-2011
My Carrier: Sprint

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 Search Tool - not available at the moment
Please use plain text.
Developer
LoganSix
Posts: 165
Registered: ‎01-02-2011
My Carrier: Sprint

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 Search Tool - not available at the moment
Please use plain text.
Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011

Re: TabelModel TabelView demo issue

Make sure your tableview is not in a scrollable manager. 

Please use plain text.