You need to sign in to do that
Don't have an account?
LuLu(non-developer)
Creating tables with VisualForce
I need to create a table like the one below & place it on our lead page layout.
I thought perhaps a visualforce page would be the answer so I created a 'usage' and 'cost' fields for each month like the ones below:
Jan_u__c
Jan_c__c
Feb_u__c
Feb_c__c
But I don't know how to set it up as a vf page. If anyone has any feedback or sample code that can get me started that would be much appreciated.
JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | DEC | |
Usage | ||||||||||||
Cost |
I thought perhaps a visualforce page would be the answer so I created a 'usage' and 'cost' fields for each month like the ones below:
Jan_u__c
Jan_c__c
Feb_u__c
Feb_c__c
But I don't know how to set it up as a vf page. If anyone has any feedback or sample code that can get me started that would be much appreciated.
As per your new requirement this code is help you .First you need to check your controller using System debug.
Inline Visualforce Page:- Extension Class:- Output:-
I hope it will help you!!
Regards,
Ajay
All Answers
Regards,
Ramakant
You can try this code and Instruction:-
Step1:-
Inline Visualforce Page:- Extension:- Step 2:- Go to Lead Page and open any Lead Account and click Edit Layout.
Step 3:- Create a new Section and Save any Name .
Step 4:- Click on Visualforce Page then show your page with name then drag on this and drop of newly created section.
This Screenshot will help you.
Output :-
Regards,
Ajay
However I am not able to enter any data. I already checked the security setting of the VF page and ensured the table fields were visible/editable by admin profile.
I think I'm missing something on my extension but can't figure it out, anyone wants to take a peek?
Apex Class:
Thanks for selecting my answer as a best answer.
Can you please tell me exact requirement? Do you want to enter the data in table on Lead page or want to fetch the data from the database into the table?
Regards,
Ajay
As per your new requirement this code is help you .First you need to check your controller using System debug.
Inline Visualforce Page:- Extension Class:- Output:-
I hope it will help you!!
Regards,
Ajay