Subclass for StrataListView automation


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
I started using the new StrataListView which is by far super fast when loading thousands of records in comparison with the current listview and it also have many nice features showing groups, header, footers, etc.

So far, the StrataListView is still under beta and it does not have all the automation of the current listview.  Since I need some of those automations, I decided to create a subclass "Progytech_StrataListView.vb" with the following automation features:
  • Support for assigning a Business Object. (BusinessObject property)
  • Support for auto navigating the BO for the selected record. (AutoNavigateToSeletectedRecord property)
  • Support for changing the states of a checkbox when double clicking (CheckUncheckColumnIndex property).  This property should be set to the column index where the checkbox will be.
Also the following events where created:
  • BeforeRequery: This event is use to manually populate the Progytech_StrataListView.  It is triggered by calling the Requery() method of the listview.  Since I don't have the time to get into creating the ListPopulation automation, for now just use this event to code the list population.  In this method you can take advantage of the listview BusinessObject property to make the code generic when using several listviews.
  • AfterRequery: Enter any code you want to run after the listview has been requeried.
  • UpdateObjectStates: This event is triggered in several place like when navigating the BO, when an item checked has changed, when double clicking the row, etc.  This is useful to enable/disable buttons related to the listview.
I created a quick VB sample based on Trent's StrataListViewBasics C# sample to show the Progytech_StrataListView subclass in action.  Since I based the code in the old listview, some of the code are not cleanup. 

Hopefully the SF team will complete all these functionality and more, and there will be no need to use this class, so for me this is just a temporary solution since I needed to replace about a dozen listviews with this one.

You can download the VB sample from here.  Please feel free to fix any bug and/or enhance it based on your needs.

Enjoy Cool 

Edhy Rijo

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Way to go, Edhy! Wink
Russell Scott Brown
Russell Scott Brown
StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)StrataFrame User (278 reputation)
Group: Forum Members
Posts: 124, Visits: 597
Thanks Edhy. 

Russ Brown (Using C#2010/SQL Server 2008)
Terry Bottorff
Terry Bottorff
Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)
Group: Forum Members
Posts: 448, Visits: 12K
Great Job
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Guys,

Thanks for the comments.  Please let me know when you guys test it or start using it.  I am currently using it heavily, I have one form with several panels and 8 StrataListView to handle data import and synchronization with QuickBooks.

Edhy Rijo

Terry Bottorff
Terry Bottorff
Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)Advanced StrataFrame User (770 reputation)
Group: Forum Members
Posts: 448, Visits: 12K
Edhy I was looking for you LV sample and I found this link. But, what really caught my eye was that you were/are using QuickBooks. Any ideas or recommendations as to how to update QB using SF?

TIA.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search