Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member191044
Active Contributor
0 Kudos

I came across the requirement to create dynamically resizing TextEdits in a popup several times and failed as many. For me there seemed to be no way to achieve this in WD4J despite that this is a very common requirement and should be easily done. More or less accidently I found a way to do so.

First of all I have to say that I don't know if this is a hidden feature, a bug or a bit of both. I can't say for what versions it works or if it works in future releases but for 7.31 SP11 it does.

I assume that you are aware of how to create WD4J projects and popups. For those who don't, here is a little guide. It's quite old but it basically works the same way for higher versions --> http://scn.sap.com/docs/DOC-2580

So when you have created your popup view where the TextEdit will be placed, there are some simple configurations to do in the properties in the view designer.

1. Set the RootElement to layout "FlowLayout", the width and height to "100%"

2. Insert a TransparentContainer (Needed for line break if you want to place e.g. buttons under the TextEdit) and set the layout to "FlowLayout", width to "100%" and the height to about "85%". You will have to play with the Height a bit depending on how many elements are shown under your TextEdit. 100% would take the whole space and overlay all your popup.

3. Insert a TextEdit into your TransparentContainer and set the width and height to "100%".

4. Insert at least a button to close the popup and all of the further elements you need. Now delploy the project and test it. You should now have created a dynamically resizing TextEdit in a popup.

Please leave a rating / feedback in comments if it worked / didn't worked for you and on what version you have tried it.

Good luck and have fun,

Tobias

Labels in this area