You need to sign in to do that
Don't have an account?
Sindhu Ambarkar
The inline edit-enabled dependent picklist 'picklist subcategories' requires its controlling field 'Industry' to be present on the page
Hi,
Iam getting this error in visualforce page while compiling this program.
<apex:page standardController="Account">
<apex:form>
<!-- Don't mix a standard input field... -->
<apex:inputField value="{!account.industry}"/> //controlling field
<apex:outputField value="{!account.picklist_subcategories__c}"> //dependent
<!-- ...with an inline-edit enabled dependent field -->
<apex:inlineEditSupport event="ondblClick" />
</apex:outputField>
</apex:form>
</apex:page>
Can anyone explain this
Iam getting this error in visualforce page while compiling this program.
<apex:page standardController="Account">
<apex:form>
<!-- Don't mix a standard input field... -->
<apex:inputField value="{!account.industry}"/> //controlling field
<apex:outputField value="{!account.picklist_subcategories__c}"> //dependent
<!-- ...with an inline-edit enabled dependent field -->
<apex:inlineEditSupport event="ondblClick" />
</apex:outputField>
</apex:form>
</apex:page>
Can anyone explain this
This is working as designed, you cannot mix a inline edit-enabled fields with regular input fields from the same dependency group. For example, don’t mix a standard input field for a controlling field with an inline edit-enabled dependent field i.e in your case controlling field is "industry" which is a standard field.
As a workaround, you may use <apex:outputPanel></apex:outputPanel>, As refreshing fields individually isn’t recommended and might result in inconsistent undo/redo behavior.
Please mark this answer as best answer if this helps.
Regards,
Ankur
I didnt understand why am getting the error in the above example.Can you please elaborate it
Thanks,
Karanraj (http://www.karanrajs.com)
Agriculture//controlling fieldapple farms //dependent
i didnot understand the purpose of inlineeditsupport
<apex:form >
<apex:pageBlock >
<apex:pageblockSection >
<apex:outputField value="{!account.Industry}">
<apex:inlineEditSupport event="ondblClick" />
</apex:outputField>
<apex:outputField value="{!account.Subcategories__c}">
<apex:inlineEditSupport event="ondblClick" />
</apex:outputField>
</apex:pageblockSection>
</apex:pageBlock>
</apex:form>
</apex:page>