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_sourcerelationship3F41D632-FD47-E111-890F-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 | 196 |
| 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 Source Attribute< /title> | |||||
| 2 | ||||||
| 3 | <style typ e="text/cs s"> | |||||
| 4 | ||||||
| 5 | html, body { | |||||
| 6 | margin: 0p x; | |||||
| 7 | padding: 0 px; | |||||
| 8 | background -color: tr ansparent; | |||||
| 9 | } | |||||
| 10 | </style> | |||||
| 11 | ||||||
| 12 | <script sr c="ClientG lobalConte xt.js.aspx "></script > | |||||
| 13 | ||||||
| 14 | <script ty pe="text/j avascript" src="nort h52_/javas cript/jque ry"></scri pt> | |||||
| 15 | ||||||
| 16 | <script ty pe="text/j avascript" src="nort h52_/javas cript/JSON 2"></scrip t> | |||||
| 17 | ||||||
| 18 | <script ty pe="text/j avascript" src="nort h52_/Javas cript/sdk. metadata.j s"></scrip t> | |||||
| 19 | ||||||
| 20 | <script ty pe="text/j avascript" src="nort h52_/javas cript/nort h52.htmlwe bresource. helper"></ script> | |||||
| 21 | ||||||
| 22 | ||||||
| 23 | ||||||
| 24 | ||||||
| 25 | ||||||
| 26 | ||||||
| 27 | <script ty pe="text/j avascript" > | |||||
| 28 | ||||||
| 29 | $(docume nt).ready( function ( ) { Source Relationsh ip.Init(); | |||||
| 30 | }); | |||||
| 31 | ||||||
| 32 | var Source Relationsh ip = {}; | |||||
| 33 | SourceRela tionship.E ntities; | |||||
| 34 | ||||||
| 35 | SourceRela tionship.D isable= fu nction() { | |||||
| 36 | $("#sou rcerelatio nship").at tr("disabl ed", true) ; | |||||
| 37 | } | |||||
| 38 | ||||||
| 39 | SourceRela tionship.I nit= funct ion() { | |||||
| 40 | ||||||
| 41 | $("#sour cerelation ship").hid e(); | |||||
| 42 | ||||||
| 43 | ||||||
| 44 | var da ta = N52.H TMLWebReso urceHelper .GetParame terByName( 'data'); | |||||
| 45 | ||||||
| 46 | ||||||
| 47 | if (da ta!= "") | |||||
| 48 | { | |||||
| 49 | var vals = N52 .HTMLWebRe sourceHelp er.GetData ParameterA rray(data) ; | |||||
| 50 | var N ame= vals [0][1]; | |||||
| 51 | var V alue= val s[1][1]; | |||||
| 52 | var i sInitialLo ad = vals [2][1]; | |||||
| 53 | ||||||
| 54 | Sourc eRelations hip.Load ( Name, Valu e, isIniti alLoad ); | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | ||||||
| 58 | } | |||||
| 59 | ||||||
| 60 | ||||||
| 61 | SourceRela tionship.S ort = func tion(a, b) { | |||||
| 62 | ||||||
| 63 | return ( a.innerHTM L > b.inne rHTML ) ? 1 : -1; | |||||
| 64 | }; | |||||
| 65 | ||||||
| 66 | SourceRela tionship.L oad = func tion(entit yDisplayNa me, entity LogicalNam e, initial Load) { | |||||
| 67 | ||||||
| 68 | ||||||
| 69 | //Retriev e attribut es | |||||
| 70 | SDK.M etadata.Re trieveEnti ty(SDK.Met adata.Enti tyFilters. Relationsh ips, entit yLogicalNa me, null, false, fun ction (ent ityMetadat a) { | |||||
| 71 | SourceRela tionship.s uccessRetr ieveAttrib utes(entit yMetadata, entityDis playName, initialLoa d); }, Sou rceRelatio nship.erro rRetrieveA ttributes) ; | |||||
| 72 | ||||||
| 73 | }; | |||||
| 74 | ||||||
| 75 | SourceRela tionship.s uccessRetr ieveAttrib utes = fun ction(enti tyMetadata , entityDi splayName, initialLo ad) { | |||||
| 76 | ||||||
| 77 | try | |||||
| 78 | { | |||||
| 79 | ||||||
| 80 | $("sele ct[id$=sou rcerelatio nship] > o ption").re move(); | |||||
| 81 | if (ent ityMetadat a.ManyToOn eRelations hips!= nul l) | |||||
| 82 | { | |||||
| 83 | ||||||
| 84 | // entityMeta data.ManyT oOneRelati onships.so rt(compare ); | |||||
| 85 | ||||||
| 86 | f or (var i = 0; i < e ntityMetad ata.ManyTo OneRelatio nships.len gth; i++) | |||||
| 87 | { | |||||
| 88 | var rel ationship = entityMe tadata.Man yToOneRela tionships[ i]; | |||||
| 89 | ||||||
| 90 | var tx t = relati onship.Ref erencedEnt ity; | |||||
| 91 | var va l = relati onship.Ref erencingAt tribute; | |||||
| 92 | ||||||
| 93 | text = val + " ( " + txt + ")"; | |||||
| 94 | value = val+"|"+ txt; | |||||
| 95 | ||||||
| 96 | N52.HT MLWebResou rceHelper. InsertOpti onSetItem( "sourcerel ationship" , text,val ue); | |||||
| 97 | } | |||||
| 98 | } | |||||
| 99 | ||||||
| 100 | isRes et = true; | |||||
| 101 | $("#s ourcerelat ionship op tion").sor t(SourceRe lationship .Sort).app endTo("#so urcerelati onship"); | |||||
| 102 | ||||||
| 103 | var formulaTyp e = parent .Xrm.Page. data.entit y.attribut es.get("no rth52_form ulatype"). getValue() ; | |||||
| 104 | if ( formulaTy pe != 217 890001 ) | |||||
| 105 | { | |||||
| 106 | p arent.Xrm. Page.ui.co ntrols.get ("WebResou rce_html_s ourcerelat ionship"). setVisible (false); | |||||
| 107 | r eturn; | |||||
| 108 | } | |||||
| 109 | ||||||
| 110 | curr entRelatio nship = pa rent.Xrm.P age.getAtt ribute("no rth52_sour cerelation ship").get Value(); | |||||
| 111 | if ( currentRel ationship !== null & & currentR elationshi p !=="") { | |||||
| 112 | if (init ialLoad == true) {is Reset = f alse;} | |||||
| 113 | ||||||
| 114 | SourceRe lationship .DropDownC hanged(cur rentRelati onship, is Reset ); | |||||
| 115 | $("#sour cerelation ship").val (currentRe lationship ); | |||||
| 116 | } | |||||
| 117 | else { | |||||
| 118 | $( '#sourcere lationship option:fi rst-child' ).attr("se lected", " selected") ; | |||||
| 119 | cu rrentRelat ionship = $("#source relationsh ip option: selected") .val(); | |||||
| 120 | So urceRelati onship.Dro pDownChang ed(current Relationsh ip); | |||||
| 121 | } | |||||
| 122 | ||||||
| 123 | $('#l oading').h ide(); | |||||
| 124 | $('#s ourcerelat ionship'). show(); | |||||
| 125 | ||||||
| 126 | } | |||||
| 127 | catch(e x) | |||||
| 128 | { | |||||
| 129 | alert ('North52 Formula Ma nager Exce ption: ' + ex.messag e); | |||||
| 130 | } | |||||
| 131 | ||||||
| 132 | }; | |||||
| 133 | ||||||
| 134 | SourceRela tionship.e rrorRetrie veAttribut es = funct ion(error) { | |||||
| 135 | alert( "North52 F ormula Man ager : " + error.mes sage); | |||||
| 136 | } | |||||
| 137 | ||||||
| 138 | SourceRela tionship.D ropDownCha nged= func tion(value , isReset) { | |||||
| 139 | ||||||
| 140 | try | |||||
| 141 | { | |||||
| 142 | ||||||
| 143 | if (va lue != nul l) | |||||
| 144 | { | |||||
| 145 | va r split = value.spli t("|"); | |||||
| 146 | en tityLogica lName = sp lit[1]; | |||||
| 147 | en tityDispla yName = sp lit[1]; | |||||
| 148 | ||||||
| 149 | va r url = pa rent.Xrm.P age.ui.con trols.get( 'WebResour ce_html_ta rgetentity ').getSrc( ); | |||||
| 150 | ur l = url.in dexOf('?') > 0 ? url .substring (0, url.in dexOf('?') ) : url; | |||||
| 151 | ||||||
| 152 | co mmand = en codeURICom ponent("ty pe=insert& entityDisp layName =" +entityDis playName + "&entityL ogicalName =" + entit yLogicalNa me+ "&isRe set=" + is Reset + "& random=" + Math.rand om()); | |||||
| 153 | ur l = url + "?data=" + command; | |||||
| 154 | ||||||
| 155 | pa rent.Xrm.P age.ui.con trols.get( 'WebResour ce_html_ta rgetentity ').setSrc( url); | |||||
| 156 | ||||||
| 157 | pa rent.Xrm.P age.data.e ntity.attr ibutes.get ("north52_ sourcerela tionship") .setValue( value); | |||||
| 158 | } | |||||
| 159 | ||||||
| 160 | } | |||||
| 161 | catch(e x) | |||||
| 162 | { | |||||
| 163 | alert ('North52 Formula Ma nager Exce ption: ' + ex.messag e); | |||||
| 164 | } | |||||
| 165 | ||||||
| 166 | } ; | |||||
| 167 | ||||||
| 168 | ||||||
| 169 | ||||||
| 170 | </script> | |||||
| 171 | ||||||
| 172 | <style typ e="text\cs s"> | |||||
| 173 | #loading { | |||||
| 174 | width: 1 00%; | |||||
| 175 | height: 100%; | |||||
| 176 | top: 0px ; | |||||
| 177 | left: 0p x; | |||||
| 178 | position : fixed; | |||||
| 179 | display: block; | |||||
| 180 | opacity: 0.7; | |||||
| 181 | backgrou nd-color: #fff; | |||||
| 182 | z-index: 99; | |||||
| 183 | text-ali gn: center ; | |||||
| 184 | } | |||||
| 185 | ||||||
| 186 | #loading-i mage { | |||||
| 187 | position : absolute ; | |||||
| 188 | top: 100 px; | |||||
| 189 | left: 24 0px; | |||||
| 190 | z-index: 100; | |||||
| 191 | } | |||||
| 192 | ||||||
| 193 | </style> | |||||
| 194 | ||||||
| 195 | <meta char set="utf-8 "> | |||||
| 196 | </head><bo dy> < /body></ht ml> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.