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

Activities of "klainer"

Hello, how locallize sweet alerts buttons ? I found in code this:

abp.event.on('abp.dynamicScriptsInitialized', function () {
        abp.libs.sweetAlert.config.confirm.title = abp.localization.abpWeb('AreYouSure');
        abp.libs.sweetAlert.config.confirm.cancelButtonText = abp.localization.abpWeb('Cancel');
        abp.libs.sweetAlert.config.confirm.confirmButtonText = abp.localization.abpWeb('Yes');
    });

Where are this rosources ? In Localization AbpWeb resource is missing... Thnaks for help !

Hello,

I have problem with using KENDO UI componets with ABP. I have test home controller :

public ActionResult CategoriesRead([DataSourceRequest]DataSourceRequest request)
        {

            List<Work> lissOfWorks = new List<Work>() {
                new Work { Name = "Martin", SureName = "HAHA1", ProjectName = "Projekt A", Date = DateTime.Today },
                new Work { Name = "Ondřej", SureName = "HAHA2", ProjectName = "Projekt B", Date = DateTime.Today },
                new Work { Name = "Tomáš", SureName = "HAHA3", ProjectName = "Projekt A", Date = DateTime.Today },
                new Work { Name = "Lukáš", SureName = "HAHA4", ProjectName = "Projekt B", Date = DateTime.Today },
            };

            DataSourceResult result = lissOfWorks.ToDataSourceResult(request, work => new {
                work.Name,
                work.SureName,
                work.ProjectName,
            });

            return Json(result);
        }

In home view this:

@(Html.Kendo().Grid<BB.BB.Web.Models.Work>()
      .Name("grid")
      .Columns(columns =>
      {
          columns.Bound(work => work.Name);
          columns.Bound(work => work.SureName);
          columns.Bound(work => work.ProjectName);
      })
      .DataSource(dataSource =>
        dataSource.Ajax().Read(read => read.Action("CategoriesRead", "Home"))
      )
      .Pageable() // Enable paging
      .Sortable() // Enable sorting
)

ABP covert ajax response with custom wrapper data and GRID no work:

error: null
result: {data: [{name: "Ondřej", sureName: "HAHA1", projectName: "Projekt A"},…], total: 4,…}
success: true
unAuthorizedRequest: false

The response should look like this:

AggregateResults: null
Data: [{Name: "Ondřej", SureName: "Pětník", ProjectName: "HAHA1 B"},…]
Errors: null
Total: 4

How solve this issue ? thanks !

Hello, thanks for your awesome work! I Have some question about using ABP. I downloaded ABP - Module Zero template, after that I extend Core project with code which I use for dynamic loading DLL subsystems. Subsystem is a normal Project with area registration class. This subsystem is loaded to Web folder called "Subsystems". In web project I created PreStart class which inicialize subsystem. Everything works, subsystem is loaded and area registered. But I want to use repositories and services form ABP in this dynamicly loaded subsystem. When i create controller like below I got this error:

'CmsSubsystem.Services.TeacherAppService' is waiting for the following dependencies:

  • Service 'Abp.Domain.Repositories.IRepository`1[[CmsSubsystem.Entities.Ucitel, CmsSubsystem, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.

When I´m loading dynamic dll of subsystem (area) in CoreModule I register assembly dependecy like this:

dependencyContainer.RegisterAssemblyByConvention(AppDomain.CurrentDomain.GetAssemblies().SingleOrDefault(assembly => assembly.GetName().Name == "CmsSubsystem"));

But services, repositories no works... Which is the correct way and place to register dependencies when I´m using this appropoach (cutom project with area registration class compiled to dll and moved to WebModule Subsystems folder).

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using Abp.Authorization;
using Abp.Domain.Repositories;
using Abp.Web.Mvc.Authorization;
using Abp.Web.Mvc.Controllers;
using CmsSubsystem.Entities;
using CmsSubsystem.Services;

namespace CmsSubsystem.Controllers
{
    [AbpMvcAuthorize]
    public class DashboardController : BaseController
    {

        private IUcitelAppService _ucitelAppService;

        public DashboardController(IUcitelAppService ucitelAppService)
        {
            _ucitelAppService = ucitelAppService;
        }

        public ActionResult Index()
        {
            IQueryable&lt;Ucitel&gt; ucitele = _ucitelAppService.GetUcitele();
            return View(ucitele);
        }
    }
}

Thanks for tips !

Showing 11 to 13 of 13 entries