‎2007 Jun 29 6:31 AM
hi all
In a dialog program on a click of push button I want to enter new fields in Input fields without moving to new screen and that entry to be stored in a table.
Guys I am new to the dialog programming. Kindly help me out!
‎2007 Jun 29 6:44 AM
HI,
You need at the fields on the screeen and by default you need to disable them in PBO module and then when you push the button in the PAI module set a flag then in the PBO module based on the flag ENABLE the fields.
As follows.
In the PBO module enter this code
LOOP AT SCREEN.
IF SCREEN-NAME = 'YOUR FIELD NAME' and FLAG IS INITIAL.
SCREEN-ACTIVE = 0.
ELSEIF FLAG = 'X'.
SCREEN-ACTIVE = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
In the PAI add module
IF OK_CODE = 'PUSH_BUTTON_FCODE'.
FLAG = 'X'.
ENDIF.
Regards,
Sesh
.
‎2007 Aug 09 3:05 PM
HI,
in pbo event, use the SCREEN table attributes, ,,,,,ie, for PBO event, u have to use that,
on pbo
loop at screen.
screen-input = 1.
-
endloop.