web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Pages
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:
I have the same question (0)
  • Verified answer
    oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    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

  • gmanuki Profile Picture
    29 on at

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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 50

#2
Valantis Profile Picture

Valantis 26

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard