Starts in:
0 DAY
22 HRS
45 MIN
18 SEC
Starts in:
0 D
22 H
45 M
18 S
Open Closed

DevExpress Dashboard Integration #4147


User avatar
0
Spospisil created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Hi,

I've created another test project showing the issue I am not having with being able to save a entity to the database. See the below link for the git repo and the steps to reproduce. What does not make sense is that I can call my custom application services and subsequent associated repository methods when the logic is in a class inherited from AbpViewComponent (Which is in the web project too) but not from just a normal class (DashboardStorageExtension).

Run the migrations associated with the solution Login as host user/admin From the Setup Menu click 'Setup' From the resulting Dashboard list page choose the 'New Dashboard' button on the right. Click 'Create' in the middle of the screen Drag a dashboard control onto the main part of the designer From the hamburger menu in the upper left click the 'Save' option

The error occurs in the DashboardAppService class on the below highlighted line. For some reason it cannot insert a new record into the table. I was able to get past the previous issue of the service itself not being injected properly but now it seems like I cannot do anything database related from my injected service.

I've given access to https://github.com/maliming for the git repository that contains the example project showing the issue


10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The error occurs in the DashboardAppService class on the below highlighted line

    Can you share the error first?

  • User Avatar
    0
    Spospisil created

    Hi,

    Well, you could run it too and you'll see the error too as I've given you access to the github repo and detailed out the steps to reproduce but I'll do that for you so here is the error.

    'Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The operation was canceled).

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    It work for me.

  • User Avatar
    0
    Spospisil created

    Hi,

    That is bizzare. You didn’t change anything about the projects?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes, Just run these three projects.

  • User Avatar
    0
    Spospisil created

    ‘Yes’ you changed something?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Didn't change anything

    I just download your GitHub repo and run three projects.

  • User Avatar
    0
    Spospisil created

    Ok, let me take a closer look.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

  • User Avatar
    0
    Spospisil created

    Hi,

    Ok, you are correct. For some reason it's now working for me as well. I 'cleaned' the solution in VS 2022, rebuilt the entire solution and it appears to be working now.

    I will integrate this into my actual solution, but I think I'm going to then write up a whole article on how to get the DevExpress Dashboard control to work with ABP since there seems to be a lot of other users attempting to do the same thing I am trying to do.

    Thanks.

    Steve

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06