Page 1 of 1

DataView and DataView Tree Levure Helpers

Posted: Thu Jan 03, 2019 5:54 am
by trevordevore
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.

Re: DataView and DataView Tree Levure Helpers

Posted: Thu Jan 03, 2019 11:09 am
by bogs
Very impressive, and the code you were showing was extremely educational as well.

Re: DataView and DataView Tree Levure Helpers

Posted: Thu Jan 03, 2019 2:24 pm
by Mikey
Yay! I was working on solving this very same problem, but now I can just fork and integrate!

Re: DataView and DataView Tree Levure Helpers

Posted: Fri Jan 04, 2019 6:19 pm
by trevordevore
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

Re: DataView and DataView Tree Levure Helpers

Posted: Sat Jan 05, 2019 7:45 pm
by trevordevore
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

Re: DataView and DataView Tree Levure Helpers

Posted: Mon Jan 07, 2019 5:00 am
by Mikey
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.

Re: DataView and DataView Tree Levure Helpers

Posted: Mon Jan 07, 2019 5:11 am
by trevordevore
I think the "Stack Browser" card could be an interesting jumping off point for a full-fledged project browser.