Page 1 of 1

[RPG]CloseForm operation

Posted: Tue Dec 01, 2015 8:27 pm
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

Re: [RPG]CloseForm operation

Posted: Wed Dec 02, 2015 9:51 am
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?

Re: [RPG]CloseForm operation

Posted: Mon Dec 07, 2015 8:26 pm
by MegumiSawada
Thank you, Tony.
I will check the behavior here once more, and email you.

Re: [RPG]CloseForm operation

Posted: Fri Dec 11, 2015 4:43 pm
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

Re: [RPG]CloseForm operation

Posted: Mon Dec 14, 2015 3:22 pm
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.

Re: [RPG]CloseForm operation

Posted: Mon Dec 14, 2015 7:58 pm
by MegumiSawada
Hi Tony,

Oh, I see..

Thank you for your advice.

Best Regards,Megumi