Answers for "How to pass a map from controller to javascript function in VF page"

0

How to pass a map from controller to javascript function in VF page

public String getButtonNameMap() {
  Map<String, Id> buttonNameMap = new Map<String, Id>();
  for(LiveChatButton chatButton:[SELECT DeveloperName FROM LiveChatButton WHERE DeveloperName =:buttonNamesSet LIMIT :Limits.getLimitQueryRows() - Limits.getQueryRows()] ) {
    buttonNameMap.put(chatButton.DeveloperName,chatButton.Id); 
   }
   return JSON.serialize(buttonNameMap);
}
Posted by: Guest on May-01-2020

Code answers related to "How to pass a map from controller to javascript function in VF page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language