Base solution for your next web application

Activities of "misix"

Good catch, this solved my issue. Thanks.

Hi,

This is my .js (_CreateOnyxClientModal.js)

(function () { app.modals.CreateOnyxClientModal = function () {

    var _modalManager;
    var _onyxclientService = abp.services.app.onyxclient;
    var _$form = null;
  

    this.init = function (modalManager) {
        _modalManager = modalManager;

        _$form = _modalManager.getModal().find('form');
        _$form.validate();
    };

    this.save = function() {
        if (!_$form.valid()) {
            return;
        }

        var onyxclient = _$form.serializeFormToObject();

        _modalManager.setBusy(true);
        _onyxclientService.createOnyxClient(onyxclient).done(function () {
            _modalManager.close();
            location.reload();
        }).always(function () {
            _modalManager.setBusy(false);
        });
    };
};

})(jQuery);

And this is OnyxClientAppService.cs

using Abp.Application.Services.Dto; using Abp.AutoMapper; using Abp.Collections.Extensions; using Abp.Domain.Repositories; using Abp.Extensions; using Sixoclock.Onyx.Entities; using Sixoclock.Onyx.OnyxClients.Dto; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks;

namespace Sixoclock.Onyx.OnyxClients { public class OnyxClientAppService : OnyxAppServiceBase, IOnyxClientAppService { private readonly IRepository<OnyxClient> _onyxclientRepository;

    public OnyxClientAppService(IRepository&lt;OnyxClient&gt; onyxclientRepository)
    {
        _onyxclientRepository = onyxclientRepository;
    }

    public ListResultDto&lt;OnyxClientListDto&gt; GetOnyxClients(GetOnyxClientsInput input)
    {
        var onyxclientss = _onyxclientRepository
            .GetAll()
            .WhereIf(
                !input.Filter.IsNullOrEmpty(),
                p => p.Name.Contains(input.Filter) ||
                    p.EmailAddress.Contains(input.Filter)
            )
            .OrderBy(p => p.Name)
            .ToList();

        return new ListResultDto&lt;OnyxClientListDto&gt;(ObjectMapper.Map&lt;List&lt;OnyxClientListDto&gt;>(onyxclientss));
    }

    public async Task CreateOnyxClient(CreateOnyxClientInput input)
    {
        var onyxclient = input.MapTo&lt;OnyxClient&gt;();
        await _onyxclientRepository.InsertAsync(onyxclient);
    }
}

}

I've used the example and replaced "person" with onyxclient and "Person" with "OnyxClient". "People" became "OnyxClients".

Thanks

Hi, I'm working my way through the PhoneBook example. I'm creating an entity named "OnyxClient". However, I'm stuck with the "_CreateOnyxClientModal.js" throwing this error: Uncaught TypeError: Cannot read property 'createOnyxClient' of undefined.

Screen shot is attached.

I realise this is a newbie question, but any directions on how to move forward are much appreciated!

Hi,

I would like to know if there is a best practice to temporarily disable certain languages? For example, I would to disable Chinese, but keep the rest, including the languages I have created.

Thanks

BTW - The Zero framework is AWESOME!

I resolved this issue by changing

<PackageReference Include="System.Net.Http" Version="4.3.1" />

to

<PackageReference Include="System.Net.Http" Version="4.3.2" />

in the .csproj file. Now back to work..

Hi,

I'm new to ANZ. I've downloaded the source and followed the steps in the getting started manual. I created the database, but when starting the app, I get the error screen below.

VS 2017, .NET Core

Any ideas on how to move forward? Thanks.

An unhandled exception occurred while processing the request.

FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Unknown location

FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Unknown location

FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Unknown location

ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)

Loader Exceptions: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Stack Query Cookies Headers FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

Show raw exception details FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

Show raw exception details FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

Show raw exception details ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) System.Reflection.RuntimeAssembly.get_DefinedTypes() Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable<ApplicationPart> parts, ControllerFeature feature) Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature<TFeature>(TFeature feature) Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetControllerTypes() Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.BuildModel() Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetDescriptors() Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context) Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.GetCollection() Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.get_ActionDescriptors() Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.GetTreeRouter() Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.RouteAsync(RouteContext context) Microsoft.AspNetCore.Routing.RouteCollection+<RouteAsync>d__9.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Builder.RouterMiddleware+<Invoke>d__4.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+<Invoke>d__7.MoveNext()

Show raw exception details

Showing 1 to 6 of 6 entries