Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Answered

Edit related record

(0) ShareShare
ReportReport
Posted on by 29

Hi I have 3 entities Account, vehicles and an intersecting table account vehicles.  The account vehicles entity links an account to a vehicle. I have  an account basic form that has a subgrid which lists the account vehicles.  I have an edit button on each row which currently passes the guid of the account vehicles and not the vehicle record that I want to edit.  So my question is how can pass the guid of the vehicle instead of the intersecting table to the edit vehicle entity form . ? Thanks Gary

 

 

Categories:
  • gmanuki Profile Picture
    29 on at
    Re: Edit related record

    Thanks for your suggestions. I have a web page with the vehicle basic form already so will hopefully get it working

  • Verified answer
    oliver.rodrigues Profile Picture
    9,319 Most Valuable Professional on at
    Re: Edit related record

    Hi @gmanuki, the way Lists and Subgrid works is that it would always pass the current record ID as parameter, in your case the Account Vehicle ID and not the Vehicle ID.

    I can see two options to work around your scenario:

     

    1. if you need this to open in a pop-up:
      • you will need to create a custom modal frame
      • as part of your modal, you need to interact with Dataverse using the Portals Web API
      • you will need to inject the modal link via JavaScript to your subgrid
    2. if you can open a new Web Page
      • you can simply create a Web Page as normal and Basic Form to the Vehicle table
      • then you can reference it via Subgrid Metadata, and using JavaScript, change the ID of the records that's being sent as parameter
      • or inject the link entirely via JavaScript

     

    I hope this makes sense

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43

Featured topics