Produced by Araxis Merge on 5/9/2017 12:03:03 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:03 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_javascriptnorth52command0D99FB07-48E5-E111-8F41-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 | 80 |
| 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.Comman d = { | |||||
| 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 | CallComman d: functio n(targeten tityid, na me, inputs tring1, in putstring2 , inputstr ing3, inpu tstring4, inputstrin g5, inputs tring6, in putstring7 , inputstr ing8, inpu tstring9, inputstrin g10) | |||||
| 39 | { | |||||
| 40 | ||||||
| 41 | try{ | |||||
| 42 | ||||||
| 43 | //Set defaults i f null | |||||
| 44 | if (in putstring1 == null) inputstrin g1 = '??'; | |||||
| 45 | if (in putstring2 == null) inputstrin g2 = '??'; | |||||
| 46 | if (in putstring3 == null) inputstrin g3 = '??'; | |||||
| 47 | if (in putstring4 == null) inputstrin g4 = '??'; | |||||
| 48 | if (in putstring5 == null) inputstrin g5 = '??'; | |||||
| 49 | if (in putstring6 == null) inputstrin g6 = '??'; | |||||
| 50 | if (in putstring7 == null) inputstrin g7 = '??'; | |||||
| 51 | if (in putstring8 == null) inputstrin g8 = '??'; | |||||
| 52 | if (in putstring9 == null) inputstrin g9 = '??'; | |||||
| 53 | if (in putstring1 0 == null) inputstri ng10 = '?? '; | |||||
| 54 | ||||||
| 55 | if (ta rgetentity id == null ) { | |||||
| 56 | alert('Pl ease selec t a record before ru nning the command.') ; | |||||
| 57 | } | |||||
| 58 | else | |||||
| 59 | { | |||||
| 60 | ||||||
| 61 | var dataValue = encodeU RIComponen t('name=' + name +'& inputstrin g1='+ inpu tstring1 + '&inputstr ing2='+ in putstring2 +'&inputst ring3='+ i nputstring 3+'&inputs tring4='+ inputstrin g4+'&input string5='+ inputstri ng5+'&inpu tstring6=' + inputstr ing6+'&inp utstring7= '+ inputst ring7+'&in putstring8 ='+ inputs tring8+'&i nputstring 9='+ input string9+'& inputstrin g10='+ inp utstring10 ); | |||||
| 62 | var finalUrl = N52.Comm and.GetSer verUrl() + '/WebReso urces/nort h52_html_c ommanduser ?data=' + dataValue + '&id=' + targetent ityid+'&us erlcid='+ Xrm.Page.c ontext.get UserLcid() ; | |||||
| 63 | ||||||
| 64 | if ( (naviga tor.userAg ent.search ('MSIE') > 0) || (na vigator.us erAgent.se arch('Trid ent/') > 0 ) ) | |||||
| 65 | windo w.showModa lDialog(fi nalUrl, se lf, 'dialo gWidth: 40 0px;dialog Height:200 px'); | |||||
| 66 | el se | |||||
| 67 | windo w.open(fin alUrl, sel f, 'top=30 0, left=30 0, width=4 00, height =200'); | |||||
| 68 | ||||||
| 69 | } | |||||
| 70 | ||||||
| 71 | } | |||||
| 72 | catch (ex ) | |||||
| 73 | { | |||||
| 74 | alert(' Failure un able to la unch comma nd: ' + e x.message) ; | |||||
| 75 | } | |||||
| 76 | ||||||
| 77 | } | |||||
| 78 | ||||||
| 79 | ||||||
| 80 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.