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 Platform Community / Forums / Power Apps / Launch custom control ...
Power Apps
Answered

Launch custom control from ribbon button

(0) ShareShare
ReportReport
Posted on by 78

Is it possible to launch the custom control grid from ribbon button like playbook.

 

Attach is the screenshot for the same.

playbook.png
I have the same question (0)
  • Verified answer
    Ben Thompson Profile Picture
    1,400 on at

    You can create a button that calls Javascript and use the NavigateTo function to open the entities list page.

     

    That list will open using the default list control for the entitity so if you change the default control to your custom control of the entity that should work..

     

    Going forward (April) you may be able to use Xrm.Navigation.navigateTo to open a particular form type for the current record see https://powerusers.microsoft.com/t5/Power-Apps-Component-Framework/PCF-Open-main-form-in-a-dialog-using-client-API/m-p/468062#M1723 that would allow you to say navigate to another "form" for the current entity on which you just showed your PCF control in the appropriate context..

  • Bhuvita Sisodiya07 Profile Picture
    78 on at
    Thanks I will give this a shot
  • Bhuvita Sisodiya07 Profile Picture
    78 on at

    @ben-thompson 

    But entity list can't be open in modal dialog 

    navigateto.png
  • Ben Thompson Profile Picture
    1,400 on at

    My mistake - the second approach will work from April though - you can create a single purpose form and open it up in a modal window which contains just the data grid you want.

    @carldesouza  did I nice demo and post about it yesterday see https://carldesouza.com/using-the-new-modal-dialog-to-open-forms-in-dynamics-365-using-xrm-navigation-navigateto/

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    It looks like you actually need a Lookup Dialog. I suppose the Xrm.Utility.lookupObjects() is not an option for you, but that would have been the easiest way to select a record and then start another logic.

    I'm not very sure if using Xrm.Navigation.navigateTo() would add some unwanted elements (tabs, form header if it's a form with a subgrid) and I'm not sure if you can have the "Launch" button on the bottom.

    If the page should look like in the screenshot, another alternative would be to make your own HTMLWebresource and open it using Xrm.Navigation.navigateTo().

    Not very sure about your use case, but I suppose that you need to create a record using a template. Maybe there is another approach possible: to open the record in create mode, and have a field for the template on it. Right now is not possible to have the Lookup as a PCF control, but you could customize a dummy string-field which you can customize as a PCF component. When the  value is empty, you can make use of the PCF context.mode.setFullScreen(true) feature to directly open the grid in fullscreen. You would have to write your own grid, but have then full control on what's on the header/footer of your dialog. 

    I don't see a perfect solution though...

     

  • Bhuvita Sisodiya07 Profile Picture
    78 on at

    So my use case is like this I want to have button on the ribbon of opportunity form and on click of that button wants open the view of another custom entity and also have launch button exact like screenshot and associate the opportunity record with the record selected in the view.

     

    I tried to do this so wrote JavaScript on the ribbon button to open the another main form of the opportunity using Xrm.navigation.navigateto()

     

    Then applied the custom control on subgrid but here I can't remove the BPF applied command bar etc.

  • Ben Thompson Profile Picture
    1,400 on at

    Stealing from https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/233876/removing-hiding-business-process-flows-from-forms

     

    use the following code to hide the bpf when the form loads by adding it to the pageload of the form you are using in the modal window

     

    function PageLoad() {
     Xrm.Page.ui.process.setVisible(false); //Hide Business Process Flow
    }

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard