Page 1 of 1

[RPG/JS] Closing multiple offline forms

Posted: Thu May 25, 2017 2:26 am
by mwilliams
I was wondering what would be the best way to close multiple offline forms. I have an app that I might drill down into multiple forms but when I take a certain action I need the app to go back to the beginning. Currently, since I know how many forms that I opened I am just performing multiple closeform operations like below. It seems to work though there is a little flicker. Just wondering if there is a better solution.

Code: Select all

lrexec(
       function () {
            this.q_setProperty("RunOperation.Type", "CloseForm");
        },

        function () {
            this.q_apply();
        },

        function() {
            this.q_setProperty("RunOperation.Type", "CloseForm");            
        },

        null
    );

Re: [RPG/JS] Closing multiple offline forms

Posted: Thu May 25, 2017 7:31 pm
by tsupartono
Yes that would be the correct way.