Base solution for your next web application

Activities of "hole7"

Hi ismcagdas,

I'm using log4net 1.2.10.0 and Hangfire.Core 1.5.3.0.

For SaveLocalizeValue method, I fixed it.

Thanks

Answer

Hi,

You can define your custom menu definition:

var leftMenu = new MenuDefinition("LeftMenu", new FixedLocalizableString("LeftMenu"));

then add items to leftMenu.

And add to menu context: context.Manager.Menus.Add("LeftMenu", leftMenu);

Use in js: vm.menu = abp.nav.menus.LeftMenu;

hi ismcagdas ,

Give me another question!

I just use the same configuration as startup template for Hangfire config but it throw an exception as image below

[http://pasteboard.co/2hTvYmyE.png])

Thanks

hi,

Thanks for your advice!

I found an exception:

"ERROR 2016-03-15 22:16:41,078 [165 ] lers.Filters.AbpExceptionFilterAttribute - Only one complex type allowed as argument to a web api controller action. But SaveLocalizedValue contains more than one! Abp.AbpException: Only one complex type allowed as argument to a web api controller action. But SaveLocalizedValue contains more than one!"

So, with that logs I think I can fix it. But, what changed with the new version? because old version worked fine.

Thanks ismcagdas so much!

any help, please!

Hi everyone,

Is there any people here had a problem when upgrade abp version 0.8.3?

Previous, I used abp 0.6.7 and it's working fine, but after I upgrade it to latest version (0.8.3) there is an error with AbpServiceProxies/GetAll as attached image.

[http://pasteboard.co/2fJRlIXP.png])

Could anyone help me?

Thanks & Regards, Ho Le

Hi ismcagdas,

As you said, I looked my code and you're right. That was my misunderstanding. I logged in with host user (generated with start-up template) but comment user was tenant admin user. Thanks for your great help. I think I have to take more time on Multi-Tenancy document.

p/s: This framework is awesome. I really like it

Hi ismcagdas,

Thanks for your response!

I checked CreatorUser and its value is null. I don't know why because I can see value from database as image below

[http://pasteboard.co/217Rxg5p.png])

Thanks & regards, Ho Le

Hello,

Could anyone help me!

I'm trying to get CreatorUser of Comment Entity on Application service and bind it to Dto. I saw in the demo code of module-zero that in dto, we will declare a property CreatorUserName and config mapping for that dto and then in service we use .Include(). But it's not working.

Please see attached for more details. [http://pasteboard.co/1ZD86HW6.png])

Thanks & regards

Finally, I found the way to solve this.

var queryUsers = _userRepository.GetAll().Include(u => u.Roles)
                                            .OrderBy(input.Sorting)
                                            .PageBy(input);

            var items = (from u in queryUsers
                         join ur in queryUsers.SelectMany(x => x.Roles) on u.Id equals ur.UserId
                         join r in _roleRepository.GetAll() on ur.RoleId equals r.Id
                         group new { u, ur, r } by new
                         {
                             u.Id,
                             u.UserName,
                             u.Name,
                             u.Surname,
                             u.EmailAddress,
                             u.IsEmailConfirmed,
                             u.IsActive,
                             u.LastLoginTime,
                             u.CreationTime
                         } into g
                         select new UserDto()
                         {
                             Id = g.Key.Id,
                             UserName = g.Key.UserName,
                             Name = g.Key.Name,
                             Surname = g.Key.Surname,
                             EmailAddress = g.Key.EmailAddress,
                             IsEmailConfirmed = g.Key.IsEmailConfirmed,
                             IsActive = g.Key.IsActive,
                             LastLoginTime = g.Key.LastLoginTime,
                             CreationTime = g.Key.CreationTime,
                             Roles = g.Select(x => new UserRoleDto()
                             {
                                 RoleId = x.r.Id,
                                 RoleName = x.r.DisplayName
                             }).ToList()
                         }).ToList();
Showing 11 to 20 of 21 entries