Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Module Pool Program Issue

sivag_s
Explorer
0 Kudos

Hi Experts,

In module program I have to screens fields viz., Release and Reference(IO Field). I have coded such a way that, If I enter some some values in Release, same will be displayed in Reference. To achieve this, when I give some values in Release field and Press Enter, in PAI I passed the same value to Reference. My issue is, If I again enter new value to Reference field and press Enter again its taking the Release Fields Value. But I need the newly entered value. How can I achieve this? Thanks in Advance.

1 ACCEPTED SOLUTION

nikolayevstigneev
Contributor
0 Kudos

Hi, Sivag!

If I got you right, you need to overwrite the value in Reference field only if the value in Release field has been changed.

To achive this you can try something like that in your screen logic:

FIELD Release MODULE release ON REQUEST.

MODULE release INPUT.

  Reference = Release.

ENDMODULE.

Addition ON REQUEST will trigger the module only in case user has input something in Release field.

4 REPLIES 4

former_member202818
Active Contributor
0 Kudos

Hi Sivag,

do this..

have a new variable release_1.

if release_1 <> release(screen field variable).

Reference = Release.

release_1 = release.

endif.

Regards

Sreekanth

nikolayevstigneev
Contributor
0 Kudos

Hi, Sivag!

If I got you right, you need to overwrite the value in Reference field only if the value in Release field has been changed.

To achive this you can try something like that in your screen logic:

FIELD Release MODULE release ON REQUEST.

MODULE release INPUT.

  Reference = Release.

ENDMODULE.

Addition ON REQUEST will trigger the module only in case user has input something in Release field.

0 Kudos

Thank you all for your reply.

Hi Nikolay Evstigneev,

I achieved by applying your idea.

Thank You.

former_member192842
Participant
0 Kudos

Hi,

based on your requirement, you can follow any of the steps below

1. In PAI use can use the field statement as mentioned by Nikolay

     FIELD Release MODULE assign ON REQUEST or

     FIELD Release MODULE assign ON INPUT.



2. In PBO or PAI you can use the below code

     on change of Release.

     reference = release

     endon



3.In PBO or PAI You can assign to reference when it is empty


if reference is initial and release is not initial.

reference = release

endif.


Regards

Anand