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

checkbox

Former Member
0 Likes
340

I am trying to turn on my check box in PBO.. but it is not getting turned on..

IN pbo, i set v_chkbox = 'X'. and my screen variable is V_CHKBOX .. Shouldn't this turn on my checkbox in PBO?

What could i be doing wrong?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
315

Yes, it should. Are you sure that your field name in the screen is V_CHKBOX?

report zrich_0002 .

data: v_checkbox(1) type c.

start-of-selection.

  call screen 100.
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

  v_checkbox  = 'X'.

endmodule.
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module user_command_0100 input.

endmodule.

This works perfectly for me. My screen field is named as "v_checkbox".

Regards,

Rich Heilman

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
316

Yes, it should. Are you sure that your field name in the screen is V_CHKBOX?

report zrich_0002 .

data: v_checkbox(1) type c.

start-of-selection.

  call screen 100.
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

  v_checkbox  = 'X'.

endmodule.
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module user_command_0100 input.

endmodule.

This works perfectly for me. My screen field is named as "v_checkbox".

Regards,

Rich Heilman

Read only

Former Member
0 Likes
315

somewhere it was getting cleared..Thanks and Sorry for the trouble..