You need to sign in to do that
Don't have an account?
anand singh 83
unknown property error "classname.dataType".
its show unknown property className.datatype =Unknown property 'Arrex012211.Name'
ApexClass
public class Arrex012211{
public Account[] myv{set;get;}
public Arrex012211()
{
Account a1=new Account(Name='ravi',Industry='baning');
Account a2=new Account(Name='Ravi',Industry='Xbaning');
Account a3=new Account(Name='Aavi',Industry='earnning');
Account[] myv=new Account[]{a1,a2,a3};
}
}
visulforce page
<apex:page controller="Arrex012211">
<apex:form>
<apex:pageBlock title="array">
<apex:pageBlockTable value="{!myv}" var="ai">
<apex:column value="{!ai.Name}"/>
<apex:column value="{!ai.Industry}"/>
</apex:pageBlockTable>
<apex:outputLabel>{!Name}</apex:outputLabel>
<apex:outputLabel>{!Industry}</apex:outputLabel>
</apex:pageBlock>
</apex:form>
</apex:page>
ApexClass
public class Arrex012211{
public Account[] myv{set;get;}
public Arrex012211()
{
Account a1=new Account(Name='ravi',Industry='baning');
Account a2=new Account(Name='Ravi',Industry='Xbaning');
Account a3=new Account(Name='Aavi',Industry='earnning');
Account[] myv=new Account[]{a1,a2,a3};
}
}
visulforce page
<apex:page controller="Arrex012211">
<apex:form>
<apex:pageBlock title="array">
<apex:pageBlockTable value="{!myv}" var="ai">
<apex:column value="{!ai.Name}"/>
<apex:column value="{!ai.Industry}"/>
</apex:pageBlockTable>
<apex:outputLabel>{!Name}</apex:outputLabel>
<apex:outputLabel>{!Industry}</apex:outputLabel>
</apex:pageBlock>
</apex:form>
</apex:page>
Raj Vakati
Try this code .. you added the apex:outputLabel wrongly ..