locked
HTML refresh after edit RRS feed

  • Question

  • Hi,

    anyone has any iddea why this won't refresh my screen?

    myapp.GH_Reprint_Bills.rows_postRender = function (element, contentItem) {
       
        $(element).dblclick(function () {
            var filter = "(Reprint_BillsID eq " + msls._toODataString(contentItem.data.Reprint_BillsID, ":Int32") + ")";
            myapp.activeDataWorkspace.GH_GraweHRData.GH_Reprint_Bills.filter(filter).execute().then(function (result) {
                myapp.showGH_Reprint_Bills_Add(result.results[0], {
                    afterClosed: function (addNewScreen, navigationAction) {
                        if (navigationAction === msls.NavigateBackAction.commit) {
                            screen.GH_Reprint_Bills_Selects.refresh();
                        }
                    }
                });
            });
        });
        
     };

    Thursday, June 26, 2014 1:59 PM

Answers

  • Try:

    myapp.GH_Reprint_Bills.rows_postRender = function (element, contentItem) {
        var objscreen = contentItem.screen;
        $(element).dblclick(function () {
            var filter = "(Reprint_BillsID eq " + msls._toODataString(contentItem.data.Reprint_BillsID, ":Int32") + ")";
            myapp.activeDataWorkspace.GH_GraweHRData.GH_Reprint_Bills.filter(filter).execute().then(function (result) {
                myapp.showGH_Reprint_Bills_Add(result.results[0], {
                    afterClosed: function (addNewScreen, navigationAction) {
                        if (navigationAction === msls.NavigateBackAction.commit) {
                            objscreen.GH_Reprint_Bills_Selects.refresh();
                        }
                    }
                });
            });
        });
        
     };


    Unleash the Power - Get the LightSwitch HTML Client book

    http://LightSwitchHelpWebsite.com

    • Marked as answer by Pratura Friday, June 27, 2014 5:48 AM
    Thursday, June 26, 2014 5:45 PM

All replies

  • Try:

    myapp.GH_Reprint_Bills.rows_postRender = function (element, contentItem) {
        var objscreen = contentItem.screen;
        $(element).dblclick(function () {
            var filter = "(Reprint_BillsID eq " + msls._toODataString(contentItem.data.Reprint_BillsID, ":Int32") + ")";
            myapp.activeDataWorkspace.GH_GraweHRData.GH_Reprint_Bills.filter(filter).execute().then(function (result) {
                myapp.showGH_Reprint_Bills_Add(result.results[0], {
                    afterClosed: function (addNewScreen, navigationAction) {
                        if (navigationAction === msls.NavigateBackAction.commit) {
                            objscreen.GH_Reprint_Bills_Selects.refresh();
                        }
                    }
                });
            });
        });
        
     };


    Unleash the Power - Get the LightSwitch HTML Client book

    http://LightSwitchHelpWebsite.com

    • Marked as answer by Pratura Friday, June 27, 2014 5:48 AM
    Thursday, June 26, 2014 5:45 PM
  • That worked great. :-)

    Thanks!

    Friday, June 27, 2014 5:48 AM