You need to sign in to do that
Don't have an account?

How to list records in table ?
Hello.
Can you help me ?
I have a table of Clients. How I can display the list of records on apex page using javascript code ?
I wrote some of apex code, may be we can use it ?
Thank you.
ZY: Sorry for my poor English.
Message Edited by Olbrest on 12-30-2008 06:58 AM
Can you help me ?
I have a table of Clients. How I can display the list of records on apex page using javascript code ?
I wrote some of apex code, may be we can use it ?
Thank you.
Code:
<apex:pageblocktable value="{!clients}" var="gift" id="theTable" width="80%"> <apex:column > <apex:facet name="header">Client</apex:facet> <apex:outputText value="{!clients.name}"/> </apex:column> <apex:column > <apex:facet name="header">Age</apex:facet> <apex:outputText value="{!clients.age}"/> </apex:column> <apex:column > <apex:facet name="header">Status</apex:facet> <apex:outputText value="{!clients.status}"/> </apex:column> </apex:pageblocktable>
ZY: Sorry for my poor English.
Message Edited by Olbrest on 12-30-2008 06:58 AM
I got a error - List has more than 1 row for assignment to SObject
If I change query "select Firstname, Lastname from Contact" to "select Firstname, Lastname from Contact limit 1" - application works and display one record.
I need a reson.
Thank you.
Message Edited by Olbrest on 12-30-2008 09:42 AM
Need to be