ListView Problem


Author
Message
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
I created a SF Maintenance form in VB. Added a BO and a List View and set up a SQL statement to receive data from a table. The list view populates but the maintenance tool bar does not become available. In other words all the buttons are not available. What should I do. I am brand new to SF so I am not sure how to approach finding a solution. TIA.
Replies
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I think I got the some of my property/event names a bit wrong...it is PopulationDataSourceSettings property and ParentFormLoading event.
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
I think I have figured that out about the list view vs the grid. I now have switched to a grid and used the businessbindingsource. I now have the grid populated and I have put my own buttons on that allow me to navigate the grid. But of course now I want to put a child BO on the form (which I have done) and I believe it is configured correctly and some textboxes that I want to update with the child info when the record in the grid changes. I am not sure how to do that but maybe I can use some navigation method of the parent BO? Last statement is just my thought now. Any help would be appreciated. Thanks for your help because it at least makes me understand the listview better and that probably I needed some other control..... Thanks again.
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yep, the ListView is generally on for displaying data while the Grid is used for editing data. 

In order to use a ChildBO on the form, you're most likely going to want to place the child BO on the form and fill it with all fo the records that belong to the parent business object (child.FillByParent() should help with that...).  Then, on the parent business object, set the ChildAutoFilterOption property to MatchCurrentRow... this will change the filter on the child business object to only show the records that match the selected record in the parent.  Then, just make sure that the parent business object is navigated to the correct row (the CurrencyManager within the BusinessBindingSource should take care of that, but some grids don't use the CurrencyManager the same way the basic .NET grid does) and the child business object will be filtered to show the child records.

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