You need to sign in to do that
Don't have an account?
Show fields of custom object in a table
Hi,
I just start working with salesforce.
After creating new custom object called regCall, that contains two fields: date and phone, i would want to know how can I set and get this information and after show in a table.
On the one hand, I want to set data to this object from one controller that handles the action of clicking one push button (that 'calls a phone number'). And in the other hand, in other page, I want to show a report with the list of regCalls inserted.
It would be very helpfully for me that anyone could help me, because this problem I cant solve is for one project development,
Regards,
Fetch the result in your apex class
page
All Answers
You can directly bind your regCall object to the page.
in Controller
public regCall objregCall {get;set;}
and bind to the visual force page directly
<apex:Page>
<apex:Inputfield value="{!objregCall.Date}"> </apex:Inputfield>
<apex:Inputfield value="{!objregCall.Phone}"> </apex:Inputfield>
<!-- Add your logic in the save method values are automatically get set. in the controller-->
</apex:Page>
Fetch the result in your apex class
page
Thx you guys,
It works.
Your welcome manuel