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

Native Development

Reply
Developer
Posts: 104
Registered: ‎04-15-2012
My Device: BlackBerry PlayBook with OS 2.0
My Carrier: N/A

Get Last Item From ListView

Hi,

 

I'm completely new to Cascades development and I need some help:

 

I have a ListView that uses a SQL data source to get the list items. And when a new item is added, I need to get the id of that added item.

 

The SQL table has fields id and name. The user can only enter the name field. And the id (which is the primary key) is auto-incremented. Is there any way to get the id of that added item? I have used the "Quotes" sample app for my code (its basically the same code).

 

Thanks.

My BlackBerry 10 apps: Roshnal Lihinikadu
Lots more coming up!