You need to sign in to do that
Don't have an account?
Inline editing in visualforce pages using apex:inlineditsupport
Hi ,
We tried to bring inline editing in visualforce pages using apex:inlineeditsupport tag .
Inline edit is working on fields but buttons are not visible (Save , Save&New , Cancel) on the top .
we gave id's of showonedit and hideonedit attribute in Apex:inlineeditsupport tag but stilll save button is not visible.
Is there a way to make a boolean true while inline edit using any attribute , so that the boolean can be used in the render condition of the save button inorder to make it visible .
Any help around this would be helpful ..
Note: we have overrided edit button
Hi,
Thanks for the reply!!!!!!!!!!
We found out the solution for this..
Its by giving style="display:none" for the command button save...So that it ll be visible only during edit....
All Answers
<apex:page standardController="Contact">
<apex:form >
<apex:pageBlock mode="inlineEdit">
<apex:pageBlockButtons >
<apex:commandButton action="{!edit}" id="editButton" value="Edit"/>
<apex:commandButton action="{!save}" id="saveButton" value="Save"/>
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection >
<apex:outputField value="{!contact.lastname}">
<apex:inlineEditSupport showOnEdit="saveButton, cancelButton" hideOnEdit="editButton" event="ondblclick" changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
</apex:outputField>
<apex:outputField value="{!contact.accountId}"/>
<apex:outputField value="{!contact.phone}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Hi,
Thanks for the reply!!!!!!!!!!
We found out the solution for this..
Its by giving style="display:none" for the command button save...So that it ll be visible only during edit....