My application services are starting to get too big and now I'm looking to refactor it to make one method per application service (with one interface, input and output dto). How do you recommend to implement this? Do ABP has some base classes for it? Should I extend ApplicationService base class in each service? How can I call each one in the controller?
It worked, thank you!
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.
Hello,
I added two extra columns to my Tenant entity and I need to make them available in angular through Config State Service (currentTenant property). How could I do this? What's the best approach?
ObjectExtensionManager.Instance.Modules()
.ConfigureSaas(saas =>
{
saas.ConfigureTenant(tenant =>
{
tenant.AddOrUpdateProperty<int>(
"MunicipioId",
property =>
{
property.UI.Lookup.Url = "/api/app/cidadaos/lookup/municipios";
property.UI.Lookup.DisplayPropertyName = "displayName";
//property.Attributes.Add(new RequiredAttribute());
//property.Attributes.Add(new LengthAttribute(minimumLength: 7, maximumLength: 7));
}
);
});
});
}
OneTimeRunner.Run(() =>
{
ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, int>(
"MunicipioId",
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.HasMaxLength(7);
propertyBuilder.IsRequired();
}
);
ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, string>(
"MunicipioId_Text",
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.HasMaxLength(255);
propertyBuilder.IsRequired();
propertyBuilder.HasColumnName("Municipio");
}
);
});
Thanks!
Thanks!
Hi,
The document shows how I can pass different values to the component, but not how I can pass multiple values. Example: I want to lookup for a bank account and I want the component to show the account number and the bank name on the UI. The way it is built I can only show one property (account number OR bank name in this case). Also if I want to filter the lookup response by some property from the form, it also does not support it. It only accepts default lookup properties (filter, skipCount and maxResultCount).
For refer purpose you can also check this File
The file is an example for lookup-select, but I'm looking for lookup-typeahead.
Thanks.
Hey,
I checked out the link, but it just shows how to use the component. Iām trying to customize it so it can handle more properties besides just DisplayName, and I couldnāt find much about that in the docs.
Do you know how I could do this or where I can find the source code?
Thanks!
Hi,
Where can I access the source code from abp-lookup-typeahead-mtm?
Thanks.
How can I implement switching between organization units using Angular UI? I'm using NavItemsService to create the navigation item, but I can't figure out how to trigger the context menu, similar to how it opens in the user profile and settings. Also, how can I set organizationUnitId in angular side, so it sends it in the http requests?