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

PAI error

Former Member
0 Likes
452

I designed num1,num2 and num3 fields.Add and exit push buttons.Add push button makes numbers in num1 and num2 add,display it in num3.It works fine with 'Add' push button.I modified input field such that if num1 number is less than 4,i want num1 display as invisible or inactive.How to do this.Following code is not working.Advice please.

MODULE ZNUM1 INPUT.

IF NUM1 < 4.

IF SCREEN-NAME = 'NUM1'.

SCREEN-INVISIBLE = 1.

ENDIF.

ENDIF.

ENDMODULE.

3 REPLIES 3
Read only

Former Member
0 Likes
409

Hi,

MODULE ZNUM1 INPUT.

IF NUM1 < 4.

loop at screen.

IF SCREEN-NAME = 'NUM1'.

SCREEN-INVISIBLE = 1.

modify screen.

ENDIF.

endloop.

ENDIF.

ENDMODULE

regards,

Venkatesh

Read only

Former Member
0 Likes
409

Hi,

Try it,

MODULE ZNUM1 INPUT.

loop at screen.

IF SCREEN-NAME = 'NUM1'.

IF NUM1 < 4.

SCREEN-input = 1.

else.

SCREEN-input = 0.

ENDIF.

ENDIF.

modify screen.

endloop.

ENDMODULE.

L.Velu

Read only

Former Member
0 Likes
409

Hi Gopi,

The main thing here is ... the MODULE ZNUM1 should be a PBO module.

MODULE ZNUM1 OUTPUT.

ENDMODULE.

Also, set the SCREEN-INPUT (0 for inactive and 1 for activE) and also set SCREEN-ACTIVE = '1'.

This should help.

Main thing (once again) it's a PBO module NOT PAI.

Regards,

Aditya