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

Make Select rows and columns as read only in Table Control

Private_Member_17805
Participant
0 Likes
898

Hi All,

I would like to know how to make certain cells in a Table Control as display only.

Table control should look like-(Those in bold are read only or in display mode)

<b>Name1 Idno1 </b> Address1

<b>Name2 Idno2</b> Address2

<b>Name3 Idno3 </b> Address3

<b>Name4 Idno4</b> Address4

(Blank row to enter name idno and address)

(Blank row to enter name idno and address)

(Blank row to enter name idno and address)

My table control should display all the above fields the way it is above of which first two colums and 4 rows should be read only,and the rest of the empty rows in the TC should be in change mode.i.e it must have provision to add new rows but not change the first two columns of existing rows.

In short I am looking at solution to hide particular no of rows and columns and <b>not the entire column.</b>

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
655
2 REPLIES 2
Read only

gopi_narendra
Active Contributor
0 Likes
655

In the PBO of the table control loop. just write these statements

NAME and IDNO considering the fields on the screen.

and WA_TAB is the table work area being passed to the table control to display the rows.

if not WA_TAB-NAME is initial and not WA_TAB-IDNO is initial.

loop at screen.

if screen-name = 'NAME' or

screen-name = 'IDNO'.

screen-input = <b>0</b>.

modify screen.

endif.

endloop.

endif.

which means that the fields are disabled only if NAME and IDNO are not initial.

Regards

- Gopi

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
656