How to get extended property from tenant
Check the docs before asking a question: https://abp.io/docs/latest
Check the samples to see the basic tasks: https://abp.io/docs/latest/samples
The exact solution to your question may have been answered before, and please first use the search on the homepage.
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration
button.
Thank you, it's working and event can fire now but i make this event to access extra properties "TaxRegisterationNo" in tenant but it is not found in TenantCreateEto
public class CustomTenantDistributedHandler : ILocalEventHandler<TenantCreatedEto>, ITransientDependency {
public async Task HandleEventAsync(TenantCreatedEto eventData)
{
var tenantId = eventData.Id;
var tenantName = eventData.Name;
var TaxRegisterationNo = eventData.Properties["TaxRegisterationNo"].ToString();
//...your custom logic
}
//...
}
private static void ConfigureExtraProperties()
{
OneTimeRunner.Run(() =>
{ ObjectExtensionManager.Instance.Modules()
.ConfigureSaas(tenant =>
{
tenant.ConfigureTenant(tnt =>
{
tnt.AddOrUpdateProperty<EnvironmentMode>(
"EnvironmentMode"
, property =>
{
property.DisplayName = LocalizableString.Create<CoreSettingResource>("EnvironmentMode");
property.Attributes.Add(new RequiredAttribute());
});
});
});
//========================== and already appear in Create and edit tenant page and list of tenant page and saved on Tenant table but i have issue how i get the values from this extended property i tried to use IDistributedEventHandler and create new class in application project in src folder like that
public class CustomTenantDistributedHandler:
IDistributedEventHandler<EntityCreatedEto<TenantEto>>,
ITransientDependency
{
[UnitOfWork]
public async Task HandleEventAsync(EntityCreatedEto<TenantEto> eventData)
{
var tenantId = eventData.Entity.Id;
var tenantName = eventData.Entity.Name;
//...your custom logic
}
//...
}
//================ but this event not fire can you advice ?
there is no steps i just open the application then open the page i got this warning
hi i created angular project and it works but i have an issue with logout my logic is to add some items in database so these items added well but it works just one time just first time and when trying create again i got errors so to make create function work again i must refresh the page and when refreshing project logout alone automatically so i must login again to work and function works well try again inserting i got error so i must refresh and when refreshing project logout alone automatically ..... etc
i attached video to see problem if i can not explain please check
https://streamable.com/3cbycf
it works thank you super :) i noticed that is hover is there a way to make it clickable
thanks it works i am waiting for next answer with solution of hiding sidemenue thanks again, :)
OMG nobody can create sample to this logic and help me ?? wow !!
hi
Can you share a
DevExpress NuGet Feed
? liming.ma@volosoft.comI will try to add swagger to this project
https://abp.io/community/articles/integrating-devexpress-reporting-to-abp-mvc-application-0t99j3cz https://github.com/abpframework/abp-samples/tree/master/DevExtreme-Reports-Mvc
I will check it out, but is there another way to use the DevExpress Document Viewer in my project? My project uses ABP modularity, not a simple application.