Activities of "stefan@ppibv.nl"

Yes, thank you for this answer, this will surely work for us.

Thank you.

Hello.

Thanks for the quick response to my question. I do agree this is a better way of working. But our team would like to see this feature being added regardless.

Would there still be a possibility to do this?

scriptUrl: "/Pages/Locations/editModal.js?" + (Math.random() + 1).toString().substring(2),

Would adding some random strings work?

This seems to have fixed the issue for us last time we have tried this.

Thank you for your help.

I had the same problem with the version 7.0.1.0. I found a workaround to solve this issue.

  • Go to Volo.Abp.Account.Pro.Public.Web.csproj
  • Check if this is located in your project definition or add it if it's not there. ** <Version>6.0.2.0</Version>**
  • Recompile

Check if all the Volo.Abp.Account.Pro.XXXX projects have the tag <Version></Version> inside of it.

I wanted to report this some weeks ago but i only few support count so i can't take a risk to report some bugs & solutions. I found 2 more related.

Yes thank you so much! This seems to have fixed the issue for me.

Hello,

Thank you for taking the time to try and reproduce the error, sadly. It seems it's not a consistent problem whenever I create a new project either.

Would it also be okay for me to share our current project which gives the error consitantly? Would there be any information I would need to remove/blurr out before I send it over?

Hello, this would be the code that loads the JS in index.cshtml:

@section scripts
{
    <abp-script src="/Pages/Locations/index.js" />
}

And this is index.js:

var editModal = new abp.ModalManager({
        viewUrl: abp.appPath + "Locations/EditModal",
        scriptUrl: "/Pages/Locations/editModal.js",
        modalClass: "locationEdit"
    });

I hope this is the info you've been looking for.

But when we manually enter the path of the file through the URL. It seems that it has the updated version, but yet, the editModal.cshtml still seems to use the previous version.

hi

Can you share your abp.ModalManager code?

How do you load js file?

Oh I'm sorry, I have sent the LocationManager.cs code but have called it the LocationModal by mistake... But that is the code that you wanted based on this question?

I will change my mistake in my previous answer

Hello,

This is what we have in our LocationManager (though this does seem to occur in our other modals as well)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Domain.Services;
using Volo.Abp.Data;
using PlanPlanInternet.Zwemscore.GroupSettings;

namespace PlanPlanInternet.Zwemscore.Locations {
    public class LocationManager : DomainService {
        private readonly ILocationRepository _locationRepository;

        public LocationManager(ILocationRepository locationRepository) {
            _locationRepository = locationRepository;
        }

        public async Task<Location> CreateAsync(
        string name, string street, string housenumber, string housenumberSuffix, string postalcode, string city, string phonenumber, string emailaddress) {
            var location = new Location(
             GuidGenerator.Create(),
             name, street, housenumber, housenumberSuffix, postalcode, city, phonenumber, emailaddress
             );

            return await _locationRepository.InsertAsync(location);
        }

        public async Task<Location> UpdateAsync(
            Guid id,
            string name, string street, string housenumber, string housenumberSuffix, string postalcode, string city, string phonenumber, string emailaddress, [CanBeNull] string concurrencyStamp = null
        ) {
            var queryable = await _locationRepository.GetQueryableAsync();
            var query = queryable.Where(x => x.Id == id);

            var location = await AsyncExecuter.FirstOrDefaultAsync(query);

            location.Name = name;
            location.Street = street;
            location.Housenumber = housenumber;
            location.HousenumberSuffix = housenumberSuffix;
            location.Postalcode = postalcode;
            location.City = city;
            location.Phonenumber = phonenumber;
            location.Emailaddress = emailaddress;

            location.SetConcurrencyStampIfNotNull(concurrencyStamp);
            return await _locationRepository.UpdateAsync(location);
        }

        public async Task<List<Location>> GetAllAsync() {
            return await _locationRepository.GetListAsync();
        }
    }
}

We have changed nothing about the way JS loads into our modal from the default way that ABP Suite generates the modals and js scripts.

Which if I'm reading it correctly, means that the Index.js that is loaded into the page, which then subsequently loads the Edit.js if I'm not mistaken?

hi

It could be browser cache or you can try to use hot reload.

https://learn.microsoft.com/en-us/aspnet/core/test/hot-reload?view=aspnetcore-7.0

Hey,

Thank you for taking the time to read our question, but I'm afraid this hasn't worked for us. We've tried to clear browser cache and cookies multiple times, also in conjunction with hot reload, but this also didn't really seem to fix the issue we have.

I wish I could give a more solid example of when this occurs or what changes. But it really seems to occur at total random, and we have no really set in stone solution to fix when this occurs, which is for us the most problematic part of the issue.

Hi @stefan,

Please be sure that the ABP Suite version is equal to Volo.Abp.Commercial.SuiteTemplates package reference version in your project. It seems like The ABP Suite version is older.


For your info: If you want to edit the code templates, go to templates page in ABP Suite, find the related template and edit it.
For example, in this scenario you can find Server.Domain.Manager.txt and remove %%validations%% line for a quick fix.

This seems to have solved the issue for us internally, thank you for the support.

Showing 1 to 10 of 10 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11