visualforce

how to pass SAML attributes from service provider(Salesforce) to Visualforce page Controller

馋奶兔 提交于 2021-02-10 20:20:39
问题 SAML response from the identity provides(External) contains the Employee Id as a separate attribute which i need to display in Salesforce VisualForce Page. So help me in passing the attributes from saml response to a VF Page once authenticated via SSO . Thanks in advance 回答1: Do you have a custom SAML handler class? You can generate a template one in SSO settings (bottom of the form, in JIT section) or just look around in documentation. https://developer.salesforce.com/docs/atlas.en-us

Why can't I iterate through a list of a Wrapper class in Salesforce Visualforce?

拜拜、爱过 提交于 2021-01-29 07:27:21
问题 I am trying to iterate through a list of records inside a wrapper class and show them on a Visualforce page. The custom object is called Campaign_Products__c, and the wrapper class is meant to show if the product has been selected by the user to add to a "cart". Apex Controller code (extraneous bits removed): public with sharing class CONTROLLER_Store { ... public List<productOption> cpList { get; set; } public class productOption { public Campaign_Product__c product; public Boolean inCart;

In Visualforce pages, is it possible to use the command line in the Firebug console?

与世无争的帅哥 提交于 2020-01-24 20:43:07
问题 On Visualforce pages, commands run in the Firebug console command line don't seem to work. For example $(".myClass").show(); returns TypeError: $(".moreInfo") is null . I think this is because the Visualforce is all inside an iframe, so my jQuery is included inside the iframe and all the elements I'm trying to select are also inside this iframe. I'm looking for a workaround if anyone knows of one. 回答1: If the user viewing the Visualforce page is in development mode, the Visualforce page will

CSS Modal window and iFrame

两盒软妹~` 提交于 2020-01-15 10:59:12
问题 The following CSS opens a modal window within the iframe as it should. But I would like the modal popup to overlay the parent and not just within the ifram. Is there a way to modify the CSS to get the popup to overlay the parent? Just as a side note, the id of the iFrame may change, so I won't be able to rely on a specific id. All suggestions are appreciated, I'd even consider another tool such as javascript. <iframe frameborder="no" height="200px" id="066E0000001KmQ9" marginheight="0"

Use jqgrid to filter in the same way searching is done

耗尽温柔 提交于 2020-01-14 05:26:12
问题 Let me see if I can explain this... I have a product grid, searching works fine, I have set up a custom button to filter on specific items in the json that are not in the grid, right now I am making an ajax call (using VisualForce) to get the json then I'm storing it in a global variable before using the json to load the grid, I then load the grid. When a filter is chosen I build a temp array of the json that contains the filter and then set the product grid to the new array. I then have a

How to unit test works in salesforce?

吃可爱长大的小学妹 提交于 2020-01-11 09:42:09
问题 I've done writing code on salesforce and in order to release the unit tests have to cover at least 75% . What I am facing is that the classOne that calls methods from classTwo also have to cover classTwo 's unit test within classOne even though it is done in classTwo file already. File MyClassTwo public with sharing class ClassTwo { public String method1() { return 'one'; } public String method2() { return 'two'; } public static testMethod void testMethod1() { ClassTwo two = new ClassTwo();

Lookup field in salesforce is null when saving

爷,独闯天下 提交于 2020-01-06 12:36:23
问题 I have a problem with a standard lookup field. When I try to save it, it has value null when I use autocomplete or just type the name but it works when I use the lookup popup by clicking the lookup-icon. This is (part of) the code. (Not all of it, but even this simple controller and page doesn't work...) Controller: public with sharing class UnresolvedItemsController { public list<TaskItem> myUnresolvedTaskItems {get;set;} public class TaskItem { public string taskId {get;set;} public string

visualforce javascript remoting doesn't work properly

落花浮王杯 提交于 2020-01-05 08:11:52
问题 I'm trying to create some html elements as a reponse to a button click in my visualforce page, and i am using javascript remoting, but no matter what i do the page keeps refreshing after the button click. my visualforce page: <apex:page Controller="BpmIcountPayment"> <head> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1

How to convert Salesforce rich text editor to a “full mode” editor?

痞子三分冷 提交于 2020-01-01 16:58:31
问题 With the spring '12 coming over these days, the old "hack" to convert the rich editor will not work any more. What can be done to retain full CKEditor functionality after spring 12? 回答1: New CKEditor is object rather than URL based and a new approach is needed. In case anyone needs it, the following script will replace factory editor layout with a full version allowing additional formating options (fonts, colors, etc). Note, I set the height to 600px, adjust for your own needs. Also, as