DataView and DataView Tree Levure Helpers

Collaborate on tools, libraries, and applications beyond the IDE

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

DataView and DataView Tree Levure Helpers

Post by trevordevore » Thu Jan 03, 2019 5:54 am

Hi folks,

Over the holiday break I took time to package up some UI controls I use in my own projects and make them available as helpers for Levure apps*. The controls are named "DataView" and "DataView Tree". The DataView is a leaner, more efficient DataGrid Form. It allows you to efficiently display highly customized rows of data on desktop and mobile. The DataGrid Tree is built on top of the DataView and works with a tree structure.

I've prepared a demo project with examples of each type of control. Here are the github repos for the demo project and the controls themselves.

Demo Github repo: https://github.com/trevordevore/dataview_demo
DataView Github repo: https://github.com/trevordevore/levurehelper-dataview
DataView Tree Github repo: https://github.com/trevordevore/levureh ... aview_tree

I have also posted a video which walks through the demo project:

https://youtu.be/euIHj1Qrokk

While there is still work to do on the documentation, the demo stack can help the motivated developer start using the controls in their own projects.

* Of course the code will work in apps that don't use the Levure framework. You just need to integrate all of the stacks and scripts into your app manually.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: DataView and DataView Tree Levure Helpers

Post by bogs » Thu Jan 03, 2019 11:09 am

Very impressive, and the code you were showing was extremely educational as well.
Image

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: DataView and DataView Tree Levure Helpers

Post by Mikey » Thu Jan 03, 2019 2:24 pm

Yay! I was working on solving this very same problem, but now I can just fork and integrate!

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: DataView and DataView Tree Levure Helpers

Post by trevordevore » Fri Jan 04, 2019 6:19 pm

I've added another DataView helper named "DataView Database Cursor Helper" and updated the demo app. This helper adds a `dvCursor` property to a DataView along with a number of other properties. You open a database cursor, assign it to the DataView, and then the DataView will automatically move through the cursor in order to display the rows the user is currently looking at. Fast and efficient, even for large result sets.

https://github.com/trevordevore/dataview_demo

https://github.com/trevordevore/levureh ... e_dbcursor
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: DataView and DataView Tree Levure Helpers

Post by trevordevore » Sat Jan 05, 2019 7:45 pm

I added one other DataView Tree example to the demo. It allows you to browse the mainstacks in the IDE much like the Project Browser.

https://github.com/trevordevore/dataview_demo
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: DataView and DataView Tree Levure Helpers

Post by Mikey » Mon Jan 07, 2019 5:00 am

The "Stack Browser" card is an interesting take on the Project Browser. It makes me wonder if maybe I should play with using it to add thumbnails again.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: DataView and DataView Tree Levure Helpers

Post by trevordevore » Mon Jan 07, 2019 5:11 am

I think the "Stack Browser" card could be an interesting jumping off point for a full-fledged project browser.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Locked

Return to “Community Projects”