You are on page 1of 5

Creating a button in CRM WEB UI

By Vishesh Agarwal, Sparta Infotech

Introduction:
This tutorial deals with how you can add button in any view on the overview page and trigger any event
on it.

Steps:
First press F2 on the above screen to get its view name.
Then go to that component and click on request processing drop down.

Then right click on DO_PREPARE_OUTPUT METHOD.

Then go to its htm page. Now create an attribute. Then double click on it and add the below code on it. .And click on REDEFINE.

. <thtmlb:toolbar id = "HeaderToolbar" buttons = "<%= controller->gt_button %>" maxButtonNumber = "15" foreignUse = "TRUE" /> Then in order to trigger any event on it right click on event handler and create a new event.Add below code.

Now you can go to that event and add your desired code in it. .Then enter the event name and the event will be created.

.Summary: This is the way to create a new button in any view and trigger an event on it.