Tuesday, October 28, 2008

How to Change Default Directory for Virtual PC 2007

If you store your Virtual Machines in a directory other then ./Documents/My Virtual Machines, you can change the default directory in which Virtual PC creates new VPCs.

To do this:

Vista
• Click Start
• Right click computer
• Click properties
• Left Nav, click Advanced System Settings
• Click Environment Variables
• Create a new system variable called ‘MYVIRTUALMACHINES’ (without quotes)
• Set the value equal to the path you want to store/store your VM’s
WinXP
• Right Click My Computer
• Click Properties
• Click the Advanced Tab
• Click Environment Variables
• Create a new system variable called ‘MYVIRTUALMACHINES’ (without quotes)
• Set the value equal to the path you want to store/store your VM’s

Now when you create a new virtual machine, it defaults to that path instead of ./Documents/My Virtual Machines.

Friday, October 24, 2008

Crm 4- Simple Function to Hide Attributes on A Form

Yesterday we had a project where a requirement was to 'filter' attributes on the form based on a picklist value. To accomplish this, a function to hide the attributes should be created. Opening the form source, we see that all form attributes have an ATTRIBUTE_NAME_d and an ATTRIBUTE_NAME_c id tag. One is for the label and the other is for the input (TextArea, Date field, etc). So the Javascript looks like this:

//Hides attributes on form
function HideAttributeOnForm(sAttributeName)
{
document.getElementById(sAttributeName + '_d').style.display = 'none';
document.getElementById(sAttributeName + '_c').style.display = 'none';
}

To use this, simply pass in the attribute name:

HideAttribute("YOUR_ATTRIBUTE_AS_A_STRING");

Tuesday, October 21, 2008

Power Commands for VS2008

Power commands for VS 2008 gives you access to commonly used Explorer functions right from VS.

Can be downloaded here http://code.msdn.microsoft.com/PowerCommands

Saturday, October 11, 2008

Dynamics CRM Integration with Office Communications Server

Microsoft has released examples of integrating Crm 4 with Office communicator using a web bot.


From Microsoft.com:


This sample application makes use of an AJAX/JavaScript client that communicates with the Microsoft Office Communicator Web Access 2007 server to provide a Web-based Live Chat solution that connects with a Microsoft Dynamics® CRM 4.0 server.


http://www.microsoft.com/downloads/details.aspx?FamilyID=6e2ea762-a6c9-43bd-8c84-bf610073765c&displaylang=en