DCSIMG
October 2009 - Posts - Niv Hess

Niv Hess

October 2009 - Posts

בדיקת תקינות תעודת זהות Microsoft Dynamics CRM

 

ניתן לבדוק תקינות של תעודת זהות באמצעות סקריפט פשוט שמשווה בין הספרות של תעודת הזהות לספרת הבקורת. את הסקריפט הזה ניתן בצורה מאוד קלה להטמיע ב

Microsoft Dynamics CRM

ובכך לעלות על טעויות של מספר התעודת זהות עוד בשלב ההקלדה

ההטמעה של הסקריפט הזה מאוד פשוטה

  שמסומן באדום govermentid  יש להעתיק את הסקריפט הנ"ל לאירוע של השדה של תעודת הזהות ולשנות את שם הסכמה של השדה לשם הסכמה של תעודת הזהות

image

במקרה שמספר תעודת הזהות שגוי, מוקפצת ההודעה "מספר תעודת זהות אינו תקין" על המסך

 

 

function IDValidator(id)
{
                var sID = String(id);
                if ((sID.length != 9) || (isNaN(sID)))
                                return false;
                var counter = 0, incNum;
                for (var i = 0; i < 9; i++)
                {
                                incNum = Number(sID.charAt(i));
                                incNum *= (i % 2) + 1;
                                if (incNum > 9)
                                                incNum -= 9;
                                counter += incNum;
                }
                return (counter % 10 == 0);
}
var oID = crmForm.all.governmentid.DataValue;
if ( oID != null )
{

var oYY = IDValidator(oID);
if (oYY == false )
{
alert("מספר תעודת זהות אינו תקין");
}
}

 

בהצלחה

ניב

www.taniv.co.il

How to change Emails view in history tab in Microsoft Dynamics CRM

Most CRM clients would like to view emails in the entity history tab. The history tab purpose is to present all closed activities. By default this view look like that:

image

As you can see there are many fields that are not needed in emails view such priority, due date and activity status. Also, when we track many emails, it is difficult to locate the email that we are looking. We can add the activity description column ,which is the email body to the view ,which will enable us to view emails body as a tool tip without the need to open each email!

To modify this view we go to the closed activities associated view (from setting - customization - custom entities - Activity) :

image

We remove from this view all the fields that we don't need and we add the Description field which contains the email body! We may like to change the column width property to 200 or 300 pixels.

image

We publish the updated view and now when we go to the history tab of any entity we can put the mouse on the description column and view the text in the email body as a tool tip without needing to open the email! this can allow us to locate easily emails!

See example:

image