Using HTML Tags for formatting in InfoPath Rich Text Box Control


Hi,

We had a requirement to format custom error messages that we were displaying in the rich text box control inside InfoPath Form.

For this we can use AppendChild method of XPathNavigator object.

For e.g. below is the html we need

The code that we need to use

XPathNavigator richTextField = domNav.SelectSingleNode(“/my:myFields/my:field4”, NamespaceManager);

richTextField.AppendChild(“<h2 xmlns=\”http://www.w3.org/1999/xhtml\”>Error Message Header</h2><p xmlns=\”http://www.w3.org/1999/xhtml\”>This is my custom <font xmlns=\”http://www.w3.org/1999/xhtml\” size=\”3\” color=\”red\”> error </font> message.</p>”);

The output

We need to define namespace for each tag used else we get exception.

The helpful post

http://www.bizsupportonline.net/infopath2007/how-to-render-html-in-rich-text-box-infopath.htm

Hope it helps..

Remove web part that is causing error from a SharePoint page


Hi,

On adding a web part if in a page at times it throws error and we need to access the page and remove that web part.

To do so we need to add the following querystring to the page url

http://localhost/Pages/Home.aspx?contents=1

It will open the page and will present the list of web parts in the page from wherein we can select and delete the web part that was causing the error.

Hope it helps..

Hello World InfoPath Form with Code Behind


Hi,

Had to do some POC around InfoPath form having code behind.

Found this wonderful article

http://johanolivier.blogspot.in/2010/08/infopath-2010-development-part-1-add.html

Bye..

CAML Query Builder for SharePoint 2013


Hi,

Recently had to write CSOM code to fetch value of a particular list item.

The following tool made it really easy to write the CAML Query.

https://spcamlqueryhelper.codeplex.com/

Bye..

2014 in review


The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 260,000 times in 2014. If it were an exhibit at the Louvre Museum, it would take about 11 days for that many people to see it.

Click here to see the complete report.

Script Search Utility for Dynamics CRM 2011/2013


deepeshsomani2013's avatarMSDYNAMICSBLOG BY DEEPESH

Script Search Utility for Dynamics CRM 2011/2013 addresses some of the following pain points while configuring, documenting and trying to resolve issues related to scripts in Dynamics CRM 2011 and Dynamics CRM 2013. Key features of this application are:

• For documentation purpose, Ability to search script files for specific text in script like unsupported scripts during CRM upgrade
• For documentation purpose, Ability to search scripts for attribute names in CRM scripts.

This tool also lets you copy search result to clipboard.

Download link: Click here

How to use :

Download the doc file, rename it to zip file, extract it and you are done.

For any issues/ bugs, you can connect me directly at –deepeshsomani@hotmail.com

clip_image002

This tool uses the Connection Control for Microsoft Dynamics CRM 2011 which is available at https://connectioncontrol.codeplex.com. I recommend using this tool for anyone who needs to connect to CRM instances be it…

View original post 14 more words

Nishant Rana's Weblog

Everything related to Microsoft .NET Technology

Skip to content ↓