Our state of the art Gantt chart


Post by ce.alicanonal »

Hello, I want to move the project to mvc. When I create the mvc layer, it doesn't add js in the app folder. What could be the problem it gives this as error?

Attachments
hata.png
hata.png (149.62 KiB) Viewed 1227 times
Adsız.png
Adsız.png (203.63 KiB) Viewed 1227 times

Post by arcady »

Are you trying to launch the Gantt aspnetcore demo?

Given the error Could not install from "../../../../build" I'd recommend you to investigate package.json contents in the app folder.
As far as I understand the demo uses relative path to reference the Gantt js-bundle and you cannot just move it to a random folder w/o changing that path . The path should point to the build folder of the Gantt distribution.


Post by ce.alicanonal »

hello i am trying on mvc. In my previous post, I was logging in by showing the app folder a little below, but what happened when I moved to mvc. it no longer extracts files to that location.
last post viewtopic.php?f=52&t=15217


Post by arcady »

Please don't copy the same question to old posts it makes no sense.

Considering on what I see in your screenshots you moved the demo folder to another location. And the demo uses relative path (namely in aspnetcore/BryntumGanttDemo/wwwroot/app/package.json file.
You cannot just copy it somewhere ..you have to edit that path accordingly.


Post by ce.alicanonal »

yes it has built now and the files have been removed but i get an error saying no data failed what could be the reason?

There is an error in the pictures.

Attachments
r2.png
r2.png (168.37 KiB) Viewed 1210 times
r1.png
r1.png (23.5 KiB) Viewed 1210 times

Post by arcady »

There are steps in readme.md file in the demo folder. I assume you're following Manual installation section from there.

If the database is set and npm i and npm build commands succeedded then last topic is Building .NET application.

Use IDE (Visual Studio 2019, VS Code + extenstions, etc) to open solution. Alternatively, you can use CLI:

  1. Install NuGet packages

        aspnetcore$ cd BryntumGanttDemo
        BryntumGanttDemo$ dotnet restore
  2. Change MySQL connection settings at BryntumGanttDemo/appsettings.json

  3. Run app

        BryntumGanttDemo$ dotnet run
        info: Microsoft.Hosting.Lifetime[0]
              Now listening on: https://localhost:5000
        info: Microsoft.Hosting.Lifetime[0]
              Application started. Press Ctrl+C to shut down.
        info: Microsoft.Hosting.Lifetime[0]
              Hosting environment: Development
        info: Microsoft.Hosting.Lifetime[0]
              Content root path: ...Gantt\examples\aspnetcore\BryntumGanttDemo

Now you can open application at https://localhost:5000

Heve you done these steps?


Post by ce.alicanonal »

hello the problem is not the data is not received, there is a problem with the link and I don't know how to fix it please see the pictures you will understand better.

Attachments
c1.png
c1.png (263.06 KiB) Viewed 1205 times
yyyyyyy.png
yyyyyyy.png (215.6 KiB) Viewed 1205 times

Post by arcady »

Are you trying to combine your code with aspnet demo code?


Post by arcady »

If you need to change crud manager mapped URL then it's defined in app.js file here:

const project = window.project = new ProjectModel({
    taskModelClass       : Task,
    dependencyModelClass : Dependency,
    resourceModelClass   : Resource,
    assignmentModelClass : Assignment,
    calendarModelClass   : Calendar,

    transport : {
        load : {
            url       : 'ganttcrud/load',
            paramName : 'q'
        },
        sync : {
            url : 'ganttcrud/sync'
        }
    },

Post Reply