I am pretty new at MS Dynamics CRM and trying to learn all development process by myself.
I customized a solution into MS Dynamics CRM by using the Solutions segments and published it. But there wasn't any development process. I want to change the existing button's codes. For example I want write a Select statement into 'New' button. Also I want to create a custom button and write some sample codes into it. How can I do that? I already download and install Ribbon Workbench but it doesn't give me these options (writing code samples etc.).
Should we do this into Visual Studio 2008? If we do how can I add the solution's code into there?
You are going to be using JScript in ribbon buttons. There are a lot of samples on the web for doing this. You should use a ribbon editor to speed things up.
The only tricky part is referencing your WebResource from the ribbon. You'll want to use the $webresource: notation as this example shows. You may want to check out the Visual Ribbon Editor.
Related
I want to write an extension on dgml file. Code map of Solution in visual studio.
How do I plug-in my code on a context menu of links shown in the diagram
I'm uncertain if there are any extensibility points build into the dgml editor, but you can certainly add menu items to the "Architecture" drop down menu item with a VS extension built with the Visual Studio SDK.
You'll want to read up on developing Visual Studio extensions, so that you are familiar with how menu items (also referred to as commands) are added to the VS IDE. Also, there are two categories of windows you can display in Visual Studio. Tool Windows, and Document Winodws. You'll need to figure out which type fits your particular requirements. Generally speaking if your underlying data is stored in a file, you'll most likely want to implement a document window (also known as a custom editor or designer). For example, the window displayed after selecting "Generate Code Map for solution" is a custom designer for .DGML files.
Below are a few links to get you pointed in the right direction.
Visual Studio SDK
Create an extension with a menu command
Create an extension with a tool window
Walkthrough: Create a custom editor
VSSDK Extensibility Samples (github)
Sincerely,
I would like to know whether it is possible to add buttons to a particular document library's column when a new item is created. I am working on SharePoint without using any development tools like SPD and Visual Studio.So, is there any way to use JavaScript to achieve this? Because, if it is done using java script I can add the java script code to a content editor and get the desired functionality.
What are the any/other ways to achieve this functionality by coding in visual studio?
Thanks
You might be able to achieve it with JavaScript as you suggest. However, don't do it. SharePoint is a complicated product with very complicated means for displaying lists. Don't try to hack it, rather use the appropriate tools (i.e. Visual Studio and/or SharePoint Designer).
To achieve what you want, you will have to create a custom field type definition and an appropriate XSLT rendering template. However, this is both quite complicated. I would recommend either creating a custom list item menu action or a custom button in the ribbon.
Using Visual Studio you have several options. I expect you need to add buttons to the list form (Edit or Display). You can:
create custom ribbon buttons. - The most standard way.
create your own field with the button you need and use this column in the list. Little bit complicated. Can be used in more lists.
create your own Editform for your content type or list. - The most complicated way but with the most possibilities.
I've been looking hard to find a web page editor that can let me visually edit an already-designed asp.net web form page. for the whole period, I've made my page designs with Dreamweaver (now I'm using Dreamweaver CS4) and transfered my designs to Visual Studio 2010 to make asp.net pages from that template. Table editing feature for web forms in Visual Studio is really annoying and by trying to change a column width, the table structure is corrupted and VS decides to change everything on that table (compare it with Dreamweaver which only changes those two columns which their border is changed instead of the whole columns of that table).
Unfortunately Dreamweaver does not recognize the asp.net tags syntax and because of that it can not properly render them in design mode. I want to know if you know any tool (preferably non-Microsoft tool) that can let me open an asp.net web form in it and edit the page elements visually without side effects that Visual Studio causes to my page design. (I use HTML tables for arranging my page elements.)
By the way I looked at this link:
http://en.wikipedia.org/wiki/List_of_HTML_editors
but after opening all the visual editors web pages, I did not find any tool that supports ASP.net tags.
Is there a particular reason that though you are working on a Microsoft platform that you don't want to use a Microsoft editor?
MS provides two free tools that may help you:
Visual Studio Express
Web Matrix
Also, I highly recommend using CSS classes to set widths on ASP.NET generated tables/columns. (Rather than using the styling attributes for those ASP.NET controls.)
Hope this helps.
you can use AjaxControlToolkit.HTMLEditor.Editor.
Put the DLL in your project and than put in the page, than you can edit.
Create some logic to view and edit with some permission, and your page will have content editable.
I am creating custom code snippet templates using DevExpress' CodeRush.
Is there anyway for me to be able to see available Templates through Intellisense so I don't have to memorize the names of all of the templates that I want to create?
You can use the CodeRush Training tool window for this purpose. Just dock it to the appropriate position (e.g. to the left side of the Visual Studio IDE) and see what code snippet templates it suggests. The window is context sensitive, so only appropriate code templates suggestions are made. I assume that after some time you will remember all useful templates you will work with.
What I ended up doing was I created visual studio snippets with the same name as the CodeRush templates in question. This allowed me to have the intellisense popup when I started to type the name of the template (b/c Visual Studio thought I was using a snippet) and then I can just hit the hotkey to use the CodeRush template.
How to create editable PDF using ASP.NET. I want to create a Pdf from a master template, edit it (fill some value(input not from database)) and save. Is it possible without using a 3rd party?
If some sample code available it will be great
I use PDF4NET in a couple of projects, can definitely recommend it. There are code samples on their website.
You can use the open-source iTextSharp, which is a port from iText (java).
Here is a code sample that creates a form with a text field (it's java but the iTextSharp interface is nearly identical)
Maybe you can try the ReportViewer control.
You can create a "report template", assign data to it in runtime (fill in values), render it, and save the result.
I like http://dynamicpdf.com they have a free community edition which allows you to programmatically create PDF's from scratch. The paid products offer much more functionality and they have a designer as well.
You can use Aspose.Pdf.Kit for this purpose. In fact, it can be used either in a ASP.NET or Windows application. You can download the trial version. Have a look at the related documentation; that might be of some help.