Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Creating Dynamic action handler for dynamic buttons

Hi Experts,

My requirement is based on the select query , I am getting 'n' number of records in my internal table and now I need to create that 'n' number of Buttons dynamically in my Webdynpro Layout and also create same number of dynamic Action Handlers to assign the same to those dynamically created buttons.

So please let me know can we create dynamic action handlers in the code itself rather than creating manually in the view controller or component controller.


Vishal Chauhan

Former Member

Hi Vishal,

You need to create one action , while creating button dynamically assing that action.

In action declare a parameter ID type string. whenever the action trigger ID will contain BUTTON ID.

So declare your button id according to your requirement.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question