‎2006 Sep 05 4:26 PM
Hello,
I have to create an ALV(not using OO) with a pushbutton column. The requirement is as follows: the grid contains a text column. When the text contains more than 100 characters, a column with a pushbutton (named: More...) is selected by the user to view the rest of the text description. Scrolling within the text column is not desired.
Can someone tell me how to define the column as a pushbutton. How about how to disable the pushbutton for the row, when the text is less than 100 characters? I am thinking that I can handled the event in the user_command area of the ALV.
Can this be done?
Regards,
Anna-Liza
‎2006 Sep 05 4:42 PM
Hi
You can show a field as ICON (it menages it in catalog table) and assign the HOTSPOT option to it.
In this way the field should behave itself like a push button.
As soon as you know the row you can decide which action has to be done: to show or not to show the rest of text:
you can do it activing the event HOTSPOT_CLICK.
Max
‎2006 Sep 05 4:42 PM
Hi
You can show a field as ICON (it menages it in catalog table) and assign the HOTSPOT option to it.
In this way the field should behave itself like a push button.
As soon as you know the row you can decide which action has to be done: to show or not to show the rest of text:
you can do it activing the event HOTSPOT_CLICK.
Max
‎2006 Sep 05 5:53 PM
Hello Max,
thanks for the suggestion. I tried it and it works.
Regards,
Anna-Liza