Produced by Araxis Merge on 5/9/2017 12:03:00 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:00 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_html_notifications2629E5D5-8C3C-E111-88F2-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 | 203 |
| 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 | <HTML><HEA D><TITLE>N orth52 For mula Manag er Notific ations</TI TLE> | |||||
| 2 | <SCRIPT sr c="ClientG lobalConte xt.js.aspx "></SCRIPT > | |||||
| 3 | ||||||
| 4 | <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/jquery "></SCRIPT > | |||||
| 5 | ||||||
| 6 | <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/north5 2_dialog_h elper"></S CRIPT> | |||||
| 7 | ||||||
| 8 | <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/JSON2" > | |||||
| 9 | </SCRIPT> | |||||
| 10 | <LINK rel= stylesheet type=text /css href= "/_common/ styles/fon ts.css.asp x?lcid=103 3"><LINK r el=stylesh eet type=t ext/css hr ef="/_comm on/styles/ global.css .aspx?lcid =1033"><LI NK rel=sty lesheet ty pe=text/cs s href="/_ common/sty les/select .css.aspx? lcid=1033" > | |||||
| 11 | <SCRIPT ty pe=text/ja vascript> | |||||
| 12 | ||||||
| 13 | ||||||
| 14 | function g etQuerystr ing(key) | |||||
| 15 | { | |||||
| 16 | var wo rk = key.r eplace(/[\ []/,"\\\[" ).replace( /[\]]/,"\\ \]"); | |||||
| 17 | var re gex = new RegExp("[\ \?&]"+work +"=([^&#]* )"); | |||||
| 18 | var qs = regex.e xec(window .location. href); | |||||
| 19 | if (qs == null) return nul l; | |||||
| 20 | return qs[1]; | |||||
| 21 | } | |||||
| 22 | ||||||
| 23 | ||||||
| 24 | function P erformCalc ulation(fo rmula) { | |||||
| 25 | ||||||
| 26 | va r serverUr l = N52.Di alogHelper s.GetServe rUrl(); | |||||
| 27 | ||||||
| 28 | O DataPath = serverUrl + "/XRMSe rvices/201 1/Organiza tionData.s vc"; | |||||
| 29 | ||||||
| 30 | ||||||
| 31 | //Call s the REST endpoint to Create a new Nort h52 Config | |||||
| 32 | var js onNorth52C onfig = wi ndow.JSON. stringify( CreateNort h52Formula Calculatio n(formula) ); | |||||
| 33 | ||||||
| 34 | $.ajax ({ type: " POST", | |||||
| 35 | co ntentType: "applicat ion/json; charset=ut f-8", | |||||
| 36 | da tatype: "j son", | |||||
| 37 | ur l: ODataPa th + "/nor th52_formu lacalculat ionSet", | |||||
| 38 | da ta: jsonNo rth52Confi g, | |||||
| 39 | be foreSend: function ( XMLHttpReq uest) {XML HttpReques t.setReque stHeader(" Accept", " applicatio n/json"); | |||||
| 40 | }, | |||||
| 41 | su ccess: fun ction (dat a, textSta tus, XmlHt tpRequest) { | |||||
| 42 | result = data.d.nor th52_Resul t; | |||||
| 43 | formulaty pe = data. d.north52_ FormulaTyp e; | |||||
| 44 | ||||||
| 45 | if ((res ult != 'Fa lse') && ( result != 'NoOp') ) | |||||
| 46 | { | |||||
| 47 | ||||||
| 48 | if (form ulatype == '21789001 0') | |||||
| 49 | Displa yMessage(r esult, 'in fo'); | |||||
| 50 | else if (formulaty pe == '217 890008') | |||||
| 51 | Disp layMessage (result, ' warn'); | |||||
| 52 | else | |||||
| 53 | Disp layMessage (result, ' error'); | |||||
| 54 | } | |||||
| 55 | ||||||
| 56 | }, | |||||
| 57 | er ror: funct ion (XmlHt tpRequest, textStatu s, errorTh rown) { | |||||
| 58 | var calc ulatednoti fications = document .getElemen tById("cal culatednot ifications "); | |||||
| 59 | calculat ednotifica tions.valu e = "??"; | |||||
| 60 | } | |||||
| 61 | }); | |||||
| 62 | ||||||
| 63 | ||||||
| 64 | ||||||
| 65 | ||||||
| 66 | } | |||||
| 67 | ||||||
| 68 | function D isplayMess age(messag e, mode) { | |||||
| 69 | ||||||
| 70 | var boxId = "n52form ulamanager "; | |||||
| 71 | ||||||
| 72 | ||||||
| 73 | if (!messa ge || mess age=="") { return;} | |||||
| 74 | ||||||
| 75 | var messag edisplay = document. createElem ent("DIV") ; | |||||
| 76 | messagedis play.style .height = "16px"; | |||||
| 77 | messagedis play.style .display = "table-ce ll"; | |||||
| 78 | messagedis play.style .verticalA lign = "mi ddle"; | |||||
| 79 | messagedis play.id = boxId; | |||||
| 80 | messagedis play.style .border = "1px solid #f1c43f " ; | |||||
| 81 | ||||||
| 82 | if (N52.Di alogHelper s.IsUR12Pl us() == fa lse) | |||||
| 83 | message display.st yle.width = "100%"; | |||||
| 84 | else | |||||
| 85 | message display.st yle.width = "2500px" ; | |||||
| 86 | ||||||
| 87 | ||||||
| 88 | var colour = "#00000 0"; | |||||
| 89 | ||||||
| 90 | ||||||
| 91 | switch (mo de) { | |||||
| 92 | ||||||
| 93 | case "info ": | |||||
| 94 | messagedis play.style .backgroun d = "#ffff ae url('/_ imgs/error /notif_icn _info16.pn g') 16px 5 5% no-repe at"; | |||||
| 95 | messagedis play.style .borderCol or = "#f1c 43f "; | |||||
| 96 | break; | |||||
| 97 | ||||||
| 98 | case "warn ": | |||||
| 99 | messagedis play.style .backgroun d = "#ffff ae url('/_ imgs/error /notif_icn _warn16.pn g') 16px 5 5% no-repe at"; | |||||
| 100 | messagedis play.style .borderCol or = "#f1c 43f "; | |||||
| 101 | break; | |||||
| 102 | ||||||
| 103 | default: | |||||
| 104 | messagedis play.style .backgroun d = "#ffff ae url('/_ imgs/error /notif_icn _crit16.pn g') 16px 5 5% no-repe at"; | |||||
| 105 | messagedis play.style .borderCol or = "#f1c 43f "; | |||||
| 106 | break; | |||||
| 107 | ||||||
| 108 | } | |||||
| 109 | ||||||
| 110 | messagedis play.inner HTML = "<t able cellp adding=0 c ellspacing =0 border= 0 width=10 0% height= 100%><tr w idth=100% height=100 %><td widt h=100% hei ght=100% v align=midd le style=\ "font-size : 14px; co lor: " + c olour + "; \"> " + " & nbsp;  ; &nb sp; & nbsp;  ; " + message + "</td></t r></table> "; | |||||
| 111 | ||||||
| 112 | parent.doc ument.getE lementById ("crmFormT abContaine r").insert Before(mes sagedispla y, parent. document.g etElementB yId("crmFo rmTabConta iner").fir stChild); | |||||
| 113 | ||||||
| 114 | } | |||||
| 115 | ||||||
| 116 | function C reateNorth 52FormulaC alculation (formula) | |||||
| 117 | { | |||||
| 118 | ||||||
| 119 | var no rth52Formu laCalculat ion = new Object(); | |||||
| 120 | ||||||
| 121 | north5 2FormulaCa lculation. north52_na me = formu la; | |||||
| 122 | north5 2FormulaCa lculation. north52_Ta rgetEntity ID = paren t.Xrm.Page .data.enti ty.getId() ; | |||||
| 123 | ||||||
| 124 | return north52Fo rmulaCalcu lation ; | |||||
| 125 | ||||||
| 126 | } | |||||
| 127 | ||||||
| 128 | function o nLoad() | |||||
| 129 | { | |||||
| 130 | ||||||
| 131 | if ((par ent != nul l) && (par ent.Xrm.Pa ge != null ) && (pare nt.Xrm.Pag e.ui != nu ll) ) | |||||
| 132 | { | |||||
| 133 | var child NodesCount = parent. document.g etElementB yId("crmNo tification s").childN odes.lengt h; | |||||
| 134 | ||||||
| 135 | if (child NodesCount == 0) | |||||
| 136 | { | |||||
| 137 | if ( ( parent.Xrm .Page.ui.g etFormType () == 2) || (parent .Xrm.Page. ui.getForm Type() == 3) || (par ent.Xrm.Pa ge.ui.getF ormType() == 4) ) | |||||
| 138 | { | |||||
| 139 | Re trieveExec uteFormula s(); | |||||
| 140 | } | |||||
| 141 | } | |||||
| 142 | ||||||
| 143 | va r calculat ednotifica tions = pa rent.Xrm.P age.getCon trol("WebR esource_No tification s").getObj ect().cont entWindow. document.g etElementB yId("calcu latednotif ications") ; | |||||
| 144 | if (calculat ednotifica tions.valu e != "??") | |||||
| 145 | { | |||||
| 146 | var contro lname = se lf.self.fr ameElement .id; | |||||
| 147 | var contro l = parent .Xrm.Page. ui.control s.get(cont rolname); | |||||
| 148 | control.se tVisible(f alse); | |||||
| 149 | } | |||||
| 150 | } | |||||
| 151 | } | |||||
| 152 | ||||||
| 153 | function R etrieveExe cuteFormul as() | |||||
| 154 | { //Get the any q uery strin g paramete rs and loa d them | |||||
| 155 | //into t he vals ar ray | |||||
| 156 | ||||||
| 157 | ||||||
| 158 | var for mula = ""; | |||||
| 159 | var vals = new Arr ay(); | |||||
| 160 | if (loca tion.searc h != "") | |||||
| 161 | { | |||||
| 162 | vals = locatio n.search.s ubstr(1).s plit("&"); | |||||
| 163 | for (var i in vals) | |||||
| 164 | { | |||||
| 165 | vals[i] = vals[i].re place(/\+/ g, " ").sp lit("="); | |||||
| 166 | } | |||||
| 167 | //lo ok for the parameter named 'da ta' | |||||
| 168 | var found = fa lse; | |||||
| 169 | for (var i in vals) | |||||
| 170 | { | |||||
| 171 | if (vals[i ][0].toLow erCase() = = "data") | |||||
| 172 | { | |||||
| 173 | ||||||
| 174 | datav alue = va ls[i][1]; | |||||
| 175 | ||||||
| 176 | vals = decodeU RIComponen t(datavalu e).split(" &"); | |||||
| 177 | for (var i in vals) | |||||
| 178 | { | |||||
| 179 | vals[i] = vals[i]. replace(/\ +/g, " "). split("=") ; | |||||
| 180 | ||||||
| 181 | formula = vals[i][ 0]; | |||||
| 182 | formula = formula .replace(" [",""); | |||||
| 183 | formula = formula .replace(" ]",""); | |||||
| 184 | PerformC alculation (formula); | |||||
| 185 | } | |||||
| 186 | ||||||
| 187 | found = true; | |||||
| 188 | break; | |||||
| 189 | } | |||||
| 190 | } | |||||
| 191 | ||||||
| 192 | } | |||||
| 193 | ||||||
| 194 | } | |||||
| 195 | ||||||
| 196 | </SCRIPT> | |||||
| 197 | ||||||
| 198 | <META char set=utf-8> </HEAD> | |||||
| 199 | <BODY onlo ad=onLoad( );> | |||||
| 200 | <TABLE cel lSpacing=0 cellPaddi ng=0 width ="100%"> | |||||
| 201 | <TBODY> | |||||
| 202 | <TR> | |||||
| 203 | <TD id=cal culatednot ifications _td><INPUT style="WI DTH: 100%; IME-MODE: auto" id= calculated notificati ons class= ms-crm-Tex t req="0"> </TD></TR ></TBODY>< /TABLE></B ODY></HTML > |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.