Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "andmattia"

Answer

@aaron this work on ABPZERO core, my solution is on .NET 4.6.1. Any suggestion?

Answer

I try that way but when I need to change that value is impossible... the value is store on claims during the call but on second call the value is disapeared

Answer

You must to be loged in the main portal to access to Dashboard

Answer

Yes you need to update the user permission to allow to access to the dashboard.

Any error in console?

Answer

@firnas you need to enable the dashboard on C# and go to http://host:port/!#/hangfire

//Enable it to use HangFire dashboard (uncomment only if it's enabled in clayWebModule)
            app.UseHangfireDashboard("/hangfire", new DashboardOptions
            {
                Authorization = new[] { new AbpHangfireAuthorizationFilter(AppPermissions.Pages_Administration_HangfireDashboard) }
            });

on web module file Startup.cs

Thank @aaron to your suggestion but after a lot of time this approch not work. Here is my code

public interface IMustHaveCompany
    {
        long CompanyId { get; set; }
    }
    
    
    public class Person : FullAuditedEntity, IMustHaveCompany
    {
        public long CompanyId { get; set; }
        public string Name { get; set; }
    }


// On coreModule -> PreInitialize()
...
Configuration.UnitOfWork.RegisterFilter("CompanyFilter", true);

// On DbContext Class

public override void Initialize()
        {
            base.Initialize();
            // If I uncomment this the stack say me 
            // System.ApplicationException: Filter name CompanyFilter not found
            //this.SetFilterScopedParameterValue(
            //    "CompanyFilter",
            //    "companyId",
            //    2);
        }

        protected void OnodelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.Filter("CompanyFilter",
                (IMustHaveCompany entity, int companyId) => entity.CompanyId == companyId, () =>
                {
                    return 19;
                });
        }
        
      // I try to call on TenantDashboardAppService
       CurrentUnitOfWork.SetFilterParameter("CompanyFilter", "CompanyId", 19);
            var q = _personManager.Persons.ToArray();
            
   public interface IPersonManager : IDomainService
    {
        IQueryable<Person> Persons { get; }
    }
    
    public class PersonManager : demoServiceBase, IPersonManager
    {
        private readonly IRepository<Person> _repository;

        public PersonManager(IRepository<Person> repository)
        {
            _repository = repository;
        }

        public virtual IQueryable<Person> Persons
        {
            get { return _repository.GetAll(); }
        }
    }

What is wrong??? When I look on Configuration.UnitOfWork the filter is regitered on PreInit with 0 parameter, but it's the same for tenant May/Must

@sunflowerlab you can use KendoUi Table, I rememeber that exist an example of usege on ABP (old version but is in jQuery)

hi @ismcagdas

I try to flow your suggestion but my interface are not registered. Last week I update to lastest ABP 4.2 and this week I try it again.

@yekalkan thank you for your suggestion

@mohamedaarif are you ask if exists a way to put data from remote side to ABP/ANZ website?

If it's correct I do that via local stream service on remote side and I use supersocket http://www.supersocket.net/

Showing 91 to 100 of 136 entries