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_javascriptnorth52formulaloadalphaE2E7047C-1B5A-E411-8363-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 | 344 |
| 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 (typeof (N52) == "undefined ") | |||||
| 2 | { N52 = {} ; } | |||||
| 3 | ||||||
| 4 | ||||||
| 5 | N52.Formul aLoad = | |||||
| 6 | { | |||||
| 7 | ||||||
| 8 | ||||||
| 9 | SetFor mula: func tion (form ulaDescrip tion) { | |||||
| 10 | Xr m.Page.dat a.entity.a ttributes. get("north 52_formula descriptio n").setVal ue(formula Descriptio n); | |||||
| 11 | }, | |||||
| 12 | ||||||
| 13 | ||||||
| 14 | GetMes sage: func tion () { | |||||
| 15 | va r message = Xrm.Page .data.enti ty.attribu tes.get("n orth52_val idationmes sage").get Value(); | |||||
| 16 | va r formulaM anager = X rm.Page.ge tControl(" WebResourc e_formulam anager"); | |||||
| 17 | ||||||
| 18 | if (formulaM anager.get Object().C ontent.mai npage != n ull) { | |||||
| 19 | formulaM anager.get Object().C ontent.mai npage.SetM essage(mes sage); | |||||
| 20 | } | |||||
| 21 | }, | |||||
| 22 | ||||||
| 23 | ||||||
| 24 | ||||||
| 25 | SetFor mulaDescri ption: fun ction () { | |||||
| 26 | va r formulad escription = Xrm.Pag e.data.ent ity.attrib utes.get(" north52_fo rmuladescr iption").g etValue(); | |||||
| 27 | va r formulaM anager = X rm.Page.ge tControl(" WebResourc e_formulam anager"); | |||||
| 28 | ||||||
| 29 | if (formulaM anager.get Object().C ontent.mai npage != n ull) { | |||||
| 30 | formulaM anager.get Object().C ontent.mai npage.SetF ormulaDesc ription(fo rmuladescr iption); | |||||
| 31 | ||||||
| 32 | } | |||||
| 33 | ||||||
| 34 | }, | |||||
| 35 | ||||||
| 36 | ||||||
| 37 | Refres hSourceDet ail: funct ion () { | |||||
| 38 | va r entityna me = Xrm.P age.data.e ntity.attr ibutes.get ("north52_ sourceenti tyname").g etValue(); | |||||
| 39 | ||||||
| 40 | tr y { | |||||
| 41 | ||||||
| 42 | Xrm.Page .getContro l("WebReso urce_formu laeditor") .getObject ().content Window.win dow.Show(e ntityname) ; | |||||
| 43 | } | |||||
| 44 | ca tch (e) { | |||||
| 45 | setTimeo ut(functio n () { N52 .FormulaLo ad.Refresh SourceDeta il(entityn ame) }, 40 00); | |||||
| 46 | } | |||||
| 47 | ||||||
| 48 | }, | |||||
| 49 | ||||||
| 50 | SetDe faultName: function () { | |||||
| 51 | if (Xrm.Page .ui.getFor mType() == 1) { | |||||
| 52 | name = "accoun t"; | |||||
| 53 | name = name + " - " + Xr m.Page.get Attribute( "north52_f ormulatype ").getText (); | |||||
| 54 | name = name + " - " + ne w Date(); | |||||
| 55 | Xrm. Page.getAt tribute('n orth52_nam e').setVal ue(name); | |||||
| 56 | } | |||||
| 57 | ||||||
| 58 | }, | |||||
| 59 | ||||||
| 60 | Remove OldFormula Types: fun ction () { | |||||
| 61 | Xrm.Page .getContro l("north52 _formulaty pe").remov eOption(21 7890012); | |||||
| 62 | Xrm.Page .getContro l("north52 _formulaty pe").remov eOption(21 7890008); | |||||
| 63 | Xrm.Page .getContro l("north52 _formulaty pe").remov eOption(21 7890009); | |||||
| 64 | Xrm.Page .getContro l("north52 _formulaty pe").remov eOption(21 7890010); | |||||
| 65 | Xrm.Page .getContro l("north52 _formulaty pe").remov eOption(21 7890020); | |||||
| 66 | ||||||
| 67 | ||||||
| 68 | }, | |||||
| 69 | ||||||
| 70 | MaxWi ndow: func tion () { | |||||
| 71 | window.t op.moveTo( 0, 0); | |||||
| 72 | window.t op.resizeT o(screen.a vailWidth, screen.av ailHeight) ; | |||||
| 73 | ||||||
| 74 | ||||||
| 75 | }, | |||||
| 76 | ||||||
| 77 | ||||||
| 78 | Load: function ( ) { | |||||
| 79 | ||||||
| 80 | ||||||
| 81 | tr y { | |||||
| 82 | ||||||
| 83 | ||||||
| 84 | N52.Form ulaLoad.Ma xWindow(); | |||||
| 85 | N52.Form ulaLoad.Se tDefaultNa me(); | |||||
| 86 | N52.Form ulaLoad.Re moveOldFor mulaTypes( ); | |||||
| 87 | ||||||
| 88 | ||||||
| 89 | setTimeo ut(functio n(){ Xrm.P age.ui.tab s.get("N52 SystemSett ings").set DisplaySta te('collap sed'); }, 1000); | |||||
| 90 | setTimeo ut(functio n(){ Xrm.P age.ui.tab s.get("N52 Formula"). setFocus() ; }, 1000) ; | |||||
| 91 | ||||||
| 92 | } | |||||
| 93 | ca tch (ex) | |||||
| 94 | { | |||||
| 95 | alert("N orth52 For mula Manag er : Load Error: " + ex.messag e); } | |||||
| 96 | ||||||
| 97 | }, | |||||
| 98 | ||||||
| 99 | ||||||
| 100 | SetSou rceEntityP roperty: f unction (I sFromPageL oad) { | |||||
| 101 | ||||||
| 102 | if (Xrm.Page .data.enti ty.attribu tes.get("n orth52_mod e").getVal ue() == 21 7890002) | |||||
| 103 | Xrm.Page .data.enti ty.attribu tes.get("n orth52_sou rceentityp ropertycli entside"). setValue(" "); | |||||
| 104 | ||||||
| 105 | if (Xrm.Page .data.enti ty.attribu tes.get("n orth52_mod e").getVal ue() == 21 7890001) | |||||
| 106 | Xrm.Page .data.enti ty.attribu tes.get("n orth52_sou rceentityp roperty"). setValue(" "); | |||||
| 107 | ||||||
| 108 | }, | |||||
| 109 | ||||||
| 110 | ||||||
| 111 | ||||||
| 112 | ||||||
| 113 | SetVis ibilityByF ormulaType : function (IsFromPa geLoad) { | |||||
| 114 | ||||||
| 115 | ||||||
| 116 | tr y { | |||||
| 117 | ||||||
| 118 | var form ulaType = Xrm.Page.d ata.entity .attribute s.get("nor th52_formu latype").g etValue(); | |||||
| 119 | ||||||
| 120 | ||||||
| 121 | if (form ulaType == 217890000 || formul aType == 2 17890011 | | formulaT ype == 217 890007 || formulaTyp e == 21789 0012 || fo rmulaType == 2178900 16) { //Ca lculated f ield 21789 0000 Disp lay field 217890011 Display al ert 217890 007 | |||||
| 122 | Xrm. Page.ui.co ntrols.get ("north52_ displayfor mat").setV isible(tru e); | |||||
| 123 | Xrm. Page.ui.co ntrols.get ("north52_ validation message"). setVisible (true); | |||||
| 124 | ||||||
| 125 | ||||||
| 126 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0001); | |||||
| 127 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 128 | ||||||
| 129 | ||||||
| 130 | ||||||
| 131 | } | |||||
| 132 | else if (formulaTy pe == 2178 90018 || f ormulaType == 217890 019) { //2 17890018 associate, 217890019 disassoci ate | |||||
| 133 | ||||||
| 134 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0001); | |||||
| 135 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 136 | ||||||
| 137 | ||||||
| 138 | ||||||
| 139 | } | |||||
| 140 | else if (formulaTy pe == 2178 90017) { //Command Console 21 7890017 | |||||
| 141 | IsFr omPageLoad = 'false' ; | |||||
| 142 | Xrm. Page.getAt tribute('n orth52_nam e').setVal ue('N52 Co mmand'); | |||||
| 143 | N52. FormulaLoa d.HideAllC ontrols(); | |||||
| 144 | ||||||
| 145 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0001); | |||||
| 146 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 147 | ||||||
| 148 | ||||||
| 149 | ||||||
| 150 | Xrm. Page.data. entity.att ributes.ge t("north52 _sourceent ityname"). setValue(" north52_co mmand"); | |||||
| 151 | Xrm. Page.data. entity.att ributes.ge t("north52 _sourceent itypropert y").setVal ue(""); | |||||
| 152 | Xrm. Page.data. entity.att ributes.ge t("north52 _sourceent itypropert yclientsid e").setVal ue(""); | |||||
| 153 | Xrm. Page.data. entity.att ributes.ge t("north52 _sourcerel ationship" ).setValue (""); | |||||
| 154 | Xrm. Page.data. entity.att ributes.ge t("north52 _targetent ityname"). setValue(" "); | |||||
| 155 | Xrm. Page.data. entity.att ributes.ge t("north52 _targetent itypropert y").setVal ue(""); | |||||
| 156 | Xrm. Page.getAt tribute("n orth52_nam e").setReq uiredLevel ("none"); | |||||
| 157 | ||||||
| 158 | Xrm. Page.ui.co ntrols.get ("north52_ name").set Visible(fa lse); | |||||
| 159 | Xrm. Page.ui.co ntrols.get ("north52_ formulatyp e").setVis ible(false ); | |||||
| 160 | Xrm. Page.ui.co ntrols.get ("north52_ mode").set Visible(fa lse); | |||||
| 161 | Xrm. Page.ui.co ntrols.get ("north52_ shortcode" ).setVisib le(false); | |||||
| 162 | ||||||
| 163 | } | |||||
| 164 | else if (formulaTy pe == 2178 90006) { / /Display h yperlink 2 17890006 | |||||
| 165 | ||||||
| 166 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0001); | |||||
| 167 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 168 | ||||||
| 169 | ||||||
| 170 | ||||||
| 171 | } | |||||
| 172 | else if ( (formulaTy pe == 2178 90013) || (formulaTy pe == 2178 90020)) { //Save - p erform act ion 217890 013, Smart Flow 21789 0020 | |||||
| 173 | Xrm. Page.ui.co ntrols.get ("north52_ pipelineev ent").setV isible(tru e); | |||||
| 174 | ||||||
| 175 | ||||||
| 176 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0001); | |||||
| 177 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 178 | ||||||
| 179 | ||||||
| 180 | ||||||
| 181 | ||||||
| 182 | } | |||||
| 183 | el se if (for mulaType = = 21789000 4) { //Val idation 21 7890004 | |||||
| 184 | Xrm. Page.ui.co ntrols.get ("north52_ pipelineev ent").setV isible(tru e); | |||||
| 185 | ||||||
| 186 | Xrm. Page.ui.co ntrols.get ("north52_ validation message"). setVisible (true); | |||||
| 187 | ||||||
| 188 | Xrm. Page.getAt tribute("n orth52_pip elinestage ").setValu e(21789000 0); | |||||
| 189 | ||||||
| 190 | ||||||
| 191 | ||||||
| 192 | } | |||||
| 193 | e lse if (fo rmulaType == 2178900 01) { //Sa ve to pare nt 2178900 01 | |||||
| 194 | Xrm. Page.ui.co ntrols.get ("north52_ pipelineev ent").setV isible(tru e); | |||||
| 195 | ||||||
| 196 | ||||||
| 197 | ||||||
| 198 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0001); | |||||
| 199 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 200 | ||||||
| 201 | ||||||
| 202 | ||||||
| 203 | ||||||
| 204 | } | |||||
| 205 | el se if (for mulaType = = 21789000 3) { //Sav e to curre nt record - 21789000 3 | |||||
| 206 | Xrm. Page.ui.co ntrols.get ("north52_ pipelineev ent").setV isible(tru e); | |||||
| 207 | ||||||
| 208 | ||||||
| 209 | ||||||
| 210 | ||||||
| 211 | } | |||||
| 212 | e lse if (fo rmulaType == 2178900 15) { //Cl ientSide A ction - 21 7890015 | |||||
| 213 | ||||||
| 214 | Xrm. Page.ui.co ntrols.get ("north52_ pipelineev ent").setV isible(tru e); | |||||
| 215 | ||||||
| 216 | ||||||
| 217 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 218 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0002); | |||||
| 219 | ||||||
| 220 | ||||||
| 221 | ||||||
| 222 | ||||||
| 223 | } | |||||
| 224 | else if (f ormulaType == 217890 014) { // ClientSide Calc - 21 7890014 | |||||
| 225 | ||||||
| 226 | ||||||
| 227 | ||||||
| 228 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 229 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0002); | |||||
| 230 | ||||||
| 231 | ||||||
| 232 | ||||||
| 233 | } | |||||
| 234 | else if ( formulaTyp e == 21789 0005) { / /Auto Numb er - 21789 0005 | |||||
| 235 | Xrm. Page.ui.co ntrols.get ("north52_ pipelineev ent").setV isible(tru e); | |||||
| 236 | ||||||
| 237 | Xrm. Page.ui.co ntrols.get ("north52_ autonumber value").se tVisible(t rue); | |||||
| 238 | ||||||
| 239 | ||||||
| 240 | ||||||
| 241 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0001); | |||||
| 242 | Xrm. Page.getCo ntrol("nor th52_mode" ).removeOp tion(21789 0000); | |||||
| 243 | ||||||
| 244 | ||||||
| 245 | ||||||
| 246 | Xrm. Page.getAt tribute("n orth52_aut onumberval ue").setRe quiredLeve l("require d"); | |||||
| 247 | Xrm. Page.getAt tribute("n orth52_sou rcerelatio nship").se tValue("") ; | |||||
| 248 | ||||||
| 249 | ||||||
| 250 | } | |||||
| 251 | ||||||
| 252 | } | |||||
| 253 | ca tch (ex) { | |||||
| 254 | alert("N orth52 For mula Manag er : Formu la Type Er ror: " + e x.message) ; | |||||
| 255 | } | |||||
| 256 | ||||||
| 257 | }, | |||||
| 258 | ||||||
| 259 | ||||||
| 260 | N52For mulaDetail _Refresh: function ( ) { | |||||
| 261 | ||||||
| 262 | tr y { | |||||
| 263 | ||||||
| 264 | var cach ekey = 'En tityList' + Xrm.Page .context.g etOrgUniqu eName(); | |||||
| 265 | var cach ekey52 = ' EntityList 52' + Xrm. Page.conte xt.getOrgU niqueName( ); | |||||
| 266 | ||||||
| 267 | localSto rage.remov eItem(cach ekey); | |||||
| 268 | localSto rage.remov eItem(cach ekey52); | |||||
| 269 | ||||||
| 270 | } | |||||
| 271 | ca tch (e) { | |||||
| 272 | setTimeo ut(functio n () { N52 .FormulaLo ad.N52Form ulaDetail_ Refresh() }, 5000); | |||||
| 273 | } | |||||
| 274 | ||||||
| 275 | ||||||
| 276 | }, | |||||
| 277 | ||||||
| 278 | ||||||
| 279 | Advanc edToggleFi eldLayout: function (visible) { | |||||
| 280 | Xr m.Page.ui. controls.g et("north5 2_displayf ormat").se tVisible(v isible); | |||||
| 281 | Xr m.Page.ui. controls.g et("north5 2_validati onmessage" ).setVisib le(visible ); | |||||
| 282 | Xr m.Page.ui. controls.g et("north5 2_autonumb ervalue"). setVisible (visible); | |||||
| 283 | }, | |||||
| 284 | ||||||
| 285 | Advanc edToggle: function ( ) { | |||||
| 286 | ||||||
| 287 | tr y { | |||||
| 288 | ||||||
| 289 | N52.Form ulaLoad.Ad vancedTogg leFieldLay out(true); | |||||
| 290 | ||||||
| 291 | if (Xrm. Page.ui.ta bs.get('N5 2SystemSet tings').se ctions.get ('Advanced Settings') .getVisibl e()) { | |||||
| 292 | Xrm. Page.ui.co ntrols.get ("north52_ pipelinest age").setV isible(fal se); | |||||
| 293 | Xrm. Page.ui.co ntrols.get ("north52_ category") .setVisibl e(false); | |||||
| 294 | Xrm. Page.ui.co ntrols.get ("north52_ subcategor y").setVis ible(false ); | |||||
| 295 | Xrm. Page.ui.ta bs.get('N5 2SystemSet tings').se ctions.get ('Advanced Settings') .setVisibl e(false); | |||||
| 296 | } | |||||
| 297 | else { | |||||
| 298 | Xrm. Page.ui.co ntrols.get ("north52_ pipelinest age").setV isible(tru e); | |||||
| 299 | Xrm. Page.ui.co ntrols.get ("north52_ validation message"). setVisible (true); | |||||
| 300 | Xrm. Page.ui.co ntrols.get ("north52_ displayfor mat").setV isible(tru e); | |||||
| 301 | Xrm. Page.ui.co ntrols.get ("north52_ category") .setVisibl e(true); | |||||
| 302 | Xrm. Page.ui.co ntrols.get ("north52_ subcategor y").setVis ible(true) ; | |||||
| 303 | Xrm. Page.ui.co ntrols.get ("north52_ validation message"). setVisible (false); | |||||
| 304 | Xrm. Page.ui.co ntrols.get ("north52_ displayfor mat").setV isible(fal se); | |||||
| 305 | ||||||
| 306 | Xrm. Page.ui.ta bs.get('N5 2SystemSet tings').se ctions.get ('Advanced Settings') .setVisibl e(true); | |||||
| 307 | } | |||||
| 308 | ||||||
| 309 | ||||||
| 310 | var form ulaType = Xrm.Page.d ata.entity .attribute s.get("nor th52_formu latype").g etValue(); | |||||
| 311 | ||||||
| 312 | if ((for mulaType = = 21789001 4) || (for mulaType = = 21789001 5)) { | |||||
| 313 | Xrm. Page.ui.co ntrols.get ("north52_ pipelinest age").setV isible(fal se); | |||||
| 314 | } | |||||
| 315 | ||||||
| 316 | N52.Form ulaLoad.Ad vancedTogg leFieldLay out(false) ; | |||||
| 317 | ||||||
| 318 | } | |||||
| 319 | ca tch (ex) | |||||
| 320 | { alert ("North52 Formula Ma nager : To ggle Error : " + ex.m essage); } | |||||
| 321 | ||||||
| 322 | }, | |||||
| 323 | ||||||
| 324 | Limite dDevice: f unction () { | |||||
| 325 | Xr m.Page.ui. tabs.get(' N52Formula ').setVisi ble(false) ; | |||||
| 326 | }, | |||||
| 327 | ||||||
| 328 | HideAl lControls: function () { | |||||
| 329 | ||||||
| 330 | Xr m.Page.ui. controls.g et("north5 2_pipeline event").se tVisible(f alse); | |||||
| 331 | ||||||
| 332 | Xr m.Page.ui. controls.g et("north5 2_displayf ormat").se tVisible(f alse); | |||||
| 333 | Xr m.Page.ui. controls.g et("north5 2_validati onmessage" ).setVisib le(false); | |||||
| 334 | Xr m.Page.ui. controls.g et("north5 2_autonumb ervalue"). setVisible (false); | |||||
| 335 | ||||||
| 336 | Xr m.Page.ui. controls.g et("north5 2_pipeline event").se tDisabled( false); | |||||
| 337 | ||||||
| 338 | Xr m.Page.get Attribute( "north52_a utonumberv alue").set RequiredLe vel("none" ); | |||||
| 339 | Xr m.Page.get Attribute( "north52_v alidationm essage").s etRequired Level("non e"); | |||||
| 340 | ||||||
| 341 | ||||||
| 342 | } | |||||
| 343 | ||||||
| 344 | }; //end t op |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.