NEED HELP to Implement. Confused.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
poliks
Posts: 15
Joined: Mon Jul 01, 2013 8:00 am

NEED HELP to Implement. Confused.

Post by poliks » Mon Jul 01, 2013 9:08 am

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!
Attachments
Photo 353 1.jpeg

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10309
Joined: Wed May 06, 2009 2:28 pm

Re: NEED HELP to Implement. Confused.

Post by dunbarx » Tue Jul 02, 2013 12:53 am

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

poliks
Posts: 15
Joined: Mon Jul 01, 2013 8:00 am

Re: NEED HELP to Implement. Confused.

Post by poliks » Tue Jul 02, 2013 2:20 am

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.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: NEED HELP to Implement. Confused.

Post by Janschenkel » Tue Jul 02, 2013 5:35 am

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

poliks
Posts: 15
Joined: Mon Jul 01, 2013 8:00 am

Re: NEED HELP to Implement. Confused.

Post by poliks » Wed Jul 03, 2013 1:58 am

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.

poliks
Posts: 15
Joined: Mon Jul 01, 2013 8:00 am

Re: NEED HELP to Implement. Confused.

Post by poliks » Mon Aug 26, 2013 10:45 am

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

Post Reply