2009 Mar 03 5:42 PM
I have a table control in a subscreen that I want to limit to a maximum of 4 rows of data. The table control is currently displaying 4 rows on the screen, so the appearance of the table control is the way I want it, with the exception of the verticle scroll bar. I would like to eliminate it.
While I can control the number of entries the customer makes in the control table by returning an error message if they enter more than four, I would prefer to not allow them to enter more than four rows in the first place. The verticle scroll bar seems to be a permanent fixture to the table control, and appears no matter how many rows of the table control have data in them.
For example, even if the "DESCRIBE TABLE internal_table LINES table_control-lines" statement in the PBO has a value of zero, I still have the verticle scroll bar.
In another forum entry I noticed the suggestion to use the "SET PF-STATUS 'STAT'" statement. However, the parent screen already has SET PF-STATUS statements that cannot be changed without messing up some of the other subscreens, so that doesn't appear to be an option.
Any other suggestions? Thank you.
2009 Mar 03 5:46 PM
I have a table control in a subscreen that I want to limit to a maximum of 4 rows of data. The table control is currently displaying 4 rows on the screen, so the appearance of the table control is the way I want it, with the exception of the verticle scroll bar. I would like to eliminate it.
While I can control the number of entries the customer makes in the control table by returning an error message if they enter more than four, I would prefer to not allow them to enter more than four rows in the first place. The verticle scroll bar seems to be a permanent fixture to the table control, and appears no matter how many rows of the table control have data in them.
For example, even if the "DESCRIBE TABLE internal_table LINES table_control-lines" statement in the PBO has a value of zero, I still have the verticle scroll bar.
In another forum entry I noticed the suggestion to use the "SET PF-STATUS 'STAT'" statement. However, the parent screen already has SET PF-STATUS statements that cannot be changed without messing up some of the other subscreens, so that doesn't appear to be an option.
Any other suggestions? Thank you.
2009 Mar 03 5:46 PM
2009 Mar 03 9:03 PM
Avinash,
Thank you for your reply. I tried the suggestions in the link, and while some of them altered the appearance of the table control itself, none of them altered the scroll bar.
2009 Mar 03 5:58 PM
Try this way in PBO
tabcntl-lines = 4. " Make the default to 4
a®
2009 Mar 03 9:09 PM
Changing the table_control-lines to 4 did not get rid of the scroll bar, but it did give me the idea to try setting it to 0.
Doing that did not remove the scroll bar itself, but did disable it, so the table control is unable to scroll.
In an ideal world I'd like to see the scroll bar disappear completely, but since its functioning the way I want it to I'll go with that for now.
Thank you.
Also, I found that I could allow the program logic do whatever it needed to do with table_control-lines in the PBO, to format the table control the way I wanted it. Then right before exiting the PBO, I set table_control-lines to zero, which disabled the vertical scroll bar.
Edited by: Dick Fischer on Mar 5, 2009 2:43 PM
2009 Mar 05 7:59 PM
Also, I found that I could allow the program logic do whatever it needed to do with table_control-lines in the PBO, to format the table control the way I wanted it. Then right before exiting the PBO, I set table_control-lines to zero, which disabled the vertical scroll bar.
Thanks for sharing info.
a®
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |