You need to sign in to do that
Don't have an account?
Reshmi Smiju
Issue with VF in Trailhead
HI,
I am facing issue with the below VF script. the error Incorrect parameter type for function 'not()'. Expected Boolean, received Text
<apex:page sidebar="false" standardController="Account">
<apex:form>
<apex:pageBlock title="Account Detail">
<apex:pageBlockSection columns="1">
<apex:outputField value="{!Account.Name}"/>
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Industry}"/>
<apex:outputField value="{!Account.AnnualRevenue}"/>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock title="Contact">
<apex:pageBlockTable value="{!Account.contacts}" var="con">
<apex:column>
<apex:outputLink value="{!URLFOR(!$Action.Contact.Edit, contact.Id)}">
Edit
</apex:outputLink>
<apex:outputLink value="{!URLFOR(!$Action.Contact.Delete, contact.Id)}">
Del
</apex:outputLink>
</apex:column>
<apex:column value="{!con.Name}"/>
<apex:column value="{!con.Title}"/>
<apex:column value="{!con.Phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Pls let me know, where the code went wrong. Thanks
I am facing issue with the below VF script. the error Incorrect parameter type for function 'not()'. Expected Boolean, received Text
<apex:page sidebar="false" standardController="Account">
<apex:form>
<apex:pageBlock title="Account Detail">
<apex:pageBlockSection columns="1">
<apex:outputField value="{!Account.Name}"/>
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Industry}"/>
<apex:outputField value="{!Account.AnnualRevenue}"/>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock title="Contact">
<apex:pageBlockTable value="{!Account.contacts}" var="con">
<apex:column>
<apex:outputLink value="{!URLFOR(!$Action.Contact.Edit, contact.Id)}">
Edit
</apex:outputLink>
<apex:outputLink value="{!URLFOR(!$Action.Contact.Delete, contact.Id)}">
Del
</apex:outputLink>
</apex:column>
<apex:column value="{!con.Name}"/>
<apex:column value="{!con.Title}"/>
<apex:column value="{!con.Phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Pls let me know, where the code went wrong. Thanks
There is a problem with your output link : Thanks.
All Answers
There is a problem with your output link : Thanks.
If it really helped you then please select it the best answers it will help outher also.
Thanks.
Ajay K Dubedi