New answers tagged

2

All strings in Apex and on the Salesforce platform are encoded in UTF-8, full stop. All Salesforce APIs accept input in UTF-8. If you upload a text file that is not UTF-8 into a File object and attempt to process that file's content in Apex, you may encounter multiple different negative outcomes, or no change at all, depending on exactly what your code does....


0

You cannot control the order of messages . The order is defined on the basis of severity. Controlling this behavior using CSS is one option. Another option you can try is to have a static info message on visualforce page and order the apex:pagemessage and apex:pagemessages tag as per your requirement. <apex:pageMessage summary="Assets are Imported into ...


0

You cannot change the order in which different types of messages are created in a VF page. You will always get messages sorted by severity, so that the most severe, and therefore probably most important, messages are shown first. The order is FATAL ERROR WARNING INFO CONFIRM You might be able - through CSS magic - to change the order in which the div of ...


2

Salesforce orders the messages based on severity. A work-around would be to show multiple times the <apex:pageMessages /> and hide the corresponding parts. If you know that you will only have Info and Error, this could give you an idea ... <style> .hideError .errorM3 {display: none;} .hideInfo .infoM3 {display: none;} &...


Top 50 recent answers are included