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

Notifications

Announcements

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,368 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard