locked
MS CRM 2011 - What are the different repeating features which are required in JQuery Library? RRS feed

  • Question

  • Hi!

    MS CRM 2011 - What are the different repeating features which are required in JQuery Library?

    Thanks,

    Rajeev.


    Rajeev

    Thursday, June 21, 2012 12:12 PM

Answers

  • Hi: 

    if you want to Calculate  age  in terms Year, Month and Days , you have to mention 3 fields Like Year, Month , Days.

    and you have to capture all the 3 records.

    sample example : the Sample Example is for C#. Just Give Schema Name and You can Implement 

    http://codereview.stackexchange.com/questions/3142/age-in-days-months-and-years

    Sample Example With CRM Calender Age  calculation:


    function CalculateAge()

    {

    if(Xrm.Page.getAttribute("_dateofbirth").getValue() != null) 


           var now = new Date(); 
           var birthday = Xrm.Page.getAttribute("_dateofbirth").getValue(); 
           var monthdif = now.getMonth() - birthday.getMonth(); 
           var nowyear = Xrm.Page.getAttribute("_dateofbirth").getValue().getFullYear(); 
           if(monthdif > -1) 
           {   

                    Xrm.Page.getAttribute("_age").setValue(now.getFullYear() - birthday.getFullYear());

           }
           else
           {
                   Xrm.Page.getAttribute("_age").setValue(now.getFullYear() - birthday.getFullYear()-1);
           }
    var date = Xrm.Page.getAttribute("_age").getValue();
    if(date<18)
    {
    alert("Candidate Age is Below 18");
    Xrm.Page.getAttribute("weavings_age").setValue(null);
    }
    else
    {
    Xrm.Page.getAttribute("_age").setSubmitMode("always");
    }
    }
    }



    : CRM 2011 Featur 

    1. Fetch Xml
    2.REST POINT

    3. Jquery

    4.OData . SOAP Method



    • Marked as answer by CRM Rajeev Friday, June 22, 2012 10:56 AM
    • Edited by Parthiban.T Friday, June 22, 2012 11:00 AM
    Friday, June 22, 2012 10:38 AM

All replies

  • Hi..

    The Main Jquery Library are 

     jquery1.4.1.min ,  json2 

    Itz Available in SDK--->

    DynamicsCrm2011Sdk 5.0.10\samplecode\js\restendpoint\jqueryrestdataoperations\jqueryrestdataoperations\scripts.

    1) These two Jquery Library will be used for REST POINT & Jquery , OData . 

    You can Download It

    http://docs.jquery.com/Downloading_jQuery 


    • Edited by Parthiban.T Thursday, June 21, 2012 5:49 PM
    Thursday, June 21, 2012 5:09 PM
  • Hi Prathiban,

    I could not find method like age calculation in terms Year, Month and Days.

    Similarly I would like to know are there methods which can be newly added to extend the existing functionality.

    Just wanted the list of features like I have mentioned above.

    Can any one help me in identifying the features/functions please.

    Thanks,

    Rajeev.


    Rajeev

    Friday, June 22, 2012 10:20 AM
  • Hi: 

    if you want to Calculate  age  in terms Year, Month and Days , you have to mention 3 fields Like Year, Month , Days.

    and you have to capture all the 3 records.

    sample example : the Sample Example is for C#. Just Give Schema Name and You can Implement 

    http://codereview.stackexchange.com/questions/3142/age-in-days-months-and-years

    Sample Example With CRM Calender Age  calculation:


    function CalculateAge()

    {

    if(Xrm.Page.getAttribute("_dateofbirth").getValue() != null) 


           var now = new Date(); 
           var birthday = Xrm.Page.getAttribute("_dateofbirth").getValue(); 
           var monthdif = now.getMonth() - birthday.getMonth(); 
           var nowyear = Xrm.Page.getAttribute("_dateofbirth").getValue().getFullYear(); 
           if(monthdif > -1) 
           {   

                    Xrm.Page.getAttribute("_age").setValue(now.getFullYear() - birthday.getFullYear());

           }
           else
           {
                   Xrm.Page.getAttribute("_age").setValue(now.getFullYear() - birthday.getFullYear()-1);
           }
    var date = Xrm.Page.getAttribute("_age").getValue();
    if(date<18)
    {
    alert("Candidate Age is Below 18");
    Xrm.Page.getAttribute("weavings_age").setValue(null);
    }
    else
    {
    Xrm.Page.getAttribute("_age").setSubmitMode("always");
    }
    }
    }



    : CRM 2011 Featur 

    1. Fetch Xml
    2.REST POINT

    3. Jquery

    4.OData . SOAP Method



    • Marked as answer by CRM Rajeev Friday, June 22, 2012 10:56 AM
    • Edited by Parthiban.T Friday, June 22, 2012 11:00 AM
    Friday, June 22, 2012 10:38 AM
  • Hi Prathiban,

    Thanks for your answer.

    Similarly I would like to know just about the list of functions which might be required in the MS CRM 2011 projects.

    I am talking about those functions which are not available as the part of the library as mentioned above.

    Can you please help.

    Thanks,

    Rajeev.


    Rajeev

    Friday, June 22, 2012 10:59 AM
  • We have lots of function wich are used for crm 2011

    1.IFAME : using Iframe you can call an ASPX page.

    2. Silverlight  

    3.Web service

    4.Fetch Xml

    5.WPF  6.WCF

     7.SQL REPORT MANAGER R2.(creating Repots)

    8. visual visual ribbon editor ( for editing MODULE ,RIBBON,Images Etc ) http://crmvisualribbonedit.codeplex.com/

    9. oData Query Designer
    http://crm2011odatatool.codeplex.com/

    Friday, June 22, 2012 11:10 AM
  • I just want to add the features in JScript Library.

    Thanks,

    Rajeev.


    Rajeev

    Friday, June 22, 2012 11:31 AM