Hot answers tagged

9

Instead of using the "column value" method of defining the records, use the column to render an outputfield, like this: <apex:pageBlockTable value="{!attended}" var="attendee"> <apex:inlineEditSupport showOnEdit="saveButton, cancelButton" hideOnEdit="editButton" event="ondblclick" changedStyleClass="...


8

check if accessibility mode is enabled for these users. I have faced so many challenges because of accessibilty mode. https://help.salesforce.com/HTViewHelpDoc?id=accessibility_enabling.htm&language=en_US If you go to a user detail section you should be able to see accessibility mode enabled for them and it clearly states some js functions might not ...


8

Well, I've just tried the following code on my org with a newest Chrome and Firefox version and it reloads the entire page after save: <apex:page standardController="Opportunity"> <apex:detail subject="{!Opportunity.Id}" rendered="{!Opportunity.Id != null}" relatedList="True" showChatter="...


6

The Save and Cancel buttons are not displayed or hidden because they are not sent to the browser, as you have used rendered="false" on them. If you want to display them hidden initially but still have the ability to display them when needed, you need to use the "style" attribute. <apex:pageBlock > <apex:pageBlockButtons > <apex:...


5

Yes that is possible. I am not going to write the code here but I can give you an idea or approach. Option 1: What I suggest first is to create an inner class that will have 3 variables: 1) The sObject record 2) Integer to keep track of the index in the table 3) Boolean to keep track whether there were changes made to that row Once you create objects ...


4

It may not be ideal, but I got somewhere that works. After trying out Amr Ibrahim's advice, I used an <apex:actionFunction> element which re-renders the outputPanel. On the <apex:detail>'s oncomplete event, I call the JS method the actionFunction generates (the <apex:actionFunction> tag must be embedded in a <apex:form>). So my ...


4

It appears to be the use of rerender on the apex:commandButton, removing this resolves the issue (but does of course refresh the whole page, which maybe what you want anyway?). It maybe that the HTML Id for the button is being regenerated by the rerender and the logic in the page driving the inline editing support is still using the old HTML id, its worth ...


4

Not sure about outputField but for selectList and generally custom fileds this is what worked best for me with minimum "hacks" <apex:pageBlockSectionItem > <apex:outputLabel value="Month" for="monthList"/> <apex:outputPanel styleClass="requiredInput" layout="block"> <...


3

All you need to do is use a apex:outputField together with a picklist field of the selected sObject. Then the Salesforce will take care about the rest: Apex: Account acc { get; set; } public MyClass(){ acc = [Select MyPicklist__c From Account Where Id = 'XXXXX']; } VF: <apex:pageBlock mode="inlineEdit"> <apex:pageBlockSection> ...


3

Firstly, I would use a CASE instead of IFin this case since you are always checking the same field value wrap.strdealerbaseparameter. I think that function below is more readable than what you have written. {!CASE(wrap.strdealerbaseparameter, 'Retail', objPWDUT.AI_R0_Retail__c, 'Delivery', objPWDUT.AI_R0_Delivery__c, 'Booking', objPWDUT....


2

Check out Field Sets and code for dynamically accessing them in Visualforce. You can write your code once and your admin can maintain the field sets going forward without ever having to touch the code.


2

The Mass Update And Mass Edit From List View app should be able to get you where you want to be. It is correct that you will want a number field on the PaperAuthor object in order for you to have a field to sort the records. The one-to-many model which the tool's examples describe will work in this scenario. The 'one' in this case is the Paper and the '...


2

You are on the right track, There is a section in the VF workbook that addresses this very thing. You can use this section of the workbook from Salesforce Visualforce documentation. This is exactly what you are trying to accomplish, and it takes care of the identification of which row to update for you. This should give you the exact functionality you ...


2

I found this from http://boards.developerforce.com/t5/General-Development/How-to-find-Required-Fields-For-An-Object/m-p/284873#M55286 that shows how to determine if a field is " Required": //put all the fields in a map to note which ones are "required" public map<string,boolean> requiredFieldsMap {get;set;} Schema.DescribeSObjectResult r = ...


2

Added an funtion <script> $j = jQuery.noConflict(); function dummyClick() { $j('body').click(); return true; } </script> <apex:commandButton onclick="dummyClick();" action="{!saveCompanyInfo}" /> Called it before sumit fires. In order to make this working you require to have jquery ...


2

I had the same issue with the Accounts object inline editing not working. The help bubbles weren't working either for some users. Turns out on the users that it wasn't working in the Page Layout the Quick Action Log A Call was being used in the Publisher Quick Actions. I removed it and it fixed the issue. So if you are having a similar issue I would suggest ...


2

You can use MONTH formula to get no of the Month from your date For printing the name of the month use below {!CASE(MONTH(quote.ExpirationDate), 1, "January", 2, "February", 3, "March", 4, "April", 5, "May", 6, "June", 7, "July", 8, "August", 9, "September", 10, "October", 11, "November", 12, "December", "None")}


2

You can't edit or inline edit some fields. Roll up summary, formulas, most audit fields, and some special system fields, like owner fields, can't be edited inline. There's no exhaustive list of non-inline-editable fields, but experience over time should be your guide. Also, most of the fields I just mentioned can't be edited at all, even though the API.


2

If you are using VisualForce Components (e.g. apex:outputPanel), their "id" value will actually be part (the end) of a longer string that defines their id in the DOM. One quick and dirty way to find the element is to use the Ends With Selector. <apex:outputPanel id="myElement" /> <script> (function ($) { "use strict"; console....


1

There are some limitations in using compound fields. In inline mode they are read-only. Refer to following compound field limits documentation: http://docs.releasenotes.salesforce.com/he-il/spring14/release-notes/rn_schema_compound_fields_limitations.htm However you can edit them individually. Geolocation field combined with 3 fields in which 2 are ...


1

Inline editing should still work after overriding the standard view/edit buttons with a VF page controller extension. In your controller code, just stay on the same page instead of redirecting, and hence have a return null the else block of your code. /****Controller to Override Case detail view to allow for Account Services VF pages but maintain ...


1

What if instead of redirecting to a custom VF page that uses apex:detail, you redirect to a URL that suppressed the VF override and shows the default view page? That's what I did for my case object: My new/view/edit buttons all redirect to a 'Redirect' VF page that does nothing but call an extension method that determines whether to show a VF page or ...


1

Opportunities All fields are editable, except the following fields are only editable on detail pages (not on list views): Amount Stage Forecast Category Quantity Like you can see, the Stage is editable on the detail pages only. Guidelines for Editing Records with the Inline Editor


1

you can use javascript for this try window.opener.location.reload(); OR window.opener.location.reload(false); This will solve your problem.


1

Thanks Charles ... glad I helped. You can use Javascript events on the apex:detail (starting with something simple like console.debug('message') to make sure it triggers required events), then use to rerender components.


1

This message will appear if: You attempt to post an @mention and supply an ID that's not a user or group (see the ConnectApi.MentionSegmentInput class). The text that you're posting contains a string of the form {@xxx...} or {!xxx...} where xxx... is 15 or 18 characters long and is not a user or group ID. Do either of these scenarios apply to you?


1

Advanced List Views and in-line editing are available for pretty much every object except Users. The idea is being reviewed by Salesforce. Please vote for it. https://success.salesforce.com/ideaView?id=08730000000BqoNAAS


1

It cannot be done with a standard controller because you must total all the amounts across Opportunities for an Account, and that totaling must happen in a custom controller. If you can do it with JavaScript, then go for it, but I think that with Professional Edition it won't work. Plus, your standard controller would have to be the Account standard ...


1

To expand on option 2 I found it was easiest to use set functionality because my sObject comparisons were not working properly. I used the following and it worked perfectly: public PageReference saveValues(){ Set<Order_Item__c> Item1 = new Set<Order_Item__c>(ItemList); Set<Order_Item__c> Item2 = new Set<Order_Item__c>(...


1

You should be using apex:inputField rather than apex:outputField. As SFDC documentation states, outputField is... A read-only display of a label and value for a field on a Salesforce object. What your VF page should look like is something like this: <apex:pageBlock mode="inlineEdit"> <apex:pageBlockSection title="Contact Information"> &...


Only top voted, non community-wiki answers of a minimum length are eligible