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
JDawg808JDawg808 

Replicating out of the box funtionality

Hi Everyone,

 

I wanted to see if anyone has any suggestions as to whether or not what I want to do is possible. I have looked through the cookbook as well as the developer handbook and googled as well and have not found any examples that do what I am looking for.

 

basically what i am trying to do is mimic the view/edit/save functionality that is present on all SFDC objects. The catch is that I am trying to do this in a Visualforce page that will contain 2 tabs with data from the same object. One tab will contain the main contact data and the other tab will contains some additional data (the data is very flat so keep that in mind) that is also part of the contact object. 

 

The 2 options to would be idea are as follows

 

1) Have an edit button enable all the fields in the contact object on all tabs

 

or 

 

2) Have an edit button on each tab that would enable just the fields on that tab

 

Part of the reason we are looking to do this is that they have a large number of fields in the contact object and it would help to segment their business processes a bit more clearly, as well as minimize vertical scrolling for the user.

 

If anyone has any thoughts on how to achive this and is will to share the information, i would be really appreciative.

 

Thanks,

Jason

David VPDavid VP

Yes this is feasible,

 

You just need to provide the read / edit section in VF and render one or the other depending on if you're in 'edit mode' or not (or work with two separate VF pages).

I personally would go for one edit button that enables editing in both tabs, 2 buttons just seems confusing for the users.