This Javascript hides one related link
function hideNavItem(navItem) {
Xrm.Page.ui.navigation.items.forEach(function (item, index) {
var itemLabel = item.getLabel();
if (itemLabel == navItem) {
item.setVisible(false);
}
});
}
hideNavItem("Relationships");
You can hide Activities by:
hideNavItem("Activities");
Tuesday, 24 April 2012
Crm 2011 hiding Sales. Markerting, Common Nav Group in Entity left nav
This javascript hides the Sales Nav Group under Related left nav on CRM 2011 Entity
//Hides Nav Group inside a crm 2011 enitity
function hideNavGroup(navigationName) {
var navItems = document.getElementById("crmFormNavSubareas");
for (i = 0; i < navItems.childNodes.length; i++) {
var navItem = navItems.childNodes.item(i);
var itemName = navItem.firstChild.lastChild.innerText;
if (itemName == navigationName ) {
navItem.style.display = "none"
}
}
}
Consumption:
hideNavGroup("Sales");
The Sales group is removed,
hideNavGroup("Services");
//Hides Nav Group inside a crm 2011 enitity
function hideNavGroup(navigationName) {
var navItems = document.getElementById("crmFormNavSubareas");
for (i = 0; i < navItems.childNodes.length; i++) {
var navItem = navItems.childNodes.item(i);
var itemName = navItem.firstChild.lastChild.innerText;
if (itemName == navigationName ) {
navItem.style.display = "none"
}
}
}
Consumption:
hideNavGroup("Sales");
The Sales group is removed,
You Can hide Service by:
Friday, 20 April 2012
To follow : Telerik Controls + Ajax + Crm 2011 + SharePoint 2010
This is to follow soon with screenshots
Tools: CRM Entity Comparer -EntityComparer
I have had to write a tool that will compare same entity on two environments - long story cut short - there are multiple environments which are not really supposed to be the same but branch off one same environment - Diff client - Diff Requirements, same solution - This means importing customizations is not an option - if you have money for multiple servers to monitor all, good for you
This works on All Dynamics CRM versions - this means you can copy attributes from entity 1 of crm 2011 to entity1 of crm 3.0/4.0
This also works on different domains - option of using same credentials for both environments or two different sets
You also have the option to create the attribute or leave it out
- This will be shared on codeplex soon
- Link To folow Or request on kgopotso.riba@gmail.com
This works on All Dynamics CRM versions - this means you can copy attributes from entity 1 of crm 2011 to entity1 of crm 3.0/4.0
This also works on different domains - option of using same credentials for both environments or two different sets
You also have the option to create the attribute or leave it out
- Link To folow Or request on kgopotso.riba@gmail.com
Andriod Apps using C# + Visual Studio
I recently picked up a habit of building Android Application using C# and Visual Studio as I an quiet comfortable with the language and IDE
I use Mono for Android plugin : read more: http://xamarin.com/monoforandroid
It has been really fun I must say, so much planned around, will also be integrating the android app I am building with CRM 2011
Quick things to share:
The GUI is build through an Xml markup called AXML - this is andriod's version of xaml (Xaml is a markup used on Microsoft's WPF, Silverlight and Windows Phone 7(Mango) GUIs)
Android Controls are called Views
e.g
Android Textbox = EditView
Android Label = TextView
Button = Button
Spinner = Dropdownbox
For example this AXML
below produces a UI like the one below
I use Mono for Android plugin : read more: http://xamarin.com/monoforandroid
It has been really fun I must say, so much planned around, will also be integrating the android app I am building with CRM 2011
Quick things to share:
The GUI is build through an Xml markup called AXML - this is andriod's version of xaml (Xaml is a markup used on Microsoft's WPF, Silverlight and Windows Phone 7(Mango) GUIs)
Android Controls are called Views
e.g
Android Textbox = EditView
Android Label = TextView
Button = Button
Spinner = Dropdownbox
For example this AXML
below produces a UI like the one below
And Yes the Code is C# - it uses a WCF Service call to login the user
This is fun, I might be uploading this on Code Project - just look and listen
IE + Developer toolbar not pop open
I tried pressing F12 while I was working on CRM 2011 via IE8, nothing happend, but i can see the developer toolbar icon on my task bar, Do this to fix:
1. Open Task Manager
2. On the Developer Toolbar application- Right Click Maximize
3. Now you can drag the window to your task manager to, it will minimize it, but this time to where you can see it!
Stupid but true, it was just minimized and its off the screen
Thursday, 12 April 2012
Static IPs on VM, NAT - no connection to host for copying files
Am I crazy or someone is also going through this
Problem:
I set my VM to be NAT Network Adapter
I am using static IPs because I set up a small network between VMs
Dooof: I cant connect to my host- I need to copy over files
Solution:
Temporarily change the Lan Properties to get IP Automatically - this will break the ntwork with the VMs - small network - but fix connection to the host network
Copy the files using a network path
after copying,
Take back Static Network
If there is a better way of doing this, please share
Problem:
I set my VM to be NAT Network Adapter
I am using static IPs because I set up a small network between VMs
Dooof: I cant connect to my host- I need to copy over files
Solution:
Temporarily change the Lan Properties to get IP Automatically - this will break the ntwork with the VMs - small network - but fix connection to the host network
Copy the files using a network path
after copying,
Take back Static Network
If there is a better way of doing this, please share
Network between 2 VMs not working - same config
Problem:
I have been using two VMs for my CRM Environment, VM1 has CRM and VM2 has domain controller, but VM1 cannot see VM2 despite having the same network config, same subment mask, ips are in the same range.
What I had to do:
VM1 was using NAT on Network Adapter
VM2 was using Bridged on Network Adapter
Solution:
Make sure both VMs are using the same config on network adapter:
I used Host Only on both network adapters. It worked
I have been using two VMs for my CRM Environment, VM1 has CRM and VM2 has domain controller, but VM1 cannot see VM2 despite having the same network config, same subment mask, ips are in the same range.
What I had to do:
VM1 was using NAT on Network Adapter
VM2 was using Bridged on Network Adapter
Solution:
Make sure both VMs are using the same config on network adapter:
I used Host Only on both network adapters. It worked
Wednesday, 11 April 2012
Upgrade Crm 4.0 to 2011
I went through this once upon a time:
http://community.dynamics.com/product/crm/crmtechnical/b/crminogic/archive/2011/01/04/crm-4-to-crm-2011-upgrade.aspx
I recently did an Inplace Upgrade, but that is because of lack of resources, if it wasnt for that, I would go for full crm install then do an upgrade via importing organization db:
Please make sure you login to the server with an account that has access to the crm 4.0 you are attempting to upgrade and:
Sandbox Service runs under an account that has access to CRM - this service imports all your plugins to the new crm 2011
http://community.dynamics.com/product/crm/crmtechnical/b/crminogic/archive/2011/01/04/crm-4-to-crm-2011-upgrade.aspx
I recently did an Inplace Upgrade, but that is because of lack of resources, if it wasnt for that, I would go for full crm install then do an upgrade via importing organization db:
Please make sure you login to the server with an account that has access to the crm 4.0 you are attempting to upgrade and:
Sandbox Service runs under an account that has access to CRM - this service imports all your plugins to the new crm 2011
Subscribe to:
Posts (Atom)