function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anand singh 83anand 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>
Raj VakatiRaj Vakati
Try this code .. you added the apex:outputLabel wrongly .. 
 
<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:pageBlock>
    </apex:form>
</apex:page>


 
public class Arrex012211{
    public Account[] myv{get;set;}
    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};
     }
}