[RPG]CloseForm operation

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
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]CloseForm operation

Post by MegumiSawada »

HI,

When using OpenForm operation with Presentmode(Stack) or using PerformAction operation with Presentmode(stack), child formview with the orignal(i.e. parent) formview remain active.
I believe another job will be assigned to that child formview. (i.e. One job for parent formview and one job for child formview).
When user tap back button on child formview, parent formview will be shown. However, the job for child formview will remain active. It seems CloseForm Name(<child formview>) will kill the job for child formview.

The question is as follows;
1. Is CloseForm operation for child formview mandatory when using OpenForm operation with Presentmode(Stack) or using PerformAction operation with Presentmode(stack)?

2. If yes, where this CloseForm operation should be written?
I couldn't find any example for "CloseForm" operation provided.

3. "PerformAction" and "OpenForm" operations can be used with online formview now.
Is "CloseForm" also able to be used with online formview now?

I appreciate your kind advice.

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

Re: [RPG]CloseForm operation

Post by tsupartono »

Hi Megumi,
When the user hits the back button, that also terminates the 5250 session.
I have tested it with the current LR version on the App Store, and it behaves as expected.
Can email me your testing environment details so we can sort this out?
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]CloseForm operation

Post by MegumiSawada »

Thank you, Tony.
I will check the behavior here once more, and email you.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]CloseForm operation

Post by MegumiSawada »

Hi Tony,

I have confirmed that another job for child form(created by OpenForm/PerformAction Presentmode(Stack)) will end when I tap "Back" on child form.

Now I wonder when "CloseForm" operation will be used.
Is it available on Online form as well as Offline forms? And when will it be used?

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

Re: [RPG]CloseForm operation

Post by tsupartono »

Hi Megumi,

An example of when you'd need to use the close-form operation:
if you have your own back button (by setting the Placement of the command to Back button), or any other buttons of your own.
In this case, you'd need to invoke the close-form operation in your OnClick handler.

The close-form operation can be used in either online or offline forms.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]CloseForm operation

Post by MegumiSawada »

Hi Tony,

Oh, I see..

Thank you for your advice.

Best Regards,Megumi
Post Reply