Button
Returns the text, image, and link for a Sage CRM button. These buttons are typically the generic buttons that appear on screens and containers. For example, you can use this method to add buttons that open web sites or ASP pages.
Parameters
- Caption. Specifies the caption for the button. The caption is translated based on the user's language, provided that a matching translation exists for the caption.
- ImageName. Specifies the image to display on the button. The image must be stored in the Img folder located in the Sage CRM installation directory.
- URL. Specifies the URL to link the button to. This can be a web address or a custom page located in the CustomPages folder in the Sage CRM installation directory.
- PermissionsEntity. Specifies the entity name. Allows you to add the button based on a users security profile for an entity.
- PermissionsType. Specifies permissions to apply. This can be VIEW, EDIT, DELETE, or INSERT, depending on the action the button performs. Allows you to add the button based on a users security profile for an entity.
- Target. Sets the TARGET property of the button's anchor.
Examples
CRM.AddContent(CRM.Button("My button","MyImage.gif", CRM.Url("MyPage.asp")));
Response.Write(CRM.GetPage());
Displays a button named My button. This button contains an image stored in the MyImage.gif file and is linked to the MyPage.asp file.