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_javascriptnorth52scheduleloadE63D1ED5-4AF7-E111-B2EF-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 | 261 |
| 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 | N52.Schedu le = | |||||
| 5 | { | |||||
| 6 | Load: fun ction () | |||||
| 7 | { | |||||
| 8 | try{ | |||||
| 9 | ||||||
| 10 | N 52.Schedul e.SetVisib ilityForFr equencyTyp e(); | |||||
| 11 | N 52.Schedul e.SetVisib ilityForSc heduleType (); | |||||
| 12 | ||||||
| 13 | w indow.top. moveTo(0,0 ); | |||||
| 14 | w indow.top. resizeTo(s creen.avai lWidth, sc reen.avail Height); | |||||
| 15 | ||||||
| 16 | X rm.Page.ui .controls. get('north 52_name'). setFocus() ; | |||||
| 17 | ||||||
| 18 | i f ((typeof Xrm.Page. ui.clearFo rmNotifica tion == " undefined" ) && (Xrm. Page.ui.fo rmSelector .getCurren tItem().ge tLabel() = = "CRM2011 ") ) | |||||
| 19 | { | |||||
| 20 | Xrm .Page.ui.t abs.get("t ab_query") .setVisibl e(true); | |||||
| 21 | var finalUrl = N52.Dial ogHelpers. GetServerU rl() + "/m ain.aspx?e xtraqs=&pa getype=adv ancedfind" ; | |||||
| 22 | Xrm .Page.ui.c ontrols.ge t("IFRAME_ advancedfi nd").setVi sible(true ); | |||||
| 23 | Xrm .Page.getC ontrol("IF RAME_advan cedfind"). setSrc(fin alUrl); | |||||
| 24 | } | |||||
| 25 | ||||||
| 26 | //Only on creates | |||||
| 27 | if (Xrm.Pa ge.ui.getF ormType() == 1) | |||||
| 28 | { | |||||
| 29 | Xrm .Page.getA ttribute(" north52_st artdatetim e").setVal ue(new Dat e()); | |||||
| 30 | Xrm .Page.getA ttribute(" north52_qu erydelayin terval").s etValue(10 ); | |||||
| 31 | Xrm .Page.getA ttribute(" north52_qu eryrecordl imit").set Value(250) ; | |||||
| 32 | Xrm .Page.getA ttribute(" north52_cu rrentexecu tioncount" ).setValue (0); | |||||
| 33 | Xrm .Page.getA ttribute(" north52_cu rrentpagec ount").set Value(0); | |||||
| 34 | Xrm .Page.getA ttribute(" north52_mi npagecount ").setValu e(1); | |||||
| 35 | Xrm .Page.getA ttribute(" north52_ma xinfinitel oopdepth") .setValue( 8); | |||||
| 36 | Xrm .Page.getA ttribute(" north52_mi ninactives econds").s etValue(36 00); | |||||
| 37 | Xrm .Page.getA ttribute(" north52_fe tchxmlquer ylimit").s etValue(50 00); | |||||
| 38 | } | |||||
| 39 | ||||||
| 40 | ||||||
| 41 | Xrm .Page.getA ttribute(" north52_qu ery").setS ubmitMode( "always"); | |||||
| 42 | Xrm .Page.getA ttribute(" north52_la yout").set SubmitMode ("always") ; | |||||
| 43 | Xrm .Page.getA ttribute(" north52_sa vedviewid" ).setSubmi tMode("alw ays"); | |||||
| 44 | ||||||
| 45 | } | |||||
| 46 | catch(ex ) | |||||
| 47 | { | |||||
| 48 | alert( "North52 F ormula Man ager Excep tion:: " + ex.messag e); | |||||
| 49 | } | |||||
| 50 | ||||||
| 51 | }, | |||||
| 52 | ||||||
| 53 | ||||||
| 54 | SetPropert y: functio n(name, va lue) | |||||
| 55 | { | |||||
| 56 | ||||||
| 57 | try{ | |||||
| 58 | va r attribut e = Xrm.Pa ge.data.en tity.attri butes.get( name); | |||||
| 59 | a ttribute.s etValue(va lue); | |||||
| 60 | } | |||||
| 61 | cat ch(ex) | |||||
| 62 | { | |||||
| 63 | alert(" North52 Fo rmula Mana ger Except ion: " + e x.message) ; | |||||
| 64 | } | |||||
| 65 | ||||||
| 66 | }, | |||||
| 67 | ||||||
| 68 | SetVisibil ityForSche duleType: function() | |||||
| 69 | { | |||||
| 70 | var sc heduletype = Xrm.Pag e.data.ent ity.attrib utes.get(" north52_sc heduletype ").getValu e(); | |||||
| 71 | Xrm.Pag e.getAttri bute("nort h52_query" ).setRequi redLevel(' required') ; | |||||
| 72 | ||||||
| 73 | if (s cheduletyp e == 21789 0000) | |||||
| 74 | { | |||||
| 75 | X rm.Page.ge tAttribute ("north52_ workflowid ").setRequ iredLevel( 'required' ); | |||||
| 76 | X rm.Page.ui .controls. get("north 52_workflo wid").setV isible(tru e); | |||||
| 77 | X rm.Page.ui .tabs.get( "FetchXmlQ uery").set Visible(tr ue); | |||||
| 78 | } | |||||
| 79 | else if (schedu letype == 217890002) | |||||
| 80 | { | |||||
| 81 | Xrm.Page.g etAttribut e("north52 _query").s etRequired Level('non e'); | |||||
| 82 | Xrm.Page.g etAttribut e("north52 _workflowi d").setReq uiredLevel ('required '); | |||||
| 83 | Xrm.Page.u i.controls .get("nort h52_workfl owid").set Visible(tr ue); | |||||
| 84 | Xrm.Page.u i.tabs.get ("FetchXml Query").se tVisible(f alse); | |||||
| 85 | } | |||||
| 86 | else if (schedu letype == 217890001) | |||||
| 87 | { | |||||
| 88 | X rm.Page.ge tAttribute ("north52_ workflowid ").setRequ iredLevel( 'none'); | |||||
| 89 | X rm.Page.ui .controls. get("north 52_workflo wid").setV isible(fal se); | |||||
| 90 | X rm.Page.ui .tabs.get( "FetchXmlQ uery").set Visible(tr ue); | |||||
| 91 | } | |||||
| 92 | else | |||||
| 93 | Xr m.Page.ui. controls.g et("north5 2_workflow id").setVi sible(fals e); | |||||
| 94 | ||||||
| 95 | }, | |||||
| 96 | ||||||
| 97 | SetVisibi lityForFre quencyType : function () | |||||
| 98 | { | |||||
| 99 | var fre quency = X rm.Page.da ta.entity. attributes .get("nort h52_freque ncy").getV alue(); | |||||
| 100 | Xrm.Pa ge.getAttr ibute("nor th52_every x").setReq uiredLevel ('none'); | |||||
| 101 | ||||||
| 102 | ||||||
| 103 | if (f requency == 2178900 00) | |||||
| 104 | X rm.Page.ui .controls. get("north 52_everyx" ).setVisib le(false); | |||||
| 105 | else if (freque ncy == 21 7890002) | |||||
| 106 | X rm.Page.ui .controls. get("north 52_everyx" ).setVisib le(false); | |||||
| 107 | else if (freque ncy == 21 7890003) | |||||
| 108 | X rm.Page.ui .controls. get("north 52_everyx" ).setVisib le(false); | |||||
| 109 | else if (freque ncy == 21 7890004) | |||||
| 110 | X rm.Page.ui .controls. get("north 52_everyx" ).setVisib le(false); | |||||
| 111 | else if (freque ncy == 21 7890005) | |||||
| 112 | X rm.Page.ui .controls. get("north 52_everyx" ).setVisib le(false); | |||||
| 113 | else if (freque ncy == 21 7890006) | |||||
| 114 | X rm.Page.ui .controls. get("north 52_everyx" ).setVisib le(false); | |||||
| 115 | else if (freque ncy == 21 7890007) | |||||
| 116 | X rm.Page.ui .controls. get("north 52_everyx" ).setVisib le(false); | |||||
| 117 | else | |||||
| 118 | { | |||||
| 119 | Xr m.Page.get Attribute( "north52_e veryx").se tRequiredL evel('requ ired'); | |||||
| 120 | Xr m.Page.ui. controls.g et("north5 2_everyx") .setVisibl e(true); | |||||
| 121 | } | |||||
| 122 | }, | |||||
| 123 | ||||||
| 124 | AdvancedTo ggle: func tion () | |||||
| 125 | { | |||||
| 126 | ||||||
| 127 | try | |||||
| 128 | { | |||||
| 129 | if ( Xrm.Pag e.ui.tabs. get("Gener al").secti ons.get("P agingSetti ngs").getV isible() ) { | |||||
| 130 | Xrm.P age.ui.tab s.get("Gen eral").sec tions.get( "PagingSet tings").se tVisible(f alse); | |||||
| 131 | Xrm.P age.ui.tab s.get("Gen eral").sec tions.get( "Descripti onSettings ").setVisi ble(false) ; | |||||
| 132 | Xrm.P age.ui.con trols.get( "north52_m axexecutio ncount").s etVisible( false); | |||||
| 133 | Xrm. Page.ui.co ntrols.get ("north52_ background workflow") .setVisibl e(false); | |||||
| 134 | Xrm. Page.ui.co ntrols.get ("north52_ stopschedu le").setVi sible(fals e); | |||||
| 135 | Xrm. Page.ui.co ntrols.get ("north52_ mininactiv eseconds") .setVisibl e(false); | |||||
| 136 | Xrm. Page.ui.co ntrols.get ("north52_ schedulepa rentid").s etVisible( false); | |||||
| 137 | Xrm. Page.ui.co ntrols.get ("north52_ category") .setVisibl e(false); | |||||
| 138 | Xrm. Page.ui.co ntrols.get ("north52_ subcategor y").setVis ible(false ); | |||||
| 139 | Xrm. Page.ui.co ntrols.get ("north52_ descriptio n").setVis ible(false ); | |||||
| 140 | Xrm. Page.ui.co ntrols.get ("north52_ currentexe cutioncoun t").setVis ible(false ); | |||||
| 141 | Xrm. Page.ui.co ntrols.get ("north52_ queryrecor dlimit").s etVisible( false); | |||||
| 142 | Xrm. Page.ui.co ntrols.get ("north52_ querydelay interval") .setVisibl e(false); | |||||
| 143 | Xrm. Page.ui.co ntrols.get ("north52_ executewor kflowactio nonce").se tVisible(f alse); | |||||
| 144 | Xrm. Page.ui.co ntrols.get ("north52_ originalex ecutionsta rtdatetime ").setVisi ble(false) ; | |||||
| 145 | Xrm. Page.ui.co ntrols.get ("north52_ daystartti me").setVi sible(fals e); | |||||
| 146 | Xrm. Page.ui.co ntrols.get ("north52_ dayendtime ").setVisi ble(false) ; | |||||
| 147 | ||||||
| 148 | } | |||||
| 149 | el se { | |||||
| 150 | Xrm .Page.ui.c ontrols.ge t("north52 _stopsched ule").setV isible(tru e); | |||||
| 151 | Xrm .Page.ui.t abs.get("G eneral").s ections.ge t("PagingS ettings"). setVisible (true); | |||||
| 152 | Xrm .Page.ui.t abs.get("G eneral").s ections.ge t("Descrip tionSettin gs").setVi sible(true ); | |||||
| 153 | Xrm .Page.ui.c ontrols.ge t("north52 _maxexecut ioncount") .setVisibl e(true); | |||||
| 154 | Xrm .Page.ui.c ontrols.ge t("north52 _backgroun dworkflow" ).setVisib le(true); | |||||
| 155 | Xrm .Page.ui.c ontrols.ge t("north52 _stopsched ule").setV isible(tru e); | |||||
| 156 | Xrm .Page.ui.c ontrols.ge t("north52 _mininacti veseconds" ).setVisib le(true); | |||||
| 157 | Xrm .Page.ui.c ontrols.ge t("north52 _schedulep arentid"). setVisible (true); | |||||
| 158 | Xrm .Page.ui.c ontrols.ge t("north52 _category" ).setVisib le(true); | |||||
| 159 | Xrm. Page.ui.co ntrols.get ("north52_ subcategor y").setVis ible(true) ; | |||||
| 160 | Xrm. Page.ui.co ntrols.get ("north52_ descriptio n").setVis ible(true) ; | |||||
| 161 | Xrm. Page.ui.co ntrols.get ("north52_ currentexe cutioncoun t").setVis ible(true) ; | |||||
| 162 | Xrm. Page.ui.co ntrols.get ("north52_ queryrecor dlimit").s etVisible( true); | |||||
| 163 | Xrm. Page.ui.co ntrols.get ("north52_ querydelay interval") .setVisibl e(true); | |||||
| 164 | Xrm. Page.ui.co ntrols.get ("north52_ executewor kflowactio nonce").se tVisible(t rue); | |||||
| 165 | Xrm. Page.ui.co ntrols.get ("north52_ originalex ecutionsta rtdatetime ").setVisi ble(true); | |||||
| 166 | Xrm. Page.ui.co ntrols.get ("north52_ daystartti me").setVi sible(true ); | |||||
| 167 | Xrm. Page.ui.co ntrols.get ("north52_ dayendtime ").setVisi ble(true); | |||||
| 168 | ||||||
| 169 | } | |||||
| 170 | ||||||
| 171 | } | |||||
| 172 | catch(e x) | |||||
| 173 | { alert (ex.messag e);} | |||||
| 174 | ||||||
| 175 | }, | |||||
| 176 | ||||||
| 177 | NonInterne tExplorerV ersion: fu nction () | |||||
| 178 | { | |||||
| 179 | ||||||
| 180 | Xrm.Pa ge.ui.cont rols.get(" north52_pi pelineeven t").setVis ible(false ); | |||||
| 181 | Xrm.Pa ge.ui.cont rols.get(" WebResourc e_html_sou rceentity" ).setVisib le(false); | |||||
| 182 | Xrm.Pa ge.ui.cont rols.get(" WebResourc e_html_met adata_sour ceproperty ").setVisi ble(false) ; | |||||
| 183 | Xrm.Pa ge.ui.cont rols.get(" WebResourc e_html_sou rcerelatio nship").se tVisible(f alse); | |||||
| 184 | Xrm.Pa ge.ui.cont rols.get(" WebResourc e_html_tar getentity" ).setVisib le(false); | |||||
| 185 | Xrm.Pa ge.ui.cont rols.get(" WebResourc e_html_met adata_targ etproperty ").setVisi ble(false) ; | |||||
| 186 | Xrm.Pa ge.ui.cont rols.get(" north52_di splayforma t").setVis ible(false ); | |||||
| 187 | Xrm.Pa ge.ui.cont rols.get(" north52_va lidationme ssage").se tVisible(f alse); | |||||
| 188 | Xrm.Pa ge.ui.cont rols.get(" north52_au tonumberva lue").setV isible(fal se); | |||||
| 189 | Xrm.Pa ge.ui.cont rols.get(" north52_na me").setVi sible(fals e); | |||||
| 190 | Xrm.Pa ge.ui.cont rols.get(" north52_fo rmulatype" ).setVisib le(false); | |||||
| 191 | ||||||
| 192 | Xrm. Page.ui.ta bs.forEach (function (control, index) { | |||||
| 193 | control.se tVisible(f alse); | |||||
| 194 | ||||||
| 195 | }); | |||||
| 196 | ||||||
| 197 | Xrm.P age.ui.tab s.get('N52 NonIEMessa ge').setVi sible(true ); | |||||
| 198 | Xrm.P age.ui.con trols.get( "WebResour ce_html_fo rmula_noni e").setVis ible(true) ; | |||||
| 199 | ||||||
| 200 | }, | |||||
| 201 | ||||||
| 202 | ||||||
| 203 | SetFetchXm lQuery: fu nction(Exe cutionObj) | |||||
| 204 | { | |||||
| 205 | ||||||
| 206 | ||||||
| 207 | try | |||||
| 208 | { | |||||
| 209 | ||||||
| 210 | var eve ntArgs = E xecutionOb j.getEvent Args(); | |||||
| 211 | ||||||
| 212 | if (eve ntArgs.get SaveMode() == 70) | |||||
| 213 | { | |||||
| 214 | ev entArgs.pr eventDefau lt(); | |||||
| 215 | re turn; | |||||
| 216 | } | |||||
| 217 | ||||||
| 218 | ||||||
| 219 | ||||||
| 220 | if (Xrm .Page.ui.f ormSelecto r.getCurre ntItem().g etLabel() == "CRM201 1") | |||||
| 221 | { | |||||
| 222 | ||||||
| 223 | Xr m.Page.dat a.entity.a ttributes. get("north 52_name"). setSubmitM ode("alway s"); | |||||
| 224 | va r query = Xrm.Page.d ata.entity .attribute s.get("nor th52_query ").getValu e(); | |||||
| 225 | va r paramCon tent = "co ntentIFram e"; | |||||
| 226 | ||||||
| 227 | if (document .getElemen tById("IFR AME_advanc edfind") = = null) re turn; | |||||
| 228 | va r exists = document. getElement ById("IFRA ME_advance dfind").co ntentWindo w.document .getElemen tById(para mContent); | |||||
| 229 | ||||||
| 230 | if ((exists == null) | | (typeof( exists ) = = 'undefin ed') ) par amContent = "content IFrame0"; | |||||
| 231 | ||||||
| 232 | va r fetchxml = documen t.getEleme ntById("IF RAME_advan cedfind"). contentWin dow.docume nt.getElem entById(pa ramContent ).contentW indow.docu ment.getEl ementById( "resultRen der").Fetc hXml.value ; | |||||
| 233 | va r layoutxm l = docume nt.getElem entById("I FRAME_adva ncedfind") .contentWi ndow.docum ent.getEle mentById(p aramConten t).content Window.doc ument.getE lementById ("resultRe nder").Lay outXml.val ue; | |||||
| 234 | ||||||
| 235 | if ((fetchxml != null) && (fetchx ml.length != 0)) | |||||
| 236 | { | |||||
| 237 | N52.Sched ule.SetPro perty("nor th52_query ", fetchxm l); | |||||
| 238 | N52.Sched ule.SetPro perty("nor th52_layou t", layout xml); | |||||
| 239 | } | |||||
| 240 | el se if ((qu ery == nul l) || (que ry .length == 0)) | |||||
| 241 | { | |||||
| 242 | alert('Nor th52 Formu la Manager ::: You mu st build a n Advanced Find Quer y & Execut e it by, c licking th e red excl amation bu tton befor e you can save this record.' ) ; | |||||
| 243 | ||||||
| 244 | if (Exec utionObj ! = null) | |||||
| 245 | { | |||||
| 246 | Execu tionObj.ge tEventArgs ().prevent Default(); | |||||
| 247 | } | |||||
| 248 | } | |||||
| 249 | ||||||
| 250 | } | |||||
| 251 | ||||||
| 252 | } | |||||
| 253 | catch(ex ) | |||||
| 254 | { | |||||
| 255 | alert( "North52 F ormula Man ager Excep tion: " + ex.message ); | |||||
| 256 | } | |||||
| 257 | ||||||
| 258 | ||||||
| 259 | } //End fu nctions | |||||
| 260 | ||||||
| 261 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.