cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically create TRAY view element.

russell_day2
Participant
0 Kudos

I am trying to create a little menu using a stack of trays with related buttons under each tray.

I cannot find an example of a dynamically created tray. Every instance of NEW_TRAY in my NW07 system is generated and the system won't show it to me so I can't see how to use it.

The problem that I get is an assertion failure after a test 'IF VIEW_ELEMENT IS NOT BOUND.' Obviously I have a null reference somewhere, but with no documentation (that I can find) I need an example.

I would settle for any container-like object at all. Doesn't have to be a tray. I cannot even get it to work with a transparent container. You can't even see it - so how can it be complicated?

Please form an orderly line, and no fighting to be first with the solution!

Russ.

Accepted Solutions (1)

Accepted Solutions (1)

rainer_liebisch
Contributor
0 Kudos

Hello Russ,

I have used a container in the message area. Have a look at CL_WDR_MESSAGE_AREA~CREATE_MSG_LIST for example.

Regards,

Rainer

russell_day2
Participant
0 Kudos

Rainer,

Thank you for your reply.

My problem was that I was not assigning a layout to the tray. Your excellent example solved my problem in seconds.

Please tell your boss that I said you should get a week of holiday.

Russ.

Answers (0)