Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Dynamic Display Attribute #1038


User avatar
0
maharatha created

Hi Hilkan -

This is not something directly related to Abp but I would like some guidance on it. I would like your input in designing my core layer where in the display attribute retrieves data dynamically from the database. Some thing like the below :

[Display(Name = "get data from database based on some query")]

Is this a good idea ?

The whole idea is I would like to provide flexibility to my users to change the display name of the database columns based on their wish. So any guidance for implementation would be helpful.

Thanks in Advance.


4 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    It can be good if you can create such a custom Display attribute. Alternatively, you can use localization since as you know localization texts also can be modified by users on UI.

  • User Avatar
    0
    maharatha created

    This is why I respect you and this forum. I already knew what Languages is capable of doing but it completely missed out from my mind. Thanks for showing the right direction. I don't want to get fancy and implement something which is already available in Abp.

  • User Avatar
    0
    hikalkan created
    Support Team

    You're welcome :)

  • User Avatar
    0
    easyest created

    Please search this forum - I have already posted such attributes with some comments to them.