NEED HELP to Implement. Confused.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
NEED HELP to Implement. Confused.
Hi all,
I am very new to LC and basically want to do something like this (below) but was searching high and low in the forums to enlighten me with the pieces i want. Now I am much confused and lost on how to implement this. IN a nutshell it is an image gallery with text information per record that can be filtered according to a category.
1. To have display a list maybe from database or a data grid (not sure which way to go is the best i may have around 100 records) to list down information on a category such as Client Name, Country, Industry.
I was thinking of using a drawer menu to display the data so that it will always be present as a sort of menu.
2. To be able to filter them on each category then hopefully repopulate them on the screen (data grid form).
So once they filter the information can the displayed data be refreshed to show the filtered items but still inside the drawer menu.
3. User can then select from the data grid the filtered record then it will open a card that will display the images and text information of that particular record.
When user selects a particular record that record will be loaded into the stack or we jump to that particulars record card.
I think i got the populating of basic information in the data grid but really face challenges on how to filter a data grid to the categories and actively maybe hide the rows that i do not need.
I have more or less a very rough sketch of my UI flow
Thanks!
I am very new to LC and basically want to do something like this (below) but was searching high and low in the forums to enlighten me with the pieces i want. Now I am much confused and lost on how to implement this. IN a nutshell it is an image gallery with text information per record that can be filtered according to a category.
1. To have display a list maybe from database or a data grid (not sure which way to go is the best i may have around 100 records) to list down information on a category such as Client Name, Country, Industry.
I was thinking of using a drawer menu to display the data so that it will always be present as a sort of menu.
2. To be able to filter them on each category then hopefully repopulate them on the screen (data grid form).
So once they filter the information can the displayed data be refreshed to show the filtered items but still inside the drawer menu.
3. User can then select from the data grid the filtered record then it will open a card that will display the images and text information of that particular record.
When user selects a particular record that record will be loaded into the stack or we jump to that particulars record card.
I think i got the populating of basic information in the data grid but really face challenges on how to filter a data grid to the categories and actively maybe hide the rows that i do not need.
I have more or less a very rough sketch of my UI flow
Thanks!
Re: NEED HELP to Implement. Confused.
Hi.
Not exactly sure what you need, but it sounds like you are working through the problem. All you require is readily doable in LiveCode.
As to filtering, if you use any of the very powerful tools LC offers, the "filter" command and the "matchText" and "matchChunk" functions, you will have no problems. I would also think about filtering your dataGrid info by first extracting it with the "dgText", which deconstructs the array that actually stores datagrid data, and allows you to manipulate it in n ordinary variable. You can then restore the DG in one step.
It would be best if you asked specific questions. So write back often.
Craig Newman
Not exactly sure what you need, but it sounds like you are working through the problem. All you require is readily doable in LiveCode.
As to filtering, if you use any of the very powerful tools LC offers, the "filter" command and the "matchText" and "matchChunk" functions, you will have no problems. I would also think about filtering your dataGrid info by first extracting it with the "dgText", which deconstructs the array that actually stores datagrid data, and allows you to manipulate it in n ordinary variable. You can then restore the DG in one step.
It would be best if you asked specific questions. So write back often.
Craig Newman
Re: NEED HELP to Implement. Confused.
Thanks for the reply it gives me some insight that it is indeed doable and gives me the confidence to push ahead. Will surely be starting to put it together and ask further questions down the road. I know I will have a lot.
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Re: NEED HELP to Implement. Confused.
A while back, I wrote two blog posts about applying a filter mechanism to the data grid:
DataGrid Filter example
DataGrid Filter example - with sorting
HTH,
Jan Schenkel.
DataGrid Filter example
DataGrid Filter example - with sorting
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: NEED HELP to Implement. Confused.
Thanks, this is more or less what I am looking but with at least using the 3 categories to filter them.
Thanks a lot! Will let you know how it pans out.
Thanks a lot! Will let you know how it pans out.
Re: NEED HELP to Implement. Confused.
Jan,
Mamnaged to get back on this project after a long time doing other stuff. I have tried your code and it works wonderfully on my data grid. My question is does this work on a mobile environment? I tried in simulator but it seems the filtering does not work.
Thanks,
Paul
Mamnaged to get back on this project after a long time doing other stuff. I have tried your code and it works wonderfully on my data grid. My question is does this work on a mobile environment? I tried in simulator but it seems the filtering does not work.
Thanks,
Paul