locked
Lightswitch HTML - custom back button from dialog window to full window RRS feed

  • Question

  • Hey guys, hopefully something one of you has come across before. I have added a custom back button to go navigate away from a particular screen which is currently set as a "Dialog" screen, the code is as follows:

    myapp.ViewStaff.Back_execute = function (screen) {
        myapp.showBrowseStaff();
    };

    however as the current view screen is a dialog, when I press the button with this code above, it opens the browse screen up within that particular dialog window... 

    is there a simple fix for this? i.e. specify what appearance you want the screen to open up as?

    thanks for any help 

    Thursday, November 12, 2015 9:31 AM

Answers

  • Hi Crezzer777,

    >> I have added a custom back button to go navigate away from a particular screen which is currently set as a "Dialog" screen

    Is this "Dialog" screen means a screen similar with an AddEdit screen?

    I create a sample project which just has two screens, Browser screen and ViewDetail screen. The ViewDetail screen has been set as Dialog. Then I add a Back button on ViewDetail screen and add the _execute code as below, it will close current ViewDetail dialog screen and back to the Browser screen.

    myapp.ViewCustomer.Back_execute = function (screen) {
        myapp.cancelChanges();
    };

    Best Regards,
    Weiwei


    • Edited by Weiwei CaiModerator Tuesday, November 17, 2015 6:57 AM
    • Proposed as answer by Angie Xu Wednesday, November 25, 2015 5:22 AM
    • Marked as answer by Angie Xu Wednesday, November 25, 2015 5:28 AM
    Tuesday, November 17, 2015 6:57 AM
    Moderator