• sharstream
  • NEWBIE
  • 0 Points
  • Member since 2016
  • Salesforce developer
  • ABB


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi guys,

I am beginner in salesforce developer I am doing a few tasks with visualfore pages and apex classes.
I am trying to develop a Ckeckbox with selectedAccounts to show into another table. But when I save and test my code to server in the Self-Salesforce Portal prompt error, Visualforce Error: Unknown property 'VisualArrayList.selected'. I can't finish my job all my codes are tested already. Below I attached part of my application basically. Please any help.

Thanks in advance.

Source Code: Visualforce page

<apex:page sidebar="false" controller="DisplayAccount">
<fieldset>
<legend>Update Account</legend>
</fieldset>
<apex:sectionHeader title="Task 3"/>
<apex:form>
<apex:pageBlock title="Accounts with Checkboxes">
<apex:pageMessages/>
<apex:pageBlockSection title="List of All Available Accounts">
<apex:dataTable value="{!accounts}" var="acc">
...
</apex:page>

Apex Classes called DisplayAccount

public with sharing class DisplayAccount {
public Account account_temp {get; set;}
public DisplayAccount(){
account_temp = new Account();
}
public DisplayAccount(ApexPages.StandardController controller){
//account_temp = (Account) controller.getRecord();//add account by Id
}
//task 2
public List<Account> acc{get; set;}
public String searchString{get; set;}
public void findAccount(){
String searchQuery ='SELECT Id, Name, BillingState, Phone, Website FROM Account WHERE Name LIKE \'%'+searchString+'%\' LIMIT 20';
acc = Database.query(searchQuery);//query to select by input parameter account
}
... continued
Hi guys,

I am beginner in salesforce developer I am doing a few tasks with visualfore pages and apex classes.
I am trying to develop a Ckeckbox with selectedAccounts to show into another table. But when I save and test my code to server in the Self-Salesforce Portal prompt error, Visualforce Error: Unknown property 'VisualArrayList.selected'. I can't finish my job all my codes are tested already. Below I attached part of my application basically. Please any help.

Thanks in advance.

Source Code: Visualforce page

<apex:page sidebar="false" controller="DisplayAccount">
<fieldset>
<legend>Update Account</legend>
</fieldset>
<apex:sectionHeader title="Task 3"/>
<apex:form>
<apex:pageBlock title="Accounts with Checkboxes">
<apex:pageMessages/>
<apex:pageBlockSection title="List of All Available Accounts">
<apex:dataTable value="{!accounts}" var="acc">
...
</apex:page>

Apex Classes called DisplayAccount

public with sharing class DisplayAccount {
public Account account_temp {get; set;}
public DisplayAccount(){
account_temp = new Account();
}
public DisplayAccount(ApexPages.StandardController controller){
//account_temp = (Account) controller.getRecord();//add account by Id
}
//task 2
public List<Account> acc{get; set;}
public String searchString{get; set;}
public void findAccount(){
String searchQuery ='SELECT Id, Name, BillingState, Phone, Website FROM Account WHERE Name LIKE \'%'+searchString+'%\' LIMIT 20';
acc = Database.query(searchQuery);//query to select by input parameter account
}
... continued