Recent

Author Topic: LAMW with jDBListView and TDataSource  (Read 477 times)

Robert Gilland

  • Full Member
  • ***
  • Posts: 146
LAMW with jDBListView and TDataSource
« on: April 11, 2019, 12:45:15 am »
Firstly,
  Thank you for all your work with LAMW.
This is a quick question as to why jDBListView doesn't seem to be compatible with TDataSource?
« Last Edit: April 11, 2019, 12:50:36 am by Robert Gilland »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1476
Re: LAMW with jDBListView and TDataSource
« Reply #1 on: April 11, 2019, 01:26:07 am »
Quote
jDBListView doesn't seem to be compatible with TDataSource?

jDBListView is compatible with  LAMW  jSqliteCursor/jSqliteDataAccess only ... [sorry...]

You can try the demo "AppDBGridViewDemo1"

 
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 146
Re: LAMW with jDBListView and TDataSource
« Reply #2 on: April 11, 2019, 01:35:59 am »
DBGridView also is not compatible with TDatasource.
Would really love to be able to simply be concerned with populating datasets, and let the UI take charge of presentation.

Is compatibility with Tdatasource in the plans for development?

Also

Is CustomDrawListViewItem Event in the plans for development?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1476
Re: LAMW with jDBListView and TDataSource
« Reply #3 on: April 11, 2019, 01:49:53 am »

Quote
Is CustomDrawListViewItem Event in the plans for development?

If you work with [material design] theme "AppCompat" 
you can use "jsRecyclerView"   [custom drawItem by design]

But  jListView can handle many  commons patterns.  What you need? I can try help  you.
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 146
Re: LAMW with jDBListView and TDataSource
« Reply #4 on: April 11, 2019, 02:14:29 am »
As I said in the other thread.

Current ListView needs:

IMAGE followed by a Long Description ie. not 3 columns. If the grid view could not show vertical columns that would help. Maybe that would work.

Near future Listview Needs are:

Long Description on one line then Short Description Objects underneath.
Long Description must not get mixed up with Short Description Objects:

For Example:

This is the Description of my Product.
Code:Product Code Qty: 56

jmpessoa

  • Hero Member
  • *****
  • Posts: 1476
Re: LAMW with jDBListView and TDataSource
« Reply #5 on: April 11, 2019, 04:43:26 am »

Quote
This is the Description of my Product.
Code:Product Code Qty: 56

What about:

Set properties:

ItemImageIdentifier: ic_launcher
ItemLayout: layImageTextWidget
TextAlign: taCenter
TextDecorated:txtNormalAndItalic
TextSizeDecorated:sdDecreasing

Code: Pascal  [Select]
  1. jListView1.Add('This is the Description of my Product|Code:123456        Qty: 56');
  2.  

the delimiter '|' will break the text ....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 146
Re: LAMW with jDBListView and TDataSource
« Reply #6 on: April 11, 2019, 07:35:30 am »
Thanks, that Looks good for future requirements.

However the current requirement means I need a different image per list view item. I think there is an event for that, I will test that.