You use this procedure to trigger an event to a portal from a Web Dynpro application using code snippets in Web Dynpro.
For more information, see Firing a Client Event
You have created:
Windows and views.
For more information, see Creating Components
Context attribute of string type.
For more information, see Creating Context Trees Manually
In the Web Dynpro perspective, choose
In the Web Dynpro Explorer, select the required view.
Choose
using the right mouse button.Drag Fire Portal Event snippet and drop it in the appropriate user code area of the Java editor.
In the confirmation dialog box, choose Yes to insert the snippet in the Java editor.
In the Insert Snippet: Fire a Portal Event dialog box, enter the necessary details such as, Namespace, Name and so on. Then select one of the following depending on your requirements:
Publish context attribute values
Publish string values
Do not publish data
Choose Insert.