Ajax (1) Apex Class (12) Apex Trigger (2) Community (2) Home Page (1) HTML (4) Integration (3) JS (7) KB (1) Label (1) Licenses (1) Listing (1) Log (1) OOPs (5) Sharing (1) Static Resource (1) Test Class (3) URI (1) Visualforce (10)

Monday 22 June 2015

ApexPages.Severity supported values

Confirm/Success: 

ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Confirm,'Sample Success Message'));


Warning:

ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Warning,'Sample Warning Message'));


 Informational:

ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Info,'Sample Informational Message'));


Error: 

ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error,'Sample Error Message'));


No comments:

Post a Comment