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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to change from Custom View(Pinned) to Standard View in D365 Forms through X++ Code.

(2) ShareShare
ReportReport
Posted on by 4
 

Hi everyone,

I have a requirement in D365 F&O where I’m facing an issue with navigation from a custom form.

I have created a custom form (F1) that contains a TileButtonControl. This tile is configured to navigate to the Released products form (Dynamics 365 Finance & Operations).

Additionally, I have created a custom view on the Released products form with around 10 filtered records and have set this view as default (pinned).

Issue:

When I click the tile from my custom form, it opens the Released products form with the pinned custom view, instead of the standard/default system view.

Requirement:

I want the tile click to always open the Released products form with the standard view, ignoring any pinned/custom user views.

Is there a way to control or override this behavior from the backend (X++) so that the navigation always opens the standard view?

Any guidance or suggestions would be greatly appreciated.

Thanks in advance!

I have the same question (0)
  • Subramani Sivan Profile Picture
    83 on at
    Hi @VK-27032222-0

    When you click the custom button from your form, please change the view as standard view based on form caller. You can use form init method to set the default view.
     
  • venkateswarrao v Profile Picture
    379 on at

    The pinned view is stored as user personalization. To force standard view on navigation, override the clicked() method on your TileButtonControl and pass a specific initialQuery argument:

     

    [Control('TileButton')]
    class TileButtonControl
    {
        public void clicked()
        {
            Args args = new Args(formStr(EcoResProductListPage));
            args.caller(element);
            // Force standard view by setting InitialQuery to NoQuery
            args.parmObject(null);
            
            FormRun formRun;
            formRun = classfactory.formRunClass(args);
            formRun.init();
            formRun.run();
            formRun.wait();
        }
    }

     

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,668 on at
    Hello, 
     
    When use pinned a view that means its suposed to be like this why you want to change to default from code. The right approach would be to not to pin the custom view instead of that keep the view saved without pin and use std view on form as default view. 

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 501 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 298

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans