SharePoint 2010 Upgrade Solution – Upgrading from SharePoint 2007: tools, tips and tricks

31 במאי 2011

Upgrading Process from SharePoint 2007 to SharePoint 2010 is depends on many factors and elements that are used in SharePoint 2007 environment, such as web parts, features, event receiver and site templates. In this article I try to describe and explain how to fixed unespected problems that you meet in upgrading process. The first step in upgrading process is checking you SharePoint 2007 environment. This page is describe this step:  Using preupgradecheck tool that create pre upgrading report, in this report you need handle some problematic issues. Next posts will describe how to solve them.  1. Handle Missing Web Parts 2. Handle Missing Event Receivers. 3. Handle Missing...

MS CRM 4.0 – Error message "Stack overflow at line: " is displayed when OnChange event is fired on lookup fields in Incident Entity.

When "OnChange" event is defined in customization level on lookup field in Incident Entity and user choose some value in lookup window, error message "Stack overflow at line: " is displayed. If you disable "OnChange" event on lookup field this error message doesn't appeared. For solving this problem you need disable "OnChange" event in customization level and attach this event to field inside javascript code, for example:  crmForm.all.subjectid.attachEvent("onchange", Subjectid_Onchange); Where Subjectid_Onchange is javascript function, that provide needed functionality. This solution is helped for all lookup fields except - customerid. For customerid field you need use another javascript code: setTimeout('ChangeCustomerIDHandler();', 1000); Inside ChangeCustomerIDHandler function we overwrite CRM onchange handler  for customerid field. function ChangeCustomerIDHandler(){    var...
אין תגובות

MS CRM 4.0 – Check User Role for CRM Grid Actions in ISV Config

23 במאי 2011

Some times you need allow to run or show specific form CRM Grid only for user that has specific security role, you can't call to CRM WS inside . For this purpose you can create new javascript file for example ISVConfig.js, that is stored inside /ISV/Scripts/. After this create new button inside ISV Config XML in GRID section for specific entity,  in this button you need to load javascript file dynamic. <Grid>            <MenuBar>              <Buttons>                <Button Icon="/_imgs/ico_18_debug.gif" JavaScript="                       try                       {                          DoActionWithCheckUserRole();                       }                       catch (e)                       {                          var oScript = document.createElement('script');                          oScript.type = 'text/javascript';                          oScript.src = '/ISV/Scripts/ISVConfig.js';                          document.body.insertBefore(oScript);                          try                          {                             DoActionWithCheckUserRole();                          }                          catch (e)                          {                             setTimeout('DoActionWithCheckUserRole();', 1000);                         ...
אין תגובות

SharePoint 2010 – Content Query Web Part – Open Links in new window

3 במאי 2011

Content Query Web Part is very useful Web Part that allow show relevant data from defferent sources by definition special filter conditions.  But when relevant data is rendered all link are opened in the same window. You can change this behavior by changing ItemStyle.xsl that placed in "Style Library" library inside "XSL Style Sheets" folder. You can navigate to this library: http://servername/Style%20Library. For changing ItemStyle.xsl file, download it to local disk. For example if you use "Default" style inside Content Query Web Part, you can duplicate  xsl:template part with name "Default"  and change style name for example "DefaultNewWindows". Inside this template you can add new attribute"target"...