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_javascriptnorth52formuladetailload4A9AE993-53EC-E011-916C-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 | 172 |
| 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.Formul aDetail = | |||||
| 5 | { | |||||
| 6 | Load: fun ction () | |||||
| 7 | { | |||||
| 8 | try{ | |||||
| 9 | ||||||
| 10 | ||||||
| 11 | w indow.top. moveTo(0,0 ); | |||||
| 12 | w indow.top. resizeTo(s creen.avai lWidth, sc reen.avail Height); | |||||
| 13 | ||||||
| 14 | X rm.Page.ui .controls. get('north 52_name'). setFocus() ; | |||||
| 15 | ||||||
| 16 | i f (typeof Xrm.Page.u i.clearFor mNotificat ion != "u ndefined") | |||||
| 17 | { | |||||
| 18 | Xrm.Page .ui.tabs.g et("Genera l").setVis ible(true) ; | |||||
| 19 | Xrm.Page .ui.tabs.g et("Genera te").setVi sible(fals e); | |||||
| 20 | Xrm.Page .ui.tabs.g et("Query" ).setVisib le(true); | |||||
| 21 | } | |||||
| 22 | e lse | |||||
| 23 | { | |||||
| 24 | Xrm.Page .ui.tabs.g et("Genera l").setVis ible(true) ; | |||||
| 25 | Xrm.Page .ui.tabs.g et("Genera te").setVi sible(true ); | |||||
| 26 | Xrm.Page .ui.tabs.g et("Query" ).setVisib le(true); | |||||
| 27 | } | |||||
| 28 | ||||||
| 29 | X rm.Page.ge tAttribute ("north52_ query").se tSubmitMod e("always" ); | |||||
| 30 | X rm.Page.ge tAttribute ("north52_ layout").s etSubmitMo de("always "); | |||||
| 31 | X rm.Page.ge tAttribute ("north52_ savedviewi d").setSub mitMode("a lways"); | |||||
| 32 | } | |||||
| 33 | catch(ex ) | |||||
| 34 | { | |||||
| 35 | alert( "North52 F ormula Man ager Excep tion:: " + ex.messag e); | |||||
| 36 | } | |||||
| 37 | ||||||
| 38 | }, | |||||
| 39 | ||||||
| 40 | ||||||
| 41 | SetPropert y: functio n(name, va lue) | |||||
| 42 | { | |||||
| 43 | ||||||
| 44 | try{ | |||||
| 45 | va r attribut e = Xrm.Pa ge.data.en tity.attri butes.get( name); | |||||
| 46 | a ttribute.s etValue(va lue); | |||||
| 47 | } | |||||
| 48 | cat ch(ex) | |||||
| 49 | { | |||||
| 50 | alert(" North52 Fo rmula Mana ger Except ion: " + e x.message) ; | |||||
| 51 | } | |||||
| 52 | ||||||
| 53 | }, | |||||
| 54 | ||||||
| 55 | SetVisibil ity: funct ion() | |||||
| 56 | { | |||||
| 57 | ||||||
| 58 | }, | |||||
| 59 | ||||||
| 60 | ||||||
| 61 | Validation : function (execution Context) | |||||
| 62 | { | |||||
| 63 | ||||||
| 64 | try{ | |||||
| 65 | ||||||
| 66 | var even tArgs = ex ecutionCon text.getEv entArgs(); | |||||
| 67 | ||||||
| 68 | if (eve ntArgs.get SaveMode() == 70) | |||||
| 69 | { | |||||
| 70 | ev entArgs.pr eventDefau lt(); | |||||
| 71 | re turn; | |||||
| 72 | } | |||||
| 73 | ||||||
| 74 | var filte rtype = Xr m.Page.dat a.entity.a ttributes. get("north 52_filter" ).getValue (); | |||||
| 75 | if (filte rtype != 2 17890000) | |||||
| 76 | { | |||||
| 77 | var filterent ityname = Xrm.Page.d ata.entity .attribute s.get("nor th52_filte rentitynam e").getVal ue(); | |||||
| 78 | var filteratt ributename = Xrm.Pag e.data.ent ity.attrib utes.get(" north52_fi lterattrib utename"). getValue() ; | |||||
| 79 | ||||||
| 80 | if ((filteren tityname = = null) || (filterat tributenam e == null) ) | |||||
| 81 | { | |||||
| 82 | alert("Nor th52 Formu la Manager : You must select a Filter Rel ationship. "); | |||||
| 83 | executionC ontext.get EventArgs( ).preventD efault(); | |||||
| 84 | } | |||||
| 85 | } | |||||
| 86 | ||||||
| 87 | } | |||||
| 88 | cat ch(ex) | |||||
| 89 | { | |||||
| 90 | alert(" North52 Fo rmula Mana ger Except ion: " + e x.message) ; | |||||
| 91 | } | |||||
| 92 | ||||||
| 93 | }, | |||||
| 94 | ||||||
| 95 | ||||||
| 96 | ClearFilte rFields: f unction() | |||||
| 97 | { | |||||
| 98 | ||||||
| 99 | try{ | |||||
| 100 | var filte rtype = Xr m.Page.dat a.entity.a ttributes. get("north 52_filter" ).getValue (); | |||||
| 101 | if (filte rtype == 2 17890000) | |||||
| 102 | { | |||||
| 103 | ||||||
| 104 | N52 .FormulaDe tail.SetPr operty("no rth52_filt erentityna me", ""); | |||||
| 105 | N52 .FormulaDe tail.SetPr operty("no rth52_filt erattribut ename", "" ); | |||||
| 106 | ||||||
| 107 | } | |||||
| 108 | ||||||
| 109 | } | |||||
| 110 | cat ch(ex) | |||||
| 111 | { | |||||
| 112 | alert(" North52 Fo rmula Mana ger Except ion: " + e x.message) ; | |||||
| 113 | } | |||||
| 114 | ||||||
| 115 | }, | |||||
| 116 | ||||||
| 117 | SaveFormul aDetail: f unction (e xecutionCo ntext) | |||||
| 118 | { | |||||
| 119 | ||||||
| 120 | var eve ntArgs = e xecutionCo ntext.getE ventArgs() ; | |||||
| 121 | ||||||
| 122 | if (eve ntArgs.get SaveMode() == 70) | |||||
| 123 | { | |||||
| 124 | ev entArgs.pr eventDefau lt(); | |||||
| 125 | re turn; | |||||
| 126 | } | |||||
| 127 | }, | |||||
| 128 | ||||||
| 129 | ||||||
| 130 | SetFetchXm lQuery: fu nction(exe cutionCont ext) | |||||
| 131 | { | |||||
| 132 | ||||||
| 133 | ||||||
| 134 | try | |||||
| 135 | { | |||||
| 136 | ||||||
| 137 | ||||||
| 138 | Xrm.Pag e.data.ent ity.attrib utes.get(" north52_na me").setSu bmitMode(" always"); | |||||
| 139 | var que ry = Xrm.P age.data.e ntity.attr ibutes.get ("north52_ query").ge tValue(); | |||||
| 140 | var par amContent = "content IFrame"; | |||||
| 141 | ||||||
| 142 | if (doc ument.getE lementById ("IFRAME_a dvancedfin d") == nul l) return; | |||||
| 143 | if (doc ument.getE lementById ("IFRAME_a dvancedfin d").conten tWindow.do cument.get ElementByI d(paramCon tent) == n ull) retur n; | |||||
| 144 | ||||||
| 145 | var exi sts = docu ment.getEl ementById( "IFRAME_ad vancedfind ").content Window.doc ument.getE lementById (paramCont ent); | |||||
| 146 | ||||||
| 147 | if ((e xists == n ull) || (t ypeof(exis ts ) == 'u ndefined') ) paramCo ntent = "c ontentIFra me0"; | |||||
| 148 | ||||||
| 149 | var fet chxml = do cument.get ElementByI d("IFRAME_ advancedfi nd").conte ntWindow.d ocument.ge tElementBy Id(paramCo ntent).con tentWindow .document. getElement ById("resu ltRender") .FetchXml. value; | |||||
| 150 | var lay outxml = d ocument.ge tElementBy Id("IFRAME _advancedf ind").cont entWindow. document.g etElementB yId(paramC ontent).co ntentWindo w.document .getElemen tById("res ultRender" ).LayoutXm l.value; | |||||
| 151 | ||||||
| 152 | ||||||
| 153 | if ((fetchxml != null) && (fetchx ml.length != 0)) | |||||
| 154 | { | |||||
| 155 | N52.Formu laDetail.S etProperty ("north52_ query", fe tchxml); | |||||
| 156 | N52.Formu laDetail.S etProperty ("north52_ layout", l ayoutxml); | |||||
| 157 | } | |||||
| 158 | el se if ((qu ery == nul l) || (que ry .length == 0)) | |||||
| 159 | { | |||||
| 160 | alert('Nor th52 Formu la Manager : You must build an Advanced F ind Query & Execute it by, cli cking the red exclam ation butt on before you can sa ve this re cord.' ); | |||||
| 161 | execution Context.ge tEventArgs ().prevent Default(); | |||||
| 162 | } | |||||
| 163 | ||||||
| 164 | } | |||||
| 165 | catch(ex ) | |||||
| 166 | { | |||||
| 167 | alert( "North52 F ormula Man ager Excep tion: " + ex.message ); | |||||
| 168 | } | |||||
| 169 | ||||||
| 170 | } | |||||
| 171 | ||||||
| 172 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.