Removing standard Buttons in Tool Bar

Hi.

Is there an (unsupported but effective) way to remove standard buttons in
Toolbar (ie the "Send E-mail" button in Account Form")

Sebastiano.


0
Sebastiano
9/30/2004 10:37:30 AM
crm 35858 articles. 1 followers. Follow

4 Replies
314 Views

Similar Articles

[PageSpeed] 15

Sebastiano,

Totally unsupported, but effective.  Edit /SFA/accts/edit.aspx (after 
making a backup copy!) and place the script below between the </body> 
and </html> tags at the bottom.  Developer exercise:  Since the 
functions are common to many forms, a better way would be to have them 
defined in a separate file and reference that with a <script 
language="javascript" src="..."></script> element within the <head>, 
then only have the RemoveToolbar* function calls in your end-of-page 
script.

Chris Rogers
www.CustomerEffective.com


<script language="JavaScript">

    // sButtonTitle is the exact button title (e.g., "Recalculate" or 
"Look Up Address...").
    // For buttons with icons, add a leading space to sButtonTitle 
(e.g., " Send E-mail").
    function RemoveToolbarButton (sButtonTitle)
    {
        var oToolbarTDElement = 
document.all.mnuBar2.childNodes[0].childNodes[0].childNodes[1];
        var oToolbarItemToRemove;

        for (var i = 0; i < oToolbarTDElement.childNodes.length && 
!oToolbarItemToRemove; i++) {
            if (oToolbarTDElement.childNodes[i].innerText == 
sButtonTitle)
                oToolbarItemToRemove = oToolbarTDElement.childNodes[i];
            }

        if (oToolbarItemToRemove)
           oToolbarTDElement.removeChild(oToolbarItemToRemove);

    }

    // iSpacerIndex is 0-based (so 0 means the first spacer, ...)
    function RemoveToolbarSpacer (iSpacerIndex)
    {
        var oToolbarTDElement = 
document.all.mnuBar2.childNodes[0].childNodes[0].childNodes[1];
        var iSpacerCount = 0;
        var oToolbarSpacerToRemove;

        for (var i = 0; i < oToolbarTDElement.childNodes.length && 
!oToolbarSpacerToRemove; i++) {
            if (oToolbarTDElement.childNodes[i].outerHTML == "<IMG 
src=\"/_imgs/mnu_hSpacer.gif\">") {
                if (iSpacerCount == iSpacerIndex) {
                    // We found the spacer we want to remove.
                    oToolbarSpacerToRemove = 
oToolbarTDElement.childNodes[i];
                    }
                else {
                    // Not there yet.
                    iSpacerIndex++;
                    }
                }
            }

        if (oToolbarSpacerToRemove)
           oToolbarTDElement.removeChild(oToolbarSpacerToRemove);

    }

    RemoveToolbarButton(" Send E-mail");
    RemoveToolbarSpacer(0);  // as it's no longer necessary.

</script>


"Sebastiano Castrini" <castrini(remove)@libero.it> wrote in message 
news:#FiH9ltpEHA.3244@tk2msftngp13.phx.gbl:
> Hi.
>
> Is there an (unsupported but effective) way to remove standard buttons
> in
> Toolbar (ie the "Send E-mail" button in Account Form")
>
> Sebastiano.

0
Chris
9/30/2004 1:13:08 PM
Hi Chris.
And what about future customization re-pubblications ?

Must I edit the /SFA/accts/edit.aspx after every pubblication ?


0
Sebastiano
9/30/2004 1:24:54 PM
Chris,

is there also a way to remove the "New Account" button above the grid in the 
Sales module (when Account is selected from the left nav pane) and replace it 
with a custom "New Account" button? I need to do this, because our client 
wants to perform some checks before a salesperson can actually insert new 
account data.


Thx in advance,

Gwendy Pavlovic

"Chris Rogers" wrote:

> Sebastiano,
> 
> Totally unsupported, but effective.  Edit /SFA/accts/edit.aspx (after 
> making a backup copy!) and place the script below between the </body> 
> and </html> tags at the bottom.  Developer exercise:  Since the 
> functions are common to many forms, a better way would be to have them 
> defined in a separate file and reference that with a <script 
> language="javascript" src="..."></script> element within the <head>, 
> then only have the RemoveToolbar* function calls in your end-of-page 
> script.
> 
> Chris Rogers
> www.CustomerEffective.com
> 
> 
> <script language="JavaScript">
> 
>     // sButtonTitle is the exact button title (e.g., "Recalculate" or 
> "Look Up Address...").
>     // For buttons with icons, add a leading space to sButtonTitle 
> (e.g., " Send E-mail").
>     function RemoveToolbarButton (sButtonTitle)
>     {
>         var oToolbarTDElement = 
> document.all.mnuBar2.childNodes[0].childNodes[0].childNodes[1];
>         var oToolbarItemToRemove;
> 
>         for (var i = 0; i < oToolbarTDElement.childNodes.length && 
> !oToolbarItemToRemove; i++) {
>             if (oToolbarTDElement.childNodes[i].innerText == 
> sButtonTitle)
>                 oToolbarItemToRemove = oToolbarTDElement.childNodes[i];
>             }
> 
>         if (oToolbarItemToRemove)
>            oToolbarTDElement.removeChild(oToolbarItemToRemove);
> 
>     }
> 
>     // iSpacerIndex is 0-based (so 0 means the first spacer, ...)
>     function RemoveToolbarSpacer (iSpacerIndex)
>     {
>         var oToolbarTDElement = 
> document.all.mnuBar2.childNodes[0].childNodes[0].childNodes[1];
>         var iSpacerCount = 0;
>         var oToolbarSpacerToRemove;
> 
>         for (var i = 0; i < oToolbarTDElement.childNodes.length && 
> !oToolbarSpacerToRemove; i++) {
>             if (oToolbarTDElement.childNodes[i].outerHTML == "<IMG 
> src=\"/_imgs/mnu_hSpacer.gif\">") {
>                 if (iSpacerCount == iSpacerIndex) {
>                     // We found the spacer we want to remove.
>                     oToolbarSpacerToRemove = 
> oToolbarTDElement.childNodes[i];
>                     }
>                 else {
>                     // Not there yet.
>                     iSpacerIndex++;
>                     }
>                 }
>             }
> 
>         if (oToolbarSpacerToRemove)
>            oToolbarTDElement.removeChild(oToolbarSpacerToRemove);
> 
>     }
> 
>     RemoveToolbarButton(" Send E-mail");
>     RemoveToolbarSpacer(0);  // as it's no longer necessary.
> 
> </script>
> 
> 
> "Sebastiano Castrini" <castrini(remove)@libero.it> wrote in message 
> news:#FiH9ltpEHA.3244@tk2msftngp13.phx.gbl:
> > Hi.
> >
> > Is there an (unsupported but effective) way to remove standard buttons
> > in
> > Toolbar (ie the "Send E-mail" button in Account Form")
> >
> > Sebastiano.
> 
> 
0
Utf
12/16/2004 10:23:03 AM
You can by overriding te call it makes to open the form.  You can either change
the Javascipt calls or place an override the call.  There are a few options.

Just beware that this may backfire though.  New Account is called from a number
of places so it will take some time to "override" all the spots.

Matt Parks
MVP - Microsoft CRM

----------------------------------------
----------------------------------------
On Thu, 16 Dec 2004 02:23:03 -0800, Gwendy Pavlovic
<GwendyPavlovic@discussions.microsoft.com> wrote:

Chris,

is there also a way to remove the "New Account" button above the grid in the 
Sales module (when Account is selected from the left nav pane) and replace it 
with a custom "New Account" button? I need to do this, because our client 
wants to perform some checks before a salesperson can actually insert new 
account data.


Thx in advance,

Gwendy Pavlovic

"Chris Rogers" wrote:

> Sebastiano,
> 
> Totally unsupported, but effective.  Edit /SFA/accts/edit.aspx (after 
> making a backup copy!) and place the script below between the </body> 
> and </html> tags at the bottom.  Developer exercise:  Since the 
> functions are common to many forms, a better way would be to have them 
> defined in a separate file and reference that with a <script 
> language="javascript" src="..."></script> element within the <head>, 
> then only have the RemoveToolbar* function calls in your end-of-page 
> script.
> 
> Chris Rogers
> www.CustomerEffective.com
> 
> 
> <script language="JavaScript">
> 
>     // sButtonTitle is the exact button title (e.g., "Recalculate" or 
> "Look Up Address...").
>     // For buttons with icons, add a leading space to sButtonTitle 
> (e.g., " Send E-mail").
>     function RemoveToolbarButton (sButtonTitle)
>     {
>         var oToolbarTDElement = 
> document.all.mnuBar2.childNodes[0].childNodes[0].childNodes[1];
>         var oToolbarItemToRemove;
> 
>         for (var i = 0; i < oToolbarTDElement.childNodes.length && 
> !oToolbarItemToRemove; i++) {
>             if (oToolbarTDElement.childNodes[i].innerText == 
> sButtonTitle)
>                 oToolbarItemToRemove = oToolbarTDElement.childNodes[i];
>             }
> 
>         if (oToolbarItemToRemove)
>            oToolbarTDElement.removeChild(oToolbarItemToRemove);
> 
>     }
> 
>     // iSpacerIndex is 0-based (so 0 means the first spacer, ...)
>     function RemoveToolbarSpacer (iSpacerIndex)
>     {
>         var oToolbarTDElement = 
> document.all.mnuBar2.childNodes[0].childNodes[0].childNodes[1];
>         var iSpacerCount = 0;
>         var oToolbarSpacerToRemove;
> 
>         for (var i = 0; i < oToolbarTDElement.childNodes.length && 
> !oToolbarSpacerToRemove; i++) {
>             if (oToolbarTDElement.childNodes[i].outerHTML == "<IMG 
> src=\"/_imgs/mnu_hSpacer.gif\">") {
>                 if (iSpacerCount == iSpacerIndex) {
>                     // We found the spacer we want to remove.
>                     oToolbarSpacerToRemove = 
> oToolbarTDElement.childNodes[i];
>                     }
>                 else {
>                     // Not there yet.
>                     iSpacerIndex++;
>                     }
>                 }
>             }
> 
>         if (oToolbarSpacerToRemove)
>            oToolbarTDElement.removeChild(oToolbarSpacerToRemove);
> 
>     }
> 
>     RemoveToolbarButton(" Send E-mail");
>     RemoveToolbarSpacer(0);  // as it's no longer necessary.
> 
> </script>
> 
> 
> "Sebastiano Castrini" <castrini(remove)@libero.it> wrote in message 
> news:#FiH9ltpEHA.3244@tk2msftngp13.phx.gbl:
> > Hi.
> >
> > Is there an (unsupported but effective) way to remove standard buttons
> > in
> > Toolbar (ie the "Send E-mail" button in Account Form")
> >
> > Sebastiano.
> 
> 

0
Matt
12/17/2004 11:48:52 PM
Reply:

Similar Artilces:

All Task bars gone How do I get them back?
All of a sudden the other day everything at the top of my screen disappeared. I can load my word documents by searching my files and double clicking on the name but I can not Open a document inside word. I have never seen anything like this where all the buttons for using Word are gone. How do I get them back. http://www.gmayor.com/my_toolbars_are_missing.htm or http://word.mvps.org/FAQs/AppErrors/MissingMenusEtc.htm -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP ...

Activities don't show up until we hit the refresh button
Hello all, We upgraded from 3 to 4 and it appears that the upgrade did not complete successfuly, but the users used the system. Everything appears to be working well except for a couple of strange things like when we create an activity the activity does not appear until we hit the Refresh button, going to history and coming back does not fix the issue, only the refresh button any quick fix on this one? thanks ...

ADMT Tool Question
I'm trying to run this tool without success from a Windows 2003 native domain to extract accounts from an NT4 domain. Is this possible? Windows 2003 server Domain: Windows 2003 native mode Forest: Windows 2000 NT4 server sp6a http://www.petri.co.il/active_directory_migration_tool_usage_nt_windows_2003.htm "bobs" <myname@yourdomain.com> wrote in message news:e27m%23Km4FHA.2532@TK2MSFTNGP09.phx.gbl... > I'm trying to run this tool without success from a Windows 2003 native > domain to extract accounts from an NT4 domain. Is this possible? > > Window...

Modal Dialog OnCancel removes SC_CLOSE
Hello, I have an app with an modal dialog in which I have removed the default cancel behaviour by creating an empty OnCancel(). Now I can't close the dialog using the SC_CLOSE (Red-X in upper right corner) Why and how can I remove ending the dialoq by pressing Esc but still be able to close the dialog by clicking on the Red-X[1] // Anders -- English is not my first, or second, language so anything strange, or insulting, is due to the translation. Please correct me so I may improve my English! [1] if someone has a official name for this button I would be grateful! Anders Eriksson s...

Removing hyperlinks in Excel by multiplying by 1 is very obtuse
I just followed the Excel help directions for "Remove a hyperlink" -> "Deactivate several hyperlinks at once". And while the directions work (multiplying each field by 1), they strike me an obscure work around to a rather obvious missing feature. It should be easy to remove hyperlinks from text in Excel, especially because Excel is very agressive about auto-creating hyperlinks when any text that resembles a web address is entered. Hopefully this missing feature will be addressed in the next verison of Excel. Hi post your suggestion to: mswish@microsoft.com -- Reg...

Need to remove help compile in project
Can someone tell me how to remove the help build process from a project? Thanks What does this mean? You want to remove part of the build? If yes, just remove those files from project. -- Ajay Kalra [MVP - VC++] ajaykalra@yahoo.com "mike" <nospamplease.com> wrote in message news:%236ooDIkGHHA.1468@TK2MSFTNGP04.phx.gbl... > Can someone tell me how to remove the help build process from a project? > Thanks > > I've tried removing the help files but when I build, the help compiler is still invoked. The project show a couple of .rtf files in the dependenc...

Remove records from lookup
Not sure if this is possible but I would like to remove all records except the account records from the look up records dropdown menu of the appointment entity. The associated schema is regardingobjectid and the label is regarding. I see the other entities listed under relationships but there is no option to delete. Is there a way to create a new lookup and have it added to my appointment form? Thanks. There is no supported way to change this. The system is setup to allow you to set appointments that are related to specific records (Opportunities, Quotes, Cases, etc) and it will then ro...

Send button --WEBBOT SELF--
I wrote the earlier question and then kept looking for answers. I found the following at MSMVPS.com After the form is submitted the page is redirected to a confirmation page. You cannot change that function nor change the confirmation page. That is not available in Publisher. If this is true then how am I going to get my form page to work. Please help me!!! reference: Publisher web publication forms 101: http://msmvps.com/blogs/dbartosik/archive/2006/01/07/80564.aspx Reference: How to publish a Publisher web in HTTP: http://msmvps.com/blogs/dbartosik/pages/80557.aspx Applicable if yo...

Removing an exchange server member
I have a 2000 exch backend and a 2003 exch frontend setup. The front end hard disk just recently died. And so was not correctly un installed from AD. There are still elements of exchange hanging around. For instance, in the system manager. But the system manager wont let me delete the front end server under the first administrative group. Do i have to use adsiedit to remove this or is there a much simplier way. Cheers Paul To my best knowledge, it adsiedit. "Yakeni" <Yakeni@discussions.microsoft.com> wrote in message news:B352B981-F5B7-4527-8A48-04E3976C99D9@microsoft.c...

Determine Which Button was Right-Clicked?
All, I am using the code below (started from a sample from one of these groups) to programmatically create a series of buttons in a vertical strip on a form on Form Open. I have a context menu which appears when the user right-clicks any button on the form. How do I "tell" the context menu (really a function on the context menu) which button was right-clicked? I know how to get button attributes when the user left-clicks...but that's not what I need... Is there a way to do this? Thanks, Patrick Code::: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ...

Money 2006 Standard
I've just started to use the Money 2006 and I'm trying to move from the Essential Budget to the Advanced Budget, but the software does not move to the selected option. Is there any action to correct this problem? I was using a very old Money version (97) and the file was converted without any problem with budget data in the Advanced format, but as I can't select the Advanced Budget I'm not able to change anything in it. Is it possible to somebody help me on solving this problem? Thank you very much -- Bob Campos Have you tried doing a File - Repair, Bob? -- Michael Gor...

Tool bar anomaly
Version: 2004 Operating System: Mac OS X 10.4 (Tiger) Processor: Intel My customized toolbar has a 'close' button that is 3 times the size of the button on other toolbars. Also, the left-hand shaded column for grabbing moving the toolbar has a colon (:) below the button. I don't know that get there. The toolbar works but it should look the others. <br><br>Any ideas? <br><br>Ronben The toolbars you create yourself do have a larger close button. I assume that's to help distinguish them from the built-in bars. Likewise, the dots you see are act...

xp desktop and start button missin
cant get into to windows even in safe mode have to go to task manager to open anytgin In task mgr,locate "new task",type: cmd In cmd type: CHKDSK C: After,you may want to type: Sfc /Scannow Install xp cd,exit the menu page.Once its thru,remove xp cd,type: CHKDSK C: /F Agree to restart,type: EXIT Restart pc. "jen" wrote: > cant get into to windows even in safe mode have to go to task manager to open > anytgin ...

how do i change or remove a signiture that is under outo text hea.
Someone please help i am using outlook 2003 and i am triyng to change a signiture that is under auto text. to get into it i open a message push insert then outo text then signiture. I want to change it. I have closed the untilted message gone to tools then options then mail format then signitures then remove all the signitures but the signiture under insert and outo text is still there See if this helps: http://office.microsoft.com/en-us/word/HP051860291033.aspx -- Bill R "nearly bald with frustration" <nearly bald with frustration@discussions.microsoft.com> wrote i...

Stop Buttons showing when opening up form
I have a button on my Main Start up page that when click makes these buttons visible, but when I open up my DB they automatically show on start up, is it possible they not be visible till I click ckbHelp.......Thanks for any Help.....Bob Private Sub ckbHelp_Click() If ckbHelp = True Then cmbHelpNewHorse.Visible = True cmbHelpActFinHorse.Visible = True End If If ckbHelp = False Then cmbHelpNewHorse.Visible = False cmbHelpActFinHorse.Visible = False End If End Sub Bob, In design view, set the property pf the *button* Visible=No Regards/Jacob "Bob" <xxx@xx.xx> wrote i...

Outlook Shortcut Bar
How can I create a 'Grocery List' shortcut on the shortcut bar (left side of Outlook window) that will open a blank list similar to 'Tasks'? I can create the actual shortcut, but it's nothing but a duplicate of my 'Tasks' list named 'Grocery List'. I went into the 'Grocery List' list, selected all, and deleted 'em - and there went my entire 'Tasks' list, too. I'd also like to set up other shortcuts, like separate 'Tasks' for home and work, or 'Parts Inventory' (maybe linked directly to Excel). I can't...

OE removed access to unsafe attachments #2
How do I tell Outlook Express to consider some attachments safe and let me open them? Anyone know? Tools-> Options-> tab Security-> uncheck Do not allow... Note that this is an Microsoft Office Outlook forum. Outlook Express is family of Internet Explorer and Outlook of the Office family. Here is the link for the right forum http://communities.microsoft.com/newsgroups/default.asp?icp=InternetExplorer Good Luck! -- Roady [MVP] www.sparnaaij.net Microsoft Office and Microsoft Office related News Also Outlook FAQ, How To's, Downloads and more... Tip of the month: -Create your o...

How do I remove a hidden space in Excel cells
Not sure if this is an Excel or Word problem... I am doing a mail merge in Word (envelopes). I am pulling my data (name, address, cit/state/zip) from an Excel .xls I created. In mail merge, I select envelopes and go through all the steps. I use the Address Block for the delivery address. However, when it pulls the data over, the name line (first line of address block) is indented by one space. No matter what I do (place cursor at indent and use backspace or place cursor at next two correct lines and add a space), the change doesn't take place. I've checked all the tabs as...

How to change caption on 'apply' button in a CPropertySheet-derived class?
Hi, Does anyone know how to change the caption on the 'apply' button in a CPropertySheet-derived class? I derived a class CPlotSettingsDialog1. Here is it's OnCreate. int CPlotSettingsDialog1::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CPropertySheet::OnCreate(lpCreateStruct) == -1) return -1; CRect WindowRect; GetWindowRect(&WindowRect); WindowRect.bottom = WindowRect.bottom + 60; MoveWindow(&WindowRect); return 0; } all the code does is make the bottom of the property sheet a bit longer. It still has the 3 default buttons. I need to either re-caption t...

Viewing multiple excell spreadsheets on the task bar
Why is it that when I have 3 or more excell spreadsheets open they are not all listed on my task bar the only way I can get to them is by going to the window button and selecting the one I want to see, I want to be able to ALT TAB between them and they are not listing them for me in the task bar only the current one I have open? Are you using XP? Sounds like that feature of XP which groups several windows of one application into one spot on the task bar. There may be a way to shut this off in taskbar properties. Click on the task bar and select properties. "Megan" wrote: ...

How do I remove cross hatches in Sigma column
Addition of a column results in cross hatches. How do I get rid of the cross hatches and simply have the sum printed in the column? Widen the cell so the resulting value will fit. Excel does this so you don't accidentally SEE a number that's LESS than the actual number, which is what would occur if the column wasn't wide enough. ************ Anne Troy www.OfficeArticles.com "YHESSLER@EXAMPLE.COM" <YHESSLER@EXAMPLE.COM@discussions.microsoft.com> wrote in message news:08545D7F-E1B3-4879-A7DB-A2B723DDCD3F@microsoft.com... > Addition of a column results in cro...

remove????
I'm having some trouble with Office 2003 so I uninstalled it, then installed Office XP. My Outlook profile was still there and it kept giving me an error about the product activation number being invalid. I type in the correct one for Office XP, it says to restart the app, then the same error. How can I COMPLETELY remove Office 2003? I'm not so sure it is being caused by things left by Office 2003. You can remove your mail profile by going to Control Panel-> Mail-> button Show Profiles... For activation issues you should call Product Support. More interesting for me; wha...

Removing the : in the coment field
When I insert a comment to a field a colon appears. I know this is meant for the user name to appear but I don't want that. In fact, I don't want the colon to appear. Currently I manually delete it from each comment I insert...is there a way to turn that feature off so I merely type in text without having that colon appear?...I am using Excel 2000 Thanks! Kathy You can use programming to insert comments with no user name. There is sample code here: http://www.contextures.com/xlcomments03.html Kathy wrote: > When I insert a comment to a field a colon appears. I know...

Mail Button on ie8
I just started using ie8 and was using hot mail I found out I could use live instead of live hot mail. My question is when I click the mail button it stills shows up hot mail.I set live as my default email but it didn't make any difference On Tue, 15 Dec 2009 13:59:03 -0800, kln wrote: > I just started using ie8 and was using hot mail I found out I could use live ... "Live" what? > ... instead of live hot mail. There are: Windows Live Mail (a desktop client, akin to MS Outlook Express. Windows Live Hotmail (an online email service, accessible by ...

remove the write protection
hi guru I have a mobile user, that has OL2007, she connects to the office using pop3 I have been trying today to copy the user default pst file to have a backup in our system but it tell me the copy funtion cant be done. it comes with the following cannot write path here Please remove the write protection can some one help please, thanks a bunch naguaramipana wrote: > I have a mobile user, that has OL2007, she connects to the office using > pop3 I have been trying today to copy the user default pst file to have a > backup in our system but it tell me the cop...