Base solution for your next web application
Open Closed

Power Tools Issue / Question - View only component only shows list properties #11571


User avatar
0
mittera created

In power tools when creating an entity we have the ability to specify if a property is on the list & and is in the create update screen.

Why can't you specify what properties are on the view only screen?

When looking at the API the endpoint is there for returning a single view only object, but it is not being used in the power tools templates.

It does use the API when loading the create / edit views just not the view only ones.

In my case i have a grid that displays 8 columns but the underlying entity has about 50 properties.

These are all visible and working on the create edit screen, but the view only screen only shows the 8 properties that are visible in the list.

I can update my code to call the API to fix it, but wanted to report that this was happening in case it is a bug or something that was over looked.

Makes me think that there should be a "ViewDtoClass" template that contains all the fields from create or edit (or have a way to specify view only fields).

This class should be used in the result of the GetEntityForView API call.

And the angular template should be setup to make an API call to the GetEntityForView endpoint when the view button is selected..


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mittera

    Thank you for your suggestion. If you can create a new issue on https://github.com/aspnetzero/aspnet-zero-core/issues/new, our team can implement this for the next version of Power Tools.

    If you don't have access to AspNet Zero's private repository, first add your GitHub user on https://aspnetzero.com/LicenseManagement page.

  • User Avatar
    0
    mittera created

    Is the source for power tools available with paid license?

    We have worked with it extensively and have modified the templates to remove the master detail from the main list but on to the details as tabs. Each master details grid is a new tab.

    They are only visible after the first save. as otherwise they would have nothing to bind too...

    For many applications we feel this is a much better user experience.

    We would like to be able to extent the power tools to add some additional properties and control when items are regenerated.

    If the source is not available, are there any extensions to add custom properties?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mittera

    Source code of Power Tools is not available. Only extension point is modifying the Power Tools templates.