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=""></script> <script src=""></script> <link rel="stylesheet" href="

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

How to implement “Save & New” functionality in a VisualForce Page

我与影子孤独终老i 提交于 2019-12-30 10:14:06
问题 I know that this is how to save a record <apex:commandButton action="{!save}" value="Save"/> Now I want a button to save the current record and reset the form to input another record. Something like this... <apex:commandButton action="{!SaveAndNew}" value="Save & New"/> 回答1: The URL for the new record page is the {org URL}/{3 letter object prefix}/e?". You could define your save method as follows, where m_sc is a reference to the standardController passed to your extension in it's constructor

Is there any option to connect other db in the salesforce platform? [closed]

只愿长相守 提交于 2019-12-25 08:23:26
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I would like to know whether there any option to connect to the external db in the salesforce platform. Thanks, Easwar 回答1: You cannot use an external database for your Salesforce data, if that's what you're

make a select object field in salsforce

笑着哭i 提交于 2019-12-25 02:02:32
问题 First, I'm just a beginner in salesforce and started to learn visualforce page using apex, basically I have the default object "people", and many records in it now is to write a "payment" visual page to allow people to select the people record they are master-details relationship, what apex tag should I use in both page side and apex class? similar like time selector one below: page code: <apex:inputField value="{!proxyObject.closeDate}"/> class: opportunity o = new Opportunity(); public