Starts in:
2 DAYS
5 HRS
18 MIN
45 SEC
Starts in:
2 D
5 H
18 M
45 S
Open Closed

ExtraProperties Display on Blazor UI #5432


User avatar
0
Spospisil created
  • 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)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi Spospisil ,

    Have you tried this -> https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Extending-Entities

    please check

    with regards, Anjali

  • User Avatar
    0
    Spospisil created

    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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06