Skip to main content
Community site session details

Community site session details

Session Id : ++BodxLE73Ot9pTkBZvvMg
Power Pages - General Discussions
Answered

Editable child records grid

Like (0) ShareShare
ReportReport
Posted on 8 Apr 2024 10:23:17 by 48

Hi.

I have a list in Power Pages and an edit button for table A.
If I click the edit button, it opens the form for Table A, which is a sub-grid associated with Table B.
I would like to make this sub-grid editable, but the only option I have found is to add another edit button to the sub-grid form and create another form for table B.

Is there any option to make this sub-grid editable instead of creating another form and opening another window?

 

Categories:
  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 12 Apr 2024 at 07:01:12
    Re: Editable child records grid

    So what is a good practise to do this type of task?

    • review permissions and make sure you are not exposing extra data
    • if that's the only page you are using WebAPI, make sure to reference your API wrapper only in that page/form to minimize the exposure of it
    • use common functions / generic JS code where applicable

    basically the same good practices as any other customization within Power Pages

     

    Should I change my data structure some kind?

    • if your child table will have a fixed number of records, you could consider creating fields in the parent table, for example: Parametry1 Parametry2 Parametry3
    • I personally don't like that approach, but it might solve your problem
  • hubjes Profile Picture
    48 on 11 Apr 2024 at 07:54:54
    Re: Editable child records grid

    Thank you.
    I achieved this by using Liquid and WebAPI.

    So what is a good practise to do this type of task?
    Should I change my data structure some kind?

    For me a possibility to edit child records is pretty common need.
    Sorry for so many questions but I would like to understand it better.

  • Verified answer
    oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 09 Apr 2024 at 16:39:53
    Re: Editable child records grid

    Hi, unfortunately you can't achieve that with OOB components as each form is related to a specific table.
    Technically speaking you can use the WebAPI to achieve this, but it will involve custom code.

    To be honest, this is not a common issue, most customers understand the concept of parent/child record and that they should be editing the data in each one's context.

  • hubjes Profile Picture
    48 on 09 Apr 2024 at 14:04:11
    Re: Editable child records grid

    Thanks for your response.

    Yes I added type 'Subgrid' in Basic Form Metadata:

    hubjes_0-1712670605497.png

    But from the user's perspective, I see my form first:

    hubjes_1-1712670745324.png

    Then, when I click the Edit button, I see my subgrid in the pop-up window:

    hubjes_2-1712670816921.png

    And what I want to achieve is to be able to edit the data in this pop-up window, the data is linked to the parent record in my form. Instead of clicking another Edit button and opening another pop-up window, like this:

    hubjes_3-1712670984300.png

    Do you think this is achievable?
    To make it simpler, I just want to have a form where when I click edit it will allow me to edit records from another table, related to my selection.

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 09 Apr 2024 at 07:08:20
    Re: Editable child records grid

    You don't need to have it as a separate window, when adding the Option to the Subgrid (via Metadata), instead of selecting Web Page, you can select a Basic Form. This will open as a Pop-up/Modal instead of a separate page.

     

    If you want an editable grid/inline editing, you can enable that in the back-end. But my experience with that isn't the best, I tried it recently and it wasn't stable.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 48 Super User 2025 Season 2

#3
KevinGador Profile Picture

KevinGador 44 Super User 2025 Season 2

Loading complete