I'm trying to learn about DataViews. I want to have a DataView open on my form. There is a DataView component that I think is what I should use. What I don't know is if the DataView is supposed to load on form load? Or if I need to have an event to load the DataView. I hope there is an event that I can execute the load the DataView.
This is what I have done.
- Create a blank form
- Added the DataView component to the form
- In the Data Source Binding for the DataView component
- Mode = Predefined DataView
- DataView = User Authorization Report
- Layout = ReportOutput (also tried blank value for Layout)
- I set the Starting User Name and Ending User Name to my userid (also tried blank values)
- When I run the form, then I see the columns for the DataView. But there is no data displayed
- I tried having a button with StdFormRefresh event.
What I ultimately want to do is use DataViews on some forms instead of Grids. There will be times where we need to display data with totals that I think can be better handled with a DataView. I want the DataView component to display on the form. And not open a separate tab with DataView Form Results.
Questions:
- Should the DataView be loaded with data when the form runs?
- Is there an event to cause the DataView to be loaded?
- To use the DataView component on a form instead of a Grid. Do I have to create a predefined DataView? The documentation mentions Form DataViews. But the documentation mentions opening the DataView Form Results form.
I appreciate any help anyone can give me on DataViews.