09-08-2008 12:21 PM
Hi all
Is there a way to change the no of rows dynamically.
I have a requirement that at run time , depending on a condition, I have to change the no of rows in the table control to 1 row.
Is this possible to do?If else How?
Thanks.
09-08-2008 12:28 PM
Use variable <table_control_name>-lines. Change it's value at it's screen PBO.
Regards.
Valter Oliveira.
09-08-2008 12:57 PM
Hi Valter,
How to modify the table control after setting the value of lines as 1?
Can you illustrate this with an example?
Thanks
09-08-2008 2:14 PM
You can redefine table control attributes eachtime PBO is called, because those attributes are dynamic. So although you defined tc-lines as 1 in first PBO execution, you can redefine to 2 if some condition is achieved,
One idea could be to create a global var, called tc_lines which is initialized as 1. In your PBO you shoud use: <tc>-lines = tc_lines.
In PAI, when you obtain your condition, you shoud here add or subract one from this global variable.
Regards,
Valter Oliveira.