Tuesday, December 6, 2011

uCertify , The fastest way to IT Certification

I got the kit for ms crm 4.0.
it looks good .
Waiting for the kit for MS CRM 2011.
Will post my review about MS CRM 2011 on my blog MS CRM 2011 Blog
Top 12 features of our Award Winning Prepkits

1. Simple, intuitive, user-friendly interface
2. One click dashboard makes it easy to find what you need
3. Guided learning steps you through the process of learning
and test preparation, including crucial information about
the exam format and test preparation tips
4. Reference Notes and Study Guides organized according to
the actual test objectives
5. Numerous study aids, including study notes, flash cards,
pop quizzes and more
6. Useful Technical Articles section contains information
written by industry experts and How To’s that help for easy
look up to specific questions
7. Collaboration
8. Exhaustive practice questions and tests, starting with
Diagnostic tests to determine your initial level
9. Learning and test modes
10. Customize your tests – decide how many questions,
combine one or more topics of your choice, quiz yourself
on a study note, increase the level of difficulty based on
your performance at any point in time, even create a test
based on the amount of time you have to take a test!
11. Feedback and assessment when you need it, including Gap
Analysis that clearly indicate your areas of strength and
weakness
12. Full length Final Practice test that closely simulates those
on the certification exam to gauge your preparation level
for the actual exam

Monday, August 1, 2011

User accesible issue in ms crm 4.0

i faced one issue, that the user in MS CRM is unable to log in, its showing you do not have sufficient permission to view these records.
Even if the user is in enabled list.
i also can disable and enable the user, still the user cud not logged in.

OBSERVATION
May be the user has been deleted from the AD and after that again created.

WORK AROUND
What i did is, i just opened the user in crm , then i changed the same to another user, which is not in ms crm, suppose a temp user.
Then i tried to log in using the temp user, i am able to login.
Then what i did is, i swaped back from temp user to the actual user.
Then the actual user was able to login.
This works,
hope this will help somebody really...

Wednesday, June 8, 2011

alternate colors in the main grid of ms crm 4.0

Sometimes the requirement used to come as the records in the main grid to be alternate colors as in normal grid controls.
keep it in mind we are going to alter the aspx page provided by MS CRM :P
To achieve it in CRM just needs some JS code.

1. open the HomePage.aspx from the _root folder
2. append a method onload of the body as <body class="stage" onload="alterGridRecords()">
3. now the function alterGridRecords should be as followed

function alterGridRecords(){
var grid = document.getElementById("gridBodyTable").lastChild; //gridBodyTable is the id, wch will help
for (var i = 0; i < grid.childNodes.length; i++)
{
if ((i % 2) == 0) {
grid.childNodes[i].style.backgroundColor = "#EEEEEE"; //put color as per the user requested
grid.childNodes[i].colourised = true;
}
else {
grid.childNodes[i].style.backgroundColor = "#FFFFFF"; //put color as per the user requested
grid.childNodes[i].colourised = true;
}
}
}

this is so simple

one prob in the above is that you will not be able to make the selected records in diff color.
so just a bit twist
grid.childNodes[i].childNodes[2].style.backgroundColor = "#FFFFFF";
this will make alternate colorsonly the 1st column as its being implemented as only one color in ms crm 2011. :P

Tuesday, April 19, 2011

Calling external JS files from MS CRM 4.0 form

function LoadFunction() { }
//create a Script loader object + function to be called when the script has
//finished loading
window.ScriptLibrary = new ScriptLoader(LoadFunction);
//url , false - cache, true - no cache
ScriptLibrary.Load('//FileName.js', true);

Wednesday, February 16, 2011

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message:

if u will get error message like this while in plugin or else using the sdk for any external application.
make sure the crmserver url is correct.
some times we used to forget to add the port number if its thr.

yes.sudhanshu

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message:

if u will get error message like this while in plugin or else using the sdk for any external application.
make sure the crmserver url is correct.
some times we used to forget to add the port number if its thr.

yes.sudhanshu

Invalid Action, the selected action was not valid error in ms crm 4.0

If such kind of error Invalid Action, the selected action was not valid in ms crm 4.0 while loggin in or else already logged in and trying to acces any record or doing some action,
then just try to make the MSCRMAsynchronous Service up.
Even if its showing started in the services, just restart it.

This is a way i hv solved.

yes.sudhanshu

Wednesday, February 9, 2011

refreshing continuously the textbox(textarea) in dot net

some times we need to show the status to the user if some log process is going on. also if any exception in that process.
for that if we will write the message to a textbox(textarea), it will look like realtime message as follow.

the textbox(textarea) control name is "txtStatus"
//each time append the new text to the previous text
txtStatus.Text += "Message from the businees logic to be displayed.";
// this main to just update the control , so that the new text will refreshed
txtStatus.Update();

yes.sudhanshu

Getting project current path in dot net

just use this to get the project current path.
soem times we need to create the log folder inside the project path with bin and other folders.
this is in windows application.

string path = Directory.GetParent(Path.GetDirectoryName(Application.StartupPath)).FullName;

yes.sudhanshu

Sunday, January 30, 2011

Organise the NameSpaces in visual studio

Sometimes we used some namespaces and we delete the references. still the using statement will be there. to make it clean we can use a shortcut, which wecan configure as follows.

go to Tools -> Options from visual studio.
Select Keyboard from left items.
then select "Edit.RemoveAndSort"
Now ether the key strokes you like in press Shortcut key text box (suppose ctrl+shift+w).Keep in mind all the three you have to press @ one short.

yes.sudhanshu

Thursday, January 27, 2011

Default look up value with out knowing the GUID only the text in MS CRM 4.0

Hi,

The default lookup can be done clearly and in supported way as in sdk in my othe r link. Default lookup value with GUID.

Some times while working in dev,UAT and prodution and moving from here to there
or if any one deleted the record and recreated again , means in any chance the GUID got changed , then it will not work.
But one thing here is , only one record should be there in the same name.
Even if its unsupported, still very usefull.

document.all.<FieldScemaName>_ledit.value = 'Default Lookup Value';
document.all.<FieldScemaName>_ledit.fireEvent("onblur");
document.all.<FieldScemaName>_ledit.value = '';

Hope it will help many more.

yes.sudhanshu

Thursday, January 20, 2011

Enable Tracing Ms Crm 4.0

Some times we nned to enable the tracing in ms crm server to get the error details.
But do not forget to disable it again after getting the error details , as it will slow down the process.
for the same just follow the link

Enable Tracing

saving another entity form from one form

Suppose we want to put an entity record in another entity form and on change of anything in the parent we also want to put the value in the child record and also want to save that. This can be done :)

var iframe = crmForm.all.IFRAME_CustomEntity
var iDoc = iframe.contentWindow.document;
var iframe_isSaved = true;

// checking if the Custom Entity has been changed
if (iDoc.crmForm.IsDirty())
{
// save Custom Entity
var iframe_isSaved = iDoc.crmForm.Save();
}

if (iframe_isSaved == false) // validation failed on Custom entity
{
event.returnValue = false; // Cancel the SAVE on Account
return false;
}

Just test and see.

Monday, January 10, 2011

How to Load external JS files in MS CRM Form

Some times its really helpful to link the external js files to a form.
It will help you, that you can srite in a file by using VS studio or any js editor.

//create the function which will load the file
function LoadExternalScript(scriptFile)
{
var netRequest = new ActiveXObject("Msxml2.XMLHTTP");
netRequest.open("GET", scriptFile, false);
netRequest.send(null);
eval(netRequest.responseText);
}

//call the above function by passing your file name(absolute path)
LoadExternalScript("/ISV/js/filename.js");
//now call the OnLoad function, which has defined in the external JS file
//also you can define and call other function, in the external JS files
OnLoad();

Have a wonderful coding.

Sudhanshu