- ABP Framework version: v7.2.2
- UI type: Blazor wasm
- DB provider: EF Core / PostgreSql
- Tiered (MVC) or Auth Server Separated (Angular): yes
Hi,
I have extended the SaasTenantCreateDto and added a property called CustomerNumber (string) to it. I have overridden the TenantManagment.Razor page to customize the 'Create Model' UI. However instead of using the <ExtensionProperties TEntityType="SaasTenantCreateDto" TResourceType="SaasResource" Entity="@NewEntity" LH="@LH" /> tag to display all the added properties and fields on the UI, I want to add just specific ones via the 'Field' tag. How can I refer to a specific property and it's value in the .ExtraProperties collection and place it in my UI individually?
Thanks.
2 Answer(s)
-
0
Hi Spospisil ,
Have you tried this -> https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Extending-Entities
please check
with regards, Anjali
-
0
Hi,
- Actually, I found this link to be more useful (https://docs.abp.io/en/abp/latest/Object-Extensions), however you did not answer my question in full, but rather focused on the first part of it "How can I refer to a specific property and its value in the .ExtraProperties collection and place it in my UI individually?". While I was able to figure out how to get the extraProperties collection items individually, you did not explain how I could then show them in the UI as such.
But regardless I figured it out by creating protected variables in the class and then populating them with the individual property values (as shown in the link I referred to) and then providing in the .razor page the reference to those protected variables.
Just a general comment which comes up a lot when support responds to tickets, you all need to do a better job at reading the tickets and responding to the individual questions being asked. It's almost as if you are just glancing at the information we write and are quickly sending out links to existing documentation without understanding and responding to the specific question(s) being asked.
Nevertheless, I was able to figure out how to do what I was trying to do after spending the better part of a day researching, but I was hoping that support could show me the way that you folks do it so I wouldn't have to waste too much time trying to figure it out myself.
Steve