Base solution for your next web application

Activities of "alfar_re"

Hi,

Is it possible to automatically load a selection on the lookup form?

For example; I have a country lookup modal on my CreateOrEditEmployee form and I'd like to add a new employee under country 'Brazil' by clicking a link such that the CreateOrEditEmployee form loads with 'Brazil' selected.

Hi,

I also noted that when you enter a keyword while searching you don't get desired results.

Hi,

I actually got it working. Thank you for your pointers.

Hi @maliming,

Here you go

[AbpAuthorize(AppPermissions.Pages_ChartOfAccounts_Create)]
protected virtual async Task Create(CreateOrEditChartOfAccountDto input)
{
    var chartOfAccount = ObjectMapper.Map<ChartOfAccount>(input);


    if (AbpSession.TenantId != null)
    {
        chartOfAccount.TenantId = (int)AbpSession.TenantId;
    }

    //await _chartOfAccountRepository.InsertAsync(chartOfAccount);
    var id = await _chartOfAccountRepository.InsertAndGetIdAsync(chartOfAccount);
}

Hi,

This is the result...

System.NullReferenceException: Object reference not set to an instance of an object.
   at reos.ChartOfAccounts.ChartOfAccountsAppService.Create(CreateOrEditChartOfAccountDto input) in D:\OneDrive\Projects\reos\src\reos.Application\ChartOfAccounts\ChartOfAccountsAppService.cs:line 137
   at Abp.Threading.InternalAsyncHelper.AwaitTaskWithPostActionAndFinally(Task actualReturnValue, Func1 postAction, Action1 finalAction)
   at reos.ChartOfAccounts.ChartOfAccountsAppService.CreateOrEdit(CreateOrEditChartOfAccountDto input) in D:\OneDrive\Projects\reos\src\reos.Application\ChartOfAccounts\ChartOfAccountsAppService.cs:line 115
   at lambda_method(Closure , Object )
   at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

Hi,

Is it possible to return the just created row? Like on the following method...I'd like to get the Id of the just created chartOfAccount as below.

protected virtual async Task Create(CreateOrEditChartOfAccountDto input)
{
    var chartOfAccount = ObjectMapper.Map<ChartOfAccount>(input);


    if (AbpSession.TenantId != null)
    {
        chartOfAccount.TenantId = (int)AbpSession.TenantId;
    }


    await _chartOfAccountRepository.InsertAsync(chartOfAccount);
}
Answer

I found the problem.

Public const string LocalizationSourceName = "reos";

I had changed the value on this property which meant that the localization file (xml) was not being found.

Thank you @ismcagdas

Answer

I had just temporarily commented out this line <vc:account-languages></vc:account-languages> which doesn't seem to be bringing an issue.

Answer

This is what I'm struggling with.

Answer

@ismcagdas,

The entire solution including all projects?

Showing 101 to 110 of 138 entries