There is a saying “Where there's a will there's a way”, for not only me, this is true for everyone who wants to achieve success in his or her life. Whenever I caught in difficulties, I look for another way or help and always I found right solution. Similarly when I caught in add/ remove button to a Work Area Toolbar problem in CRM (Customer Relationship Management) and was unable to find solution, I was a little upset. I lost my hope but at that time, I memorised this saying and made my mind relaxed and calm.
Then again, I started looking for right solution and I found that, may you also facing such issue so let’s know about the right path to fix it.
To add or remove buttons in a toolbar you need to follow the below given steps…
On which you want to add or remove a button, first have a look at that page’s Controller Implementation Class of the View or Overview Page.
You will find back the method in this class- IF_BSP_WD_TOOLBAR_CALLBACKGET_BUTTONS (Where you will find a list of buttons filled and you can add or remove those buttons.)
You will find about back the method- IF_BSP_WD_TOOLBAR_CALLBACKGET_NUMBER_OF_VISIBLE_BUTTONS (Where you will find defined number of visible buttons.)
These are some simple steps, which I came across and found the solution to add or remove button to a work area toolbar. Hope if you are also facing such problem, this info will help you or in case you are facing any other problem don’t lose the hope just fight with the situation and look for solution.
All the best.