[RPG/JS] Closing multiple offline forms

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
mwilliams
Posts: 17
Joined: Fri May 19, 2017 1:34 am

[RPG/JS] Closing multiple offline forms

Post by mwilliams » Thu May 25, 2017 2:26 am

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
    );

tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: [RPG/JS] Closing multiple offline forms

Post by tsupartono » Thu May 25, 2017 7:31 pm

Yes that would be the correct way.

Post Reply