Open Closed

ExtraProperties #9125


User avatar
0
nabass created

Hello,

According to the Object Extensions documentation, I have an idea that I hope the ABP Framework can help bring to life.

As described in the documentation, ABP allows adding extra properties to entities by defining the property name, data type, and default value. This is a powerful feature, and I’m planning to use it in an ERP application with two related pages:

First Page: This page enables users to add custom properties. For example, I might define a string property (prop - string), and the user can enter values manually through the UI. ABP makes this part straightforward by allowing extra properties to be added with minimal effort.

Second Page: I would like to display the values entered by the user in the first page. This page should dynamically reflect the custom property values. However, based on my understanding, ABP does not currently support automatically displaying these extra values on a separate page out of the box.

To clarify my idea further, I’ve attached two images:

Image 1: Shows the code setup and the UI where the user inputs custom values.
Image 2: Illustrates how I would like to display those user-defined values on another page.

I believe this feature could add significant flexibility and value to applications built with ABP, and I would appreciate any guidance or suggestions on how this can be implemented, or whether there are existing patterns or tools within ABP to support this kind of functionality.

Thank you for your continued support and efforts in maintaining such a great framework.
Best regards

Group Screen.png
Setup Screen.png


1 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi,

    This page should dynamically reflect the custom property values. However, based on my understanding, ABP does not currently support automatically displaying these extra values on a separate page out of the box.

    Yes, that's right. This requires some manual work.


    I'll create an issue for your request, so we can evaluate it later. But, in the meantime, it can be beneficial for you to check the CreateModel and UpdateModal files of the Users/Index.cshtml page from our repository: https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/CreateModal.cshtml#L42-L71

    By checking the CreateModal.cshtml file, you can see how we are showing the generic part in our own create-update models, and follow a similar approach in your own case.

    Regards.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13