Hi Cynthia,
I think there is some misunderstanding. I come to that. But: I have a nice solution for what I want.
What I mean with "keeping the width" is as follows:
(in proc report)
define adres / order style=[width=110pt];
So I set the width of the column and I don't want this to be changed! The output-table (HTML) must always look the same.
The solution I am using is partly from the next link:
http://www.blakems.com/archives/000077.html
In the Proc Report statement I use the following Style-blocks:
style(report)=[................. htmlstyle="table-layout:fixed"]
style(column)=[................. pretext='
' posttext='']
To fix the column-width and to prevent long text to break to a new line.
And in a call define statement I use the following:
call define (_col_, 'style', 'style=[htmlstyle="text-overflow:ellipsis; overflow:hidden; white-space:nowrap" flyover="'||trim(adres)||'"]');
The result is:
- the cell-width keeps the same,
- in the cell you only see that part of the text that will fit in, but the "..." suggests there is more, (that is what I meant by "hiding ")
- a popup will show the complete text.