Open Custom Module’s “Create view” or “Record view” on full screen

Whenever I open a custom module’s “Create view” or “Record view”, by default it automatically opens in the drawer.
It would be great if both “Create and Record View” opens on the new full page rather than the drawer.
For an instance look at the Quotes module.
Whenever I create a new quote it opens on the full page.
It would be great if there is any way to do the same for the custom module too.
Thanks in advance,
Parents
  • Hi

    It is easily doable via routes.

    However, if you don’t know how routes work in the SugarCRM then we recommend you to read out the Sugar Developer’s guide on User interface and routes. I’ve attached the link below.

    https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.1/User_Interface/Routes/

    For the quotes module, you'll find a custom route that redirects the create view to a full-screen page instead:

    The Quotes module uses a custom route that allows it to open on the full page when open the create view.

    As mentioned below

    modules/Quotes/clients/base/routes/routes.js

    var routes = [{
    
        name: 'quotesCompatibility',
    
        route: 'Quotes/create',
    
        callback: function() {
    
            app.router.record('Quotes', 'create');
    
        }
    
    }];
    
    app.router.addRoutes(routes);

     

    Outright Store

Reply
  • Hi

    It is easily doable via routes.

    However, if you don’t know how routes work in the SugarCRM then we recommend you to read out the Sugar Developer’s guide on User interface and routes. I’ve attached the link below.

    https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.1/User_Interface/Routes/

    For the quotes module, you'll find a custom route that redirects the create view to a full-screen page instead:

    The Quotes module uses a custom route that allows it to open on the full page when open the create view.

    As mentioned below

    modules/Quotes/clients/base/routes/routes.js

    var routes = [{
    
        name: 'quotesCompatibility',
    
        route: 'Quotes/create',
    
        callback: function() {
    
            app.router.record('Quotes', 'create');
    
        }
    
    }];
    
    app.router.addRoutes(routes);

     

    Outright Store

Children