Hello,
I created a PCF dataset and then dropped it on a custom page. With a click of a button, this Custom page appears with the PCF in it.
I am willing to add a cancel button to close the custom page popup when clicked.
Should I add the button as a canvas button or implement it with the PCF using fluent UI?
I also want to close the popup after its submission.
I hope you would be able to provide me with some solutions.
thank you!
Hi @Mhmdbaba ,
Not sure if there is a way to do that.
But when you set dataset.setSelectedRecordIds(ids) inside your PCF, you can read that from your Button in CustomPage. So you can create the record using the Canvas Button using PATCH (in PowerFx) and then close the dialog using Back() or Navigate(...)
Hope this helps!
hello @DianaBirkelbach ,
Thank you for your help. I have also a custom button inside my PCF which, when clicked will take the selected rows and created a new record of them. This button when clicked is fine, but the Custom Page popup will not close. I also want to close the custom page popup using type script when button is clicked and records are created.
Regards,
MhmdBaba
Hi @Mhmdbaba ,
My take would be: make a canvas button on the CustomPage. There you can use PowerFx to close the dialog (use Back or Navigate for that).
Do you need to interact with the Dataset PCF on the button?
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
57
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1