Base solution for your next web application

Activities of "alfar_re"

Question

Hi,

I replicated a createOrEditModal and checked that everything was done properly. The problem is that the 'Save' button does not fire. Checking the browser console shows no activity when the button is clicked.

Am I missing something?

Hi,

With ref to #8533, I have an additional challenge. I have a row action that needs to be displayed only when two things are right

  1. The rights to perform the action and
  2. The correct status of the record

What I mean is, I have an action called 'Approve' and the entity has an Enum called 'Status' that has the following statuses 'Active, Draft, Cancelled, Expired'. So, a new record is created then it has the status 'Draft' and it hence needs to be approved to become 'Active' and to perform some background work. My challenge then is making sure that I check that the current user has rights to 'Approve' as well as check that the status is 'Draft' so as to display the row action.

Thanks in advance.

Hi,

I'm getting this error on the bold line of code below

AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

`public async Task<string> GenerateNumberAsync(ModuleProfile profile, int tenantId)
        {
            var numberFormat = await _numberFormatRepository.GetAll().Where(e => e.Module == profile && e.TenantId == tenantId).FirstOrDefaultAsync();

            long _current = numberFormat.Current;
            int _seed = numberFormat.Seed;
            long _new = _current + _seed;
            long? _total = 1 + numberFormat.Total;
            string _number = string.Concat(numberFormat.Prefix.Trim(), _new.ToString(), numberFormat.Postfix.Trim());
            //
            var newNumberFormat = new NumberFormats.Dtos.GetNumberFormatForViewDto()
            {
         `       NumberFormat = new NumberFormats.Dtos.NumberFormatDto
                {
                    Current = _new,
                    Total = _total,
                }
            };
######             **ObjectMapper.Map(newNumberFormat, numberFormat);**
            //
            return _number;
        }

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,

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);
}
Question

Hi,

I recently added the timezone code to enable selection of timezone under settings. I also enabled hangfire successfully. However, everything on the system now displays with square brackets like so [Settings header info]

What would be the problem and how do I resolve?

Question

Hi,

I cannot seem to find the Timezone setting on the Host account. I would like to know how to set this up.

Hi,

Each time I make changes to the entity structure, all changes, including the code added to the services gets lost. How can I prevent this?

Previous title: LOOK UP TABLE ISSUE

Hi,

Am getting this error on the filter on look up tables.

System.InvalidOperationException: The LINQ expression 'DbSet<RentalInvoice> .Where(r => __ef_filter__p_0 || !(((ISoftDelete)r).IsDeleted) && __ef_filter__p_1 || (Nullable<int>)((IMustHaveTenant)r).TenantId == __ef_filter__CurrentTenantId_2) .Where(r => r.InvoiceNumber.ToString().Contains(__input_Filter_0))' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync(). See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.<VisitMethodCall>g__CheckTranslated|8_0(ShapedQueryExpression translated, <>c__DisplayClass8_0& ) at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.RelationalQueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.RelationalQueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass12_0`1.

Previous title: INDEX NOT WORKING

Hi,

Am using ASP.NET CORE + JQUERY

Somehow, some index pages are not displaying data and there's no error. I've checked all possible reasons including regenerating the entities. What could be the possible cause?

Showing 21 to 30 of 37 entries