How to alter the behavior when clicking a button on the ribbon? - dynamics-crm-2011

When a user replies to an email, I'd like to keep the action that is being performed but also perform an additional task (sending a call to a web service, which I've got working already separately). My problem consist of the following two item.
I can't find the form definition for the reply-to-email appearance (I've found Email form, though).
I don't know how to get to the ribbon button of that form and set onclick method on it.

you can change the ribbon properties (such as adding / removing buttons, changing behavior) using the ribbon XML customization file (ms article here).
Fortunately, someone has done microsoft's work for them, and came up with a visual editing tool that saves you the hassle of manually changing xml files.
I like visual ribbon editor, but there are several others (the msdn article contains links to them).
What you would probably want is to add an action to the reply button, which would trigger a javascript function in your code

Related

C# VSTO Add-in Excel: What is the name of this Excel Super-Tab Control and how to make it? (Contextual Tab or Tool Tab)

In Excel (On Windows), there is a kind of a Super-Tab appearing on top of certain Tabs:
«Drawing Tools» Super-Tab:
When you click on a Graphic object then, this one appears:
«Table Tools» Super-Tab:
When you click inside of a Table object then this kind of a Super-Tab appears:
So my Questions are:
What is the technical name of that Super-Tab?
---> Special thanks to #TimWilliam. He was the one who gave its name: It is a Contextual Tab Set
And how to program something like that in VSTO Add-in please? (Anything related to it)
Your responses are much appreciated!
I'm answering to my Question so I do not lose all the important answers and research I got till now:
1. The name of that kind of Super-Tab:
The credit goes to #TimWilliams. The name of that Special tab is Contextual Tab or also called Tool Tab.
Here it is an official Information from Microsoft entitled: Ribbons
2. How to program the Contextual Tab?
I am still looking for How to program this one. At least Microsoft already explains about it here >>> 2.2.41 tabSet (Contextual Tab Set)
I found 2 new interesting discussions and information over here Adding custom contextual tabs to Ribbon UI and over here Ribbon: Contextual tab on application page. But they are all for ASP.NET.
Here as well is the List of Tool Tab available on Excel: Tool Tab Available on Excel
But once I found a working solution, I will share here as well for the advancement of our work.
Keep it up dear Programmers and stay blessed!
#TsiriniainaRakotonirina

Can not edit code in xpages or custom control

I have a problem with Domino Designer since the problem occurs not only in existing xpage and databases, it also happens in newly created databasen and xpages as well as custom controls.
The problem is that when I try to open an xpage or custom control, I will not se any code, or anything but an emppty blank page under the toolbars.
First I thought it could be my screen, then I thought it could be an configuration problem so I reconfigured the notes client and tried again, then I check if I could open the custom controls with the xml editor instead of the xsp editor, and that worked, but I want the xsp editor back.
What is this, a blank page, it seems that it could not render properly, because if I use my keyboard and pressing the space bar, then it ask me if I want to save the changes when closing the custom control by the esc.
Do I have to re-install the client? Or does it exist any configurations for the xsp editor I miss?
BTW, It happens the other day, and when I re-configured my installation it worked, but this time it does not.
Are you looking at the design pane and not the source pane? At the bottom of the blank page, above the properties area there are two tabs, click on the "source" tab.
If that's not the issue, I'm not sure what's going wrong
I did not have time to investigate any further, it must have been the render function of the XSP Editor that was corrupt, stopped working and I re-installed the Notes and Designer and then I could continue working. No problems in my code. :-)

vb.net How to prevent modeless form from being blocked by modal tool dialog in ArcMap?

I have a vb.net project running as a toolbar extension in ArcMap. Each one of my tools opens a modal dialog using the .ShowDialog() method. My client wants to be able to open a PDF document from the tools that will serve as the help documentation tool rather than a traditional method like HTMLHelp or Windows Help Viewer.
So, I've imported the Interop.AcroPDFLib.dll and set up a form with an AxAcroPDF (veiwer) object on it. Whenever the user clicks the help button on any of the tool dialogs, the help form opens using .Show() and goes to the associated page in the document using the .setCurrentPage method. Everything works great up to this point.
However, as you can imagine, because the tool dialog is modal, it blocks the user from being able to interact with the PDF form. So, what I need is a technique to prevent this block so that the user will be able to scroll pages, click links within the PDF, etc. while the tool dialog is open. I.e., I need a solution that will mimic using the traditional HTMLHelp veiwer.
I've tried opening the PDF form in a new thread, but that causes ArcMap to crash at Application.Run(New PDFForm). Maybe this is because I have very little experience with multithreading, or maybe because ArcMap does not support multithreading. Not sure.
Anyway, any suggestions to get me started would be greatly appreaciated.

Notes toolbar button to archive selected (email) document

You can archive e-mails immediately by using the menu, Actions > Archive > Archive Selected Documents.
How can I create a toolbar button that I can click which will perform the above action?
I've already created toolbar buttons to move documents to folders so I'm semi-familiar with the process of creating a button entering formula language commands.
Not sure what you're question is, but having a stab at it. So you want to put the logic in the "toolbar" so you can run it on any database right ? You would have to be able to call the agent that does the job. Well, if you're doing this on mail files only, you can actually call the command
#Command([ToolsRunMacro];"Archive\\Archive Selected Documents");
You'll need the double backslash as it's an "escaped" after saving.
But if you're thinking of trying this to work on any database, you're in a bit of trouble.
Toolbars have a pretty sloppy way of looking for agents you want to run. Because, if you attempt to run an agent from the toolbar, the formula in the toolbar button assumes the database of the current view you are looking at, as the database with the agent as well.
This is no better than copying the agent into every other database that you want to run the agent on. That's why the above solution for archive, only works in mail files as the agent should be there in every case.
Otherwise, you are left with the overhead of copying the required agent around everywhere. To prove the point, a simple test. Create a toolbar button with the following formula.
#Prompt([Ok];"Hello Notes..";#Implode(#DbName;#Char(13)));
Now open any database. Note that the prompt actually shows you the details of the currently open database. This is where the toolbar button will look when trying to run that archive agent.
As there is no way to specify in Notes formula command, the database location in the #command([ToolsRunMacro]), we're unable to call a centralised agent to do the job that I think you're postulating.
A good idea, and a worthwhile problem for the vendor to solve, but this is one many things IBM has never addressed since ...way to long ago.
I would recommend tool called SWING PDF Converter.
It add's Lotus Notes toolbar button and can convert any Lotus Notes document to PDF.
It supports single document conversion from view, multiple documents conversion as separate PDF files, PDF package and bookmarks PDF document. You can also export data in XML and CSV format.

How to place todo reminders in Dreamweaver code

I am coding in Dreamweaver for a change. Is there a way to place reminders in your code, for example in the form of a "todo list"?
I know Eclipse has this option. You can place //TODO before the line of code and the marker is placed in a list. You can view this list at will and conveniently go back to the exact spot later.
After weeks of coding I sometimes forget to take care of certain things. A todo list in the code itself would really help out, anyone know of a method for this in Dreamweaver?
Dreamweaver doesn't have a dedicated interface for viewing TODO items. However, it does have what it calls Design Notes. These notes are stored in *.mno files that are within _notes folders within the folder of the file that has a design note attached to it. These files and folders are only viewable within Dreamweaver if you have Show Hidden files enabled, which you can do by accessing the Files panel options menu on the upper right by clicking on it, then selecting View -> Show hidden files.
You have to turn them on in the site definition, although by default, a Dreamweaver site will have them turned on. The following steps are for Dreamweaver CS4:
Site -> Manage Sites..., Select the site, click Edit, select the Design notes category, check maintain design notes. Next go to the File View Columns category and make sure that the Notes column is displayed. Click OK then Done.
You can also opt to share these design notes, which means the they will be uploaded when you FTP the files to the remote site, so that others that you work with when they download the file (and assuming they also have Design notes enabled and shared), then they will be able to see that a file has a design note associated with it. Note: These *.mno files are plain text and if you your server may be accessible by others, so be sure not to put anything confidential in them.
In the Files panel, right-click on a file that you want to add a TODO item to, select "Design Notes...". In the interface that opens, you can enter in a free form note for the document. Check the Show when file is opened to cause this interface to open when you open up the file you're applying the design note to.
If you switch to the All Info tab, you can add "keyed" notes, that is a note with a name, and an associated value. This open may be good for TODO items.
When you add a design note to a file and you have the Notes column displayed, you should see an icon in the Notes column for any files that have associated notes for. Double clicking this icon will open up the Design Notes UI. This will be a quick way to determine if you have any TODOs in the files that you can see. Note: you won't see this icon for files within folders that are closed.
If you would like to do some searches or listing of files with design notes associated with them, then you can take a look at the Site Reports Design Notes report. Go to Window -> Results -> Site Reports. In the upper right of this panel, click the green arrow. This brings up the Reports interface. Select the appropriate option under Report on, and then check "Design Notes" under Workflow. Don't bother with the report settings....it's supposed to allow for some search/filtering, but I can't get it not to display all files with notes associated with them, perhaps you'll have better luck. Click the Run button and the Site Reports panel should contain a list of files that have design notes associated with them, as well as the design note info for the file. If you double click the entry, then the file will open.
Well, i use to put a simply comment like this below, directly in the php code:
//TODO: something to do here.
When i need to check my todo list, just search in the site by "//TODO:", and voilá, this is my todo list! It works, it's free and well according with KISS requirements.
Try using doxygen to document your code.
anything marks with a #todo, will be put in a special page when you generate documentaion.
Not ideal but the best i can think of.
(I haven't had much experience with dream weaver - it might have the feature you are looking for IDK)

Resources