Produced by Araxis Merge on 5/9/2017 12:03:04 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Tue May 9 16:03:04 2017 UTC | ||
| 2 | OSCIF_HEC_v1.4_Sprint23_build4_Apr_2017.zip\CRM_solutions\Managed\North52BPA_1_0_0_506_managed_2013_2015_2016..zip\WebResources | north52_javascriptnorth52_dialog_helperE009E90F-1D66-E211-BEE9-00155DF5B00D | Mon Sep 19 18:20:18 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 98 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | //If the S DK namespa ce object is not def ined, crea te it. | |||||
| 2 | if (typeof (N52) == "undefined ") | |||||
| 3 | { N52 = {} ; } | |||||
| 4 | // Create Namespace container for functi ons in thi s library; | |||||
| 5 | N52.Dialog Helpers = { | |||||
| 6 | ||||||
| 7 | GetServerU rl: functi on() | |||||
| 8 | { | |||||
| 9 | var co ntext, crm ServerUrl; | |||||
| 10 | if (ty peof GetGl obalContex t != "unde fined") { | |||||
| 11 | co ntext = Ge tGlobalCon text(); | |||||
| 12 | } | |||||
| 13 | else i f (typeof Xrm != "un defined") { | |||||
| 14 | co ntext = Xr m.Page.con text; | |||||
| 15 | } | |||||
| 16 | else { | |||||
| 17 | th row new Er ror("CRM c ontext is not availa ble."); | |||||
| 18 | } | |||||
| 19 | ||||||
| 20 | ||||||
| 21 | if ( typeof con text.getCl ientUrl != "undefine d") | |||||
| 22 | { | |||||
| 23 | c rmServerUr l = contex t.getClien tUrl(); | |||||
| 24 | } | |||||
| 25 | else | |||||
| 26 | { | |||||
| 27 | crmServerU rl = conte xt.getServ erUrl(); | |||||
| 28 | crmServerU rl = crmSe rverUrl.re place(/^(h ttp|https) :\/\/([_a- zA-Z0-9\-\ .]+)(:([0- 9]{1,5}))? /, window. location.p rotocol + "//" + win dow.locati on.host); | |||||
| 29 | crmServerU rl = crmSe rverUrl.re place(/\/$ /, ""); // remove tr ailing sla sh if any | |||||
| 30 | } | |||||
| 31 | ||||||
| 32 | ||||||
| 33 | return crmServer Url; | |||||
| 34 | ||||||
| 35 | }, | |||||
| 36 | ||||||
| 37 | ||||||
| 38 | IsUR12Plus : function () | |||||
| 39 | { | |||||
| 40 | var res ult = fals e; | |||||
| 41 | var con text; | |||||
| 42 | if (ty peof GetGl obalContex t != "unde fined") { | |||||
| 43 | co ntext = Ge tGlobalCon text(); | |||||
| 44 | } | |||||
| 45 | else i f (typeof Xrm != "un defined") { | |||||
| 46 | co ntext = Xr m.Page.con text; | |||||
| 47 | } | |||||
| 48 | else { | |||||
| 49 | th row new Er ror("CRM c ontext is not availa ble."); | |||||
| 50 | } | |||||
| 51 | ||||||
| 52 | if (ty peof conte xt.getClie ntUrl != " undefined" ) | |||||
| 53 | { | |||||
| 54 | r esult = tr ue; | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | return result ; | |||||
| 58 | }, | |||||
| 59 | ||||||
| 60 | ||||||
| 61 | ||||||
| 62 | GetConfigu rationId: function() | |||||
| 63 | ||||||
| 64 | { | |||||
| 65 | ODat aPath = N5 2.DialogHe lpers.GetS erverUrl() + "/XRMSe rvices/201 1/Organiza tionData.s vc"; | |||||
| 66 | ||||||
| 67 | var r etrieveRec ordsReq = new XMLHtt pRequest() ; | |||||
| 68 | ||||||
| 69 | retri eveRecords Req.open(' GET', ODat aPath+"/no rth52_conf igurationS et",false) ; | |||||
| 70 | retri eveRecords Req.setReq uestHeader ("Accept", "applicat ion/json") ; | |||||
| 71 | retri eveRecords Req.setReq uestHeader ("Content- Type", "ap plication/ json; char set=utf-8" ); | |||||
| 72 | retri eveRecords Req.send() ; | |||||
| 73 | ||||||
| 74 | var n 52config = JSON.par se(retriev eRecordsRe q.response Text).d.re sults; | |||||
| 75 | ||||||
| 76 | if (n 52config[0 ] == null) { | |||||
| 77 | alert(" North52 Co nfiguratio n Missing" ); | |||||
| 78 | } | |||||
| 79 | else { | |||||
| 80 | return n52 config[0]. north52_co nfiguratio nId; | |||||
| 81 | ||||||
| 82 | } | |||||
| 83 | }, | |||||
| 84 | ||||||
| 85 | ||||||
| 86 | GetParamet erByName: function ( name) { | |||||
| 87 | ||||||
| 88 | name = n ame.replac e(/[\[]/, "\\\[").re place(/[\] ]/, "\\\]" ); | |||||
| 89 | var rege xS = "[\\? &]" + name + "=([^&# ]*)"; | |||||
| 90 | var rege x = new Re gExp(regex S); | |||||
| 91 | var resu lts = rege x.exec(win dow.locati on.search) ; | |||||
| 92 | if(resul ts == null ) | |||||
| 93 | return ""; | |||||
| 94 | else | |||||
| 95 | return decodeURI Component( results[1] .replace(/ \+/g, " ") ); | |||||
| 96 | } | |||||
| 97 | ||||||
| 98 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.