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

Activities of "kasem"

Several discussions on github and I'm not sure I catched the change. Is there any documentation / description about enum change?

JQuery problem is solved by installing the missing package.

I'm not sure yet about enums generation in proxies and why they aren't supported now

It seems that JQuery was completely removed in your last version. I still need legacy version of JQuery jstree as I made significant updates to organizationTree. But now I get the following error when building the project:

Property 'jstree' does not exist on type 'JQuery<HTMLElement>'.

Another side effect from last update is losing all enums in Angular as they aren't included in service-proxies

I'll be able to check this after finishing the upgrade. bear with me please :) For now, I'm opening a new ticket as a result of this upgrade

Can you please just tell me why you think I don't need distributors? what other way would you recommend?

Excellent! Seems it's the time to upgrade :-)

Thank you

I use v5.5.2 of ASP.NET CORE & Angular with Abp 3.8.1

Maybe I didn't get the idea. Do you mean create my custom notifier and call it when needed? I just found it simple to just add one more distributer to the list.

Hi!

Besides realtime notifier through SignalR, I would like to add an additional notification channel. Can you please describe the steps required to add a new notification distributer.

BTW, I tried the following in AspNetZero (AspNetCore) WebHostModule, but somehow distributer enumerator isn't recognized (only provider is found): Configuration.Notifications.Distributers.Add<MyNotificationDistributer>();

Hi,

Yes, this is what I've mentioned, I'm using this as a workaround now. I'm fine with this for now - I mean you can close my ticket. I'll reopen it if I still find a serious added value for auto filter.

Thank you

Hi,

I don't know how to locate a custom data filter to manually enable/disable it as needed. I need this because my custom filter uses a user session variable in DbContext and it's inaccessible in background job. I'm trying to manually disable it so I can add the filter to my query or just change its value through the background job. My custom filter has been added to DbContext overriding CreateFilterExpression method:

Expression<Func<TEntity, bool>> mustHaveYearFilter = e => ((IMustHaveYear)e).YearId == MyYear || (((IMustHaveYear)e).YearId == MyYear) == true;
                    expression = expression == null ? mustHaveYearFilter : CombineExpressions(expression, mustHaveYearFilter);

I tried to register the filter in WebHostModule > PreInitialize Configuration.UnitOfWork.RegisterFilter("MustHaveYear", true);

But it doesn't change the filter or disable it.

Change filter code:

_unitOfWorkManager.Current.EnableFilter("MustHaveYearFilter");
_unitOfWorkManager.Current.SetFilterParameter("MustHaveYearFilter", "YearId", args.YearId);

Disable filter code:

_unitOfWorkManager.Current.DisableFilter("MustHaveYearFilter");

Regards

UPDATE I was able to enable and disable the filter successfuly. Somehow the parameter name wasn't injected to the query. I disabled the filter and added it to my WHERE statements as a workaround.

Showing 71 to 80 of 105 entries