Alignment of buttons on custom filter screens

By | November 18, 2011

When we add new custom screens in Sage CRM, we always make sure that the look and feel of the screen is in synch with the standard screens in CRM. List and filter screen are amongst the common screens which we create for the custom entities. However there can be a little catch in adding buttons following various alignment patterns below the filter screen. For example in the below screen shot there is a custom screen created and the buttons ‘Filter’ and ‘New’ are added. However you can see that the buttons are horizontally aligned rather than vertical.

Vertical alignment

Filter buttons

Below is code snippet you can write in your custom page to achieve this.
with (FilterBox)
{
 NewLine = false;
 ButtonLocation = Bottom;
 ButtonAlignment = Left;
 AddButton(FilterButton);
 AddButton(NewButton);
}
Scenario2:
Filter Buttons
Below is code snippet you can write in your custom page to achieve this.
with (FilterBox)
{
 NewLine = false;
 ButtonLocation = Bottom;
 ButtonAlignment = Left;
 AddButton(FilterButton+”<BR>”+ NewButton);

If you find this content useful, please drop us an email at crm@greytrix.com.