Cannot Drag Attachments to a Reply in Outlook


The first thing to check is the reply email Format Text is HTML and NOT Rich Text (or Plain Text). Seems obvious but, as fate would have it, the issue started when I moved to a new PC – causing me to look for a more technical solution.

Categories: New Posts

The Six Phases of a Software Project


Love this – because I can imagine it happening!

1. Enthusiasm
2. Disillusionment
3. Panic
4. Search for the guilty
5. Punishment of the innocent
6. Praise and honours for the non participants

Getting involved in your customers business makes it easier to stay on phase 1.

Categories: New Posts

Attributes of Information

September 16, 2011 Leave a comment

You can classify the value of the information by asking some questions of it. The acronym CRATA describes five values, Complete, Relevant, Accurate, Timely, and Accessible (I have yet to hear the phrase, “Is your data CRATA?”).

In addition to CRATA, I have seen two additional values used, Objective and Understandable. I struggled with Objective until I considered the definition, “not influenced by personal feelings, interpretations, or prejudice” at Dictionary.com. Fair enough!

Categories: Ramblings

Sitecore in two minutes


The Sitecore content tree represents a database. Everything in the tree is an item and the data model for each item is called a template.

ASP.NET code is used to create layouts and sublayouts. A layout is an aspx file that behaves like an ASP.NET masterpage. Typical layouts are One Column Layout, Two Column Layout and Print Layout which equate to a header and footer with a content area, header and footer with a content area and side bar, and a cut down print layout.

Sublayouts are the smaller coded components that make up a page. Examples include the main navigation menu, recent news items, sidebar tag cloud etc. These components could be modular and able to be moved or they can be fixed within the location of layouts.

You write ASP.NET code to make controls and to access data to populate the templates on each item. If your page has a title tag, your code would access the field “Title Tag” from the template (template is the data model for the item).

There are two ways to code. One uses the Sitecore Developer Center that lets you create layouts and sublayouts – this is like using Visual Studio in Design Mode. The other way uses Visual Studio to build the layouts/sublayouts and point to them in the section of the Sitecore tree called Layouts. Each layout and sublayout item has a path that maps to either an aspx or ascx file respectively. The layout and sublayout items are then used via the Presentation > Details tabs for each item in Sitecore.

You can also use XSLT files to generate HTML from database items however you are not afforded the luxury of debugging. XLST files are called Renderings by Sitecore and are also referenced in the Layout section of the Sitecore tree.

Categories: Sitecore

Tight internal cohesion and loose external coupling


I know the philosophy but forget the mantra – “tight internal cohesion” and “loose external coupling” – it’s clearer if you apply your thinking to glue not code.

Categories: C# Code Comments

C# ASP.NET Access to Salesforce Web Service


The traditional approach to accessing a web service in Salesforce is via the webs services API. There is another way, albeit unauthenticated.

1. In Salesforce, build your web methods in a Global Class
2. In Develop –> Apex classes, find the new class and generate the WSDL
3. Create new Windows .NET App and add a button. In the code behind make it so:

private void button1_Click(object sender, EventArgs e)

{


string txtReturnWS;

System.Net.ServicePointManager.Expect100Continue = false;

WebReference1.HelloWorldService objProxy = new WebReference1.HelloWorldService();

objProxy.Url = http://xxx.force.com/forms/services/Soap/class/helloWorld”;

try

{

txtReturnWS = objProxy.GetMessage();

textBox1.Text = txtReturnWS;

}


catch (Exception ex)

{


string message = ex.Message;

}

}


Categories: C# Code Comments

Sitecore 6.2 – CryptographicException file not found


If you get this error after upgrading your Sitecore project to VS2010 remember to set the Target Framework back to 3.5 under the Project Properties.

The failure occurred in the Sitecore.SecurityModel.License.LicenseManager class.

Categories: Sitecore
Follow

Get every new post delivered to your Inbox.