You need to sign in to do that
Don't have an account?
SL Tan
Hi
I hope someone has done the same thing and can help point out what is wrong with my problem here.
I wanted to change the Lead Home Page Tab to remove the Reports, Tools and Summary portions from the Content area of the Lead Home Tab.
The code from the Lead Home Page is copied using Web Developer View Source and by deleting the parts of the code for the Reports, Tools, Summary and also the left frames for Search, Recent Items, etc and the top frame for the tabs, logos, etc, the resulting Home Page interface looks perfect. However when I click on any of the links for example NEW button in the Content area, the return page includes the left frame and top frame interface within the content portion apart from the New Page.
Could someone help me as to what should I be looking for to amend in the coding? I have tried to look at the various materials available but could not find anything close as to how to solve this issue.
Any pointer will be highly appreciated
Thanks in advance
SL
Override Leads Home Page Tab Problem
Hi
I hope someone has done the same thing and can help point out what is wrong with my problem here.
I wanted to change the Lead Home Page Tab to remove the Reports, Tools and Summary portions from the Content area of the Lead Home Tab.
The code from the Lead Home Page is copied using Web Developer View Source and by deleting the parts of the code for the Reports, Tools, Summary and also the left frames for Search, Recent Items, etc and the top frame for the tabs, logos, etc, the resulting Home Page interface looks perfect. However when I click on any of the links for example NEW button in the Content area, the return page includes the left frame and top frame interface within the content portion apart from the New Page.
Could someone help me as to what should I be looking for to amend in the coding? I have tried to look at the various materials available but could not find anything close as to how to solve this issue.
Any pointer will be highly appreciated
Thanks in advance
SL
If you use HREF tags in your links then you should set the TARGET attribute to "_parent". This will force the click location to the parent of the frame you are in which should resolve your issue.Code:
If you are using INPUT tags to create the buttons then you'll probably need to use the ONCLICK attribute to redirect the click to the parent frame.Code:
Hope this helps, -greg
Hi Greg
Thanks for your kind feedback. I checked on both the HREF and input tags and it seems to be correct. I hope you don't mind if
I copy the code below (which is rather lengthy) and hope you can find some time to help me check what is wrong. All the links work
fine but all the resulting URL pages include the left "search" frames and the top "tabs" inside the content area.
Sorry for any inconvenience caused
SL
Code:
Code:
Hi Lee.boonstra
Thanks for your kind feedback. I tried to use your suggestion. When I click on the tab, the page opens without the top and left frames but with the content area only filling up the whole window screen. When I click on the links in the content area, it opens the links correctly with the left and top frames and the linked new content . Before putting in your code, when I click the tab, the page opens with the top and left frames and the content area. When I click on any link in the content area, the linked page opens with the top and left frames and the content area also includes the top and left frames inside the content page again. Thus I could not yet solve my problem but I would like to thank you for the suggestion. Maybe I did not explain my problem clearly in my earlier posts. If I cannot solve this, then we will have to make do with the default tab home pages.
Thanks again
SL
I was curious to know if you were able to succesfully override the Leads home tab.
If so, how long did it take to get the frames to display correctly?
I was considering adding more to the tab rather than taking it away.
Thank you!
Dear Code Talker
We did not pursue this further for our App but I have tested on overriding the Leads Tab using Visual Force and it is successfully done. I would suggest you activate Visual Force in your DE and use it to make changes to the page as desired.
All the best!
SL
The overriding is done manually using Salesforce Override function in the Buttons and Links section of Standard Objects.
Perhaps I can explain the steps I have taken.
First I would assume that you have activated Visualforce in your DE.
Next, under Setup / Develop / Pages /New - fill in label, name, description and put in your code between the apex tag lines in the text box / Save. (to duplicate a Salesforce Tab page and modify it, what I did was to copy the html code using Web Developer Toolbar downloaded from Firefox Add-Ons, Click on View Source - Generated Source and then modify the coding to remove the sections not wanted in the revised Tab Page).
Once the Page is done, next go to your Object whose Tab page you want to override / click on Buttons & Links - you will see the Action - Override - click on it / select Content Type - Page / and select the Page you have saved above. This overrides the original page with the new Page that you have created.
Not sure if my explanation above helps - do let me know
Best Regards
SL
Oh I see! Sorry I misunderstand you. I have not tried this - sorry I am unable to provide any answer for this.
Hope someone else in this forum have tried and will be able to advice.
Best Regards
SL
Oh I see! Sorry I misunderstand you. I have not tried this - sorry I am unable to provide any answer for this.
Hope someone else in this forum have tried and will be able to advice.
Best Regards
SL
Thanks for your email. I am sorry I am unable to help you because I am not familiar with using the apex code fully the way you have done below. I hope other readers who are familiar or an expert in this area can offer some advice.
However, I have successfully done new Visualforce page to replace the standard Tab pages and I copy my code below for your perusal for the one I did to replace the standard Contact Tab page. Before that, maybe it will help if I give some background info on what I was trying to do.
I wanted to replace the Contacts (we rename it Customer Contacts) Tab Page with a new one that does not show the "Reports" and "Tools" Sections in the standard Salesforce Contact Tab. Using Web Developer, I copied the html code and then remove all the coding for these 2 Sections and also the header (encompassing the tabs, etc) and side panel sections (encompassing the Search . Recent Items, etc). After saving, and override, I could get the new Contact Tab the way i wanted it.
Hope if I copy my coding for you it may be of some help.
Best Regards
SL
Code:
I copied your code but I am still having the same kind of problems. With your code I don't have any records in the list of Contacts, how am I going to retrieve
the information and put it within this list? Also the select View is static so what happen if the user creates a new View?Will I be able to see it in the list? When I click in one option it
doesn't redirect me to anywhere.. Should I create all these functionalities using Javascript?
Many thanks for your help
I am sorry I missed some points that I should have mentioned.
I think you should not be copying my code fully as it is per se. My code is an example for you to peruse. Let me go through the steps that I have used.
Firstly I do hope you are using Firefox and have the Web Developer Toolbar add-on. If so, open your Contact Tab Page. On the Web Developer Toolbar, select View Source / View Source and this will generate the html code for the Contact Tab Page in another window. Copy the code into your VisualForce page. If you were to override the Contact Tab Page using this code in its entirety at this stage, you will notice that the Header, Side Panel and Bottom Panel will all appear in duplicate on the Contact Tab Page. Next delete the Header, Side Panel and Bottom Panel codings and you will get the result.
Please let me know if this works for you.
Best Regards
SL
Once I have the source code paste in a new visual force page and I overwrite my old Contact tab page
I see exactly the same list of contacts that I had in the old one. So even if a new contact is created I wouldn't see it in my list because this is an static list..
I think that there is not any javascript function that upload the list... the same for the different Views..
If a new View is created I wouldn't see it. I find it very hard to explain, please ask me if you didn't understand me.
Message Edited by lopezc on 07-11-2008 07:58 AM
Perhaps I did not understand your problem fully previously and thanks for clarifying. However I am at a loss at to what is the cause of your problem because I do not have any problem with my listing. By right we should still see the same contacts since these are not deleted but new ones created should be appearing as in my case. I hope some other users reading this thread would be able to assist here.
Sorry about this
Best Regards
SL
Hi,
I was struggling with a similar problem and found this thread. I'm not sure if I understand the problem completely, but looks like you are making this unnecessarily complex. Why not create a simple VisualForce page with the list view?
So the complete page is this (example for Account, easily changed to Leads or Contacts or any other object):
(this comes straight from the VisualForce documentation)
To me, looks like the only difference is that this remembers the last List view you used, instead of showing the Most Recently Viewed by default..
Hope this is of help to anybody.
Cheers,
Guy
Hi Guy
Thanks for your information and appreciate your kind response.
I have solved the problem with VF pages since then - the problem occurred in 2007/2008
Best Regards
SL