Posted By

xkeshav on 12/07/13


Tagged

iframe html crm 2011


Versions (?)

new_zero.html


 / Published in: HTML
 

Microsoft Dynamics CRM 2011 landing page

  1. <html lang="en-us">
  2. <title>JQuery REST Data Operations</title>
  3. <script src="new_jquery1.9.1.min.js" type="text/javascript"></script>
  4. <script src="sample_/Scripts/SDK.JQuery.js" type="text/javascript"></script>
  5. <script src="sample_/Scripts/JQueryRESTDataOperationsSample.js" type="text/javascript"></script>
  6. <script src="sample_/Scripts/json2.js" type="text/javascript"></script>
  7. <!-- /WebResources/ClientGlobalContext.js.aspx is accessed using a relative path
  8. because the name of the Web Resource created from this file is "sample_/JQueryRESTDataOperationsSample.htm".
  9.  
  10. The use of the backslash within the name creates a virtual folder that must be considered
  11. in relative links between Web Resources.
  12. -->
  13. <script type="text/javascript" src="ClientGlobalContext.js.aspx"></script>
  14.  
  15. </head>
  16. <body style="background-color: White; font-family:Segoe UI;">
  17. <h1>JavaScript jQuery REST Data Operations Sample</h1>
  18. <button id="details" value"Details">Details</button>
  19.  
  20. //var claimID = Xrm.Page.data.entity.getId();
  21. //var userID = Xrm.Page.context.getUserId();
  22. jQuery(document).ready(function($) {
  23. $(document).on('click', "#details", function (e) {
  24. SDK.JQuery.retrieveMultipleRecords(
  25. "Contact",
  26. "$select=ContactId,FullName",
  27. function (results) {
  28. var firstResult = results[0];
  29. if (firstResult != null) {
  30. primaryContact = results[0];
  31. } else {
  32. writeMessage("No Contact records are available to set as the primary contact for the account.");
  33. }
  34. },
  35. function (error) {
  36.  
  37. },
  38. function () {
  39. // complete handler
  40. Xrm.Utility.openWebResource('new_diary_action.html', '', 800, 600);
  41. }
  42. );
  43. })
  44. });
  45.  
  46.  
  47. </body>
  48. </html>

Report this snippet  

You need to login to post a comment.