Overview of XAF-BI.Dashboard modules web/win, bidashboard

Source: Internet
Author: User

Overview of XAF-BI.Dashboard modules web/win, bidashboard

The Dashboard module introduces how to integrate the DevExpress Dashboard control in ASP. net xaf and WinForms applications.

In fact, it is not just a control, but it uses the existing XAF data model, which is very critical.

TIPS: XAF contains the sample program. By default, % PUBLIC % \ Documents \ DevExpress Demo 16.2 \ Components \ eXpressApp Framework \ FeatureCenter on your local machine. The web version is also available at http://demos.devexpress.com/xaf/featurecenter /. What can the Dashboards module do? End Users: Create Dashboard and save them at runtime. The Dashboard is stored in the database. View and modify the Dashboard in the list view. You can view the Dashboard project in the navigation bar. Developer: pre-defined Dashboard. After the program is released, you can view the result directly. Create a Dashboard project in the create navigation bar. Customize the control options and actions of a dashboard. Be sure not to confuse Dashboard with Dashboard. They are different things. DashboardView displays several views in XAF in one interface and has no relation to Dashboard with a dime.

 

Controls used by the Dashboards Module

 

  • DashboardDesigner-this control is used in winform.
  • DashboardViewer-this control is used in winform.
  • ASPxDashboard-this view result is used in asp.net.

The above lines only tell you what you are using. In fact, if you do not customize personalized extension development, you do not need to understand this.

If you upgrade the Dashboards module components from an old project, you need to drag these modules to the corresponding project.

 

  • DashboardsModule-drag the Module Designer to the xxx. Module Project.
  • DashboardsWindowsFormsModule-drag this to xxx. Module. Win or winapplication.
  • DashboardsAspNetModule-drag this to xxx. Module. Web or webApplication.
Note

 

  • For a new project, you can directly select this module without dragging the above steps.
  • You can add the module type to XafApplication. Modules or ModuleBase. RequiredModuleTypes if you want to add the module by using the code. (Of course, you must add the reference file first ).

The Dashboards module provides the following View Items to display the dashboard to the detailview or dashboardview.

  • WinDashboardViewerViewItem
  • WebDashboardViewerViewItem

Dashboards extends the Application Model-IModelDashboardNavigationItem node and adds the IModelClassDashboardsVisibility. IsVisibleInDashboards attribute to the IModelClass.

In xafml bo, you can set the IsVisibleInDashboards attribute. If it is set to true, you can select this type only when creating a dashboard. Just like the report module.

The data of the Dashboard data type is saved to the database (implemented by the ORM entity). If you use XPO, this is automatic and you don't have to think about it. If you are using EF, You need to manually set the type for DashboardsModule. dashboardype ype. Add the type DBContext.If you want to implement your own data entity class, you can inherit from DashboardData or implement IDashboardDataInterface. After completing the preceding settings DashboardsModule. DashboardDataType is your type.Create in Winform, view and edit Dashboards

 

    • In flight, open the Report group and selectDashboardsProject, and clickNew.

      Note:

      If you cannot findReports|DashboardsThe navigation project may be the drag-and-drop task you did not do. In addition, DashboardsModule. GenerateNavigationItem must be set to True.

    • Run Data Source Wizard and selectXAF Object Data SourceClickNext.

    • Select a business model (BO), and then pressFinish.

      Note:

      In the drop-down box, you can see that the BO ultclassoptionsattribute or VisibleInDashboardsAttribute BO is used, or the IModelClassDashboardsVisibility. IsVisibleInDashboards is setTrue BO.

    • Execute Dashboard Designer.

      Important

      Display the localized Enumeration type in the dashboard, and add the calculation field to the data source class. Set IModelMember. ExpressionGetEnumCaption ([Enum Property]). In the designer, bind the project to this calculated field in the enumerated characters.

    • After the dashboard is savedDashboardsList, you can double-click to view.

Note:

In the winform program, you can access the dashboard created in ASP. NET, because it is a library!

  • Demonstrate how to modify an existing dashboard.

    This is also available in context dishes.

 

 

Create in ASP. NET Application, view and edit Dashboards

 

    • It is the same as win, but it is not the same.

       
    • Create

       
    • Start setting

       
    • After saving

Note:

Similarly, you can see the dashboard created in win.

  • Edit Existing.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.