Application Development and Automation 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: 
Read only

Field value change

Former Member
0 Likes
2,266

Hi Experts,

I`ve a requirement as to find which field on the screen has been changed and based on that I`ll have to clear off two fields on the screen.

Is there any way/command to make out as to which field on the screen has been changed..

Regards,

Farhana.

Edited by: Farhana Sheriff on Feb 4, 2008 9:39 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,362

Hi,

use FIELD...MODULE...ON REQUEST statement.Module will triger for single field.

CHAIN

FIELD...MODULE...ON CHAIN REQUEST

ENDCHAIN

Module will triger for more than one fields value changes.

Another way is keep values into workarea(Backup) in PBO.

compare workarea valus and screen field values in PAI.

L.Velu

Hi,

use FIELD...MODULE...ON REQUEST statement.Module will triger for single field.

CHAIN

FIELD...MODULE...ON CHAIN REQUEST

ENDCHAIN

Module will triger for more than one fields value changes.

Another way is keep values into workarea(Backup) in PBO.

compare workarea valus and screen field values in PAI.

L.Velu

3 REPLIES 3
Read only

Former Member
1,362

Hi Farhana,

If you are working with a custom screen, i.e. developed by you, then you can do the following.

The following command:

 FIELD <screen_field> MODULE <md_module> ON REQUEST. 

will trigger whenever the value is changed in screen field <screen_field>.

Put the above code in your PAI section of flow logic.

Say you need to clear fields <field1> and <field2> when value in <screen_field> changes, then after having put the above block of code in your flow logic PAI section code the module as so:


MODULE <md_module> ON INPUT.
 CLEAR : <field1> , <field2>.
ENDMODULE.

Cheers,

Aditya

Read only

Former Member
0 Likes
1,363

Hi,

use FIELD...MODULE...ON REQUEST statement.Module will triger for single field.

CHAIN

FIELD...MODULE...ON CHAIN REQUEST

ENDCHAIN

Module will triger for more than one fields value changes.

Another way is keep values into workarea(Backup) in PBO.

compare workarea valus and screen field values in PAI.

L.Velu

Read only

Former Member
0 Likes
1,362

Hi,

Thanks for your responses.

Regards,

Farhana

Edited by: Farhana Sheriff on Feb 5, 2008 9:12 PM