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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Power Portal - Open custom modal passing record id and delete record by record id

(0) ShareShare
ReportReport
Posted on by

Hi everyone, i'm developing a new Power Portal for a customer. I have a custom grid, setted up with HTML and Lqiuid, where i show entity list records. On each row i have Edit button and Remove button. I'm struggling understanding how i can open a modal, where i have embedded an entityform in 'Edit' mode, because i don't know how i can pass the selected record id to this entityform. At the same, i have also the need to delete a record clicking on the correspond row button.

Below source code:

<div class="container">
<div class="row">
<div class="col-lg-1">Col1</div>
<div class="col-lg-1">Col2</div>
<div class="col-lg-1">Col3</div>
<div class="col-lg-1">#</div>
<div class="col-lg-1">#</div>
</div>
{% entitylist name:'myEntityList' %}{% entityview %}{% for rec in entityview.records %}
<div class="row">
<div class="col-lg-1">{{rec.col1}}</div>
<div class="col-lg-1">{{rec.col2}}</div>
<div class="col-lg-1">{{rec.col3}}</div>
<div class="col-lg-1">
<button class="btn btn-success" type="button" data-toggle="modal" data-target="#edit_modal">Edit</button>
</div>
<div class="col-lg-1">
<button class="btn btn-danger" type="button">Remove</button>
</div>
</div>
{% endfor %}{% endentityview %}{% endentitylist %}
</div>

<!--MODAL-->
<div id="edit_modal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Edit Modal</h4>
</div>
<div class="modal-body">
{% entityform name: 'myEditEntityForm' %}
</div>
</div>
</div>
</div>

I have the same question (0)
  • Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    Did you check this: community.dynamics.com/.../920713

  • Community Member Profile Picture
    on at

    Yes, i already see it, but was not so much usefull for my needs. Thank you anyway!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans