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_metadata_property51DBD605-2448-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 | 237 |
| 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 Metadat a Property </title> | |||||
| 2 | <script sr c="ClientG lobalConte xt.js.aspx "></script > | |||||
| 3 | ||||||
| 4 | <script ty pe="text/j avascript" src="nort h52_/javas cript/jque ry"></scri pt> | |||||
| 5 | ||||||
| 6 | <script ty pe="text/j avascript" src="nort h52_/javas cript/JSON 2"></scrip t> | |||||
| 7 | ||||||
| 8 | <script ty pe="text/j avascript" src="nort h52_/Javas cript/sdk. metadata.j s"></scrip t> | |||||
| 9 | ||||||
| 10 | <script ty pe="text/j avascript" src="nort h52_/javas cript/nort h52.formul a.loadalph a"></scrip t> | |||||
| 11 | ||||||
| 12 | <script ty pe="text/j avascript" src="nort h52_/javas cript/nort h52.htmlwe bresource. helper"> | |||||
| 13 | ||||||
| 14 | ||||||
| 15 | ||||||
| 16 | ||||||
| 17 | </script> | |||||
| 18 | <link rel= "styleshee t" type="t ext/css" h ref="/_com mon/styles /fonts.css .aspx?lcid =1033"><li nk rel="st ylesheet" type="text /css" href ="/_common /styles/gl obal.css.a spx?lcid=1 033"><link rel="styl esheet" ty pe="text/c ss" href=" /_common/s tyles/sele ct.css.asp x?lcid=103 3"> | |||||
| 19 | <script ty pe="text/j avascript" > | |||||
| 20 | ||||||
| 21 | ||||||
| 22 | var Metada taProperty = {}; | |||||
| 23 | MetadataPr operty.par entReferen ceProperty = ""; | |||||
| 24 | MetadataPr operty.Cac heKey = "" ; | |||||
| 25 | ||||||
| 26 | MetadataPr operty.Dis able= func tion() { | |||||
| 27 | $("#met adataprope rty").attr ("disabled ", true); | |||||
| 28 | } | |||||
| 29 | ||||||
| 30 | MetadataPr operty.Ini t= functio n() { | |||||
| 31 | ||||||
| 32 | $("#met adataprope rty").hide (); | |||||
| 33 | ||||||
| 34 | ||||||
| 35 | var da ta = N52.H TMLWebReso urceHelper .GetParame terByName( 'data'); | |||||
| 36 | ||||||
| 37 | if (da ta!= "") | |||||
| 38 | { | |||||
| 39 | var vals = N5 2.HTMLWebR esourceHel per.GetDat aParameter Array(data ); | |||||
| 40 | var type = v als[0][1]; | |||||
| 41 | ||||||
| 42 | ||||||
| 43 | ||||||
| 44 | if (type == ' load') | |||||
| 45 | { | |||||
| 46 | var enti ty = vals [1][1]; | |||||
| 47 | var pare ntReferenc eProperty = vals[2] [1]; | |||||
| 48 | var addAl lPropertie sQuery= v als[3][1]; | |||||
| 49 | MetadataP roperty.pa rentRefere ncePropert y = parent ReferenceP roperty ; | |||||
| 50 | ||||||
| 51 | MetadataP roperty.Lo ad(entity , parentRe ferencePro perty , ad dAllProper tiesQuery) ; | |||||
| 52 | } | |||||
| 53 | els e if (type == 'query ') | |||||
| 54 | { | |||||
| 55 | var en tity = va ls[1][1]; | |||||
| 56 | var par entReferen ceProperty = vals[2 ][1]; | |||||
| 57 | var add AllPropert iesQuery= vals[3][1 ]; | |||||
| 58 | Metadat aProperty. parentRefe rencePrope rty = pare ntReferenc eProperty ; | |||||
| 59 | ||||||
| 60 | Metadat aProperty. LoadFromQu ery(addAll Properties Query); | |||||
| 61 | } | |||||
| 62 | els e if (type == 'clear ') | |||||
| 63 | MetadataPr operty.Cle ar(); | |||||
| 64 | } | |||||
| 65 | ||||||
| 66 | ||||||
| 67 | ||||||
| 68 | ||||||
| 69 | } | |||||
| 70 | ||||||
| 71 | MetadataPr operty.Cle ar= functi on() { | |||||
| 72 | $("sele ct[id$=met adataprope rty] > opt ion").remo ve(); | |||||
| 73 | N52.HTM LWebResour ceHelper.I nsertOptio nSetItem(" metadatapr operty", " ",""); | |||||
| 74 | ||||||
| 75 | $('#loa ding').hid e(); | |||||
| 76 | $('#met adataprope rty').show (); | |||||
| 77 | ||||||
| 78 | } | |||||
| 79 | ||||||
| 80 | MetadataPr operty.Sor t = functi on(a, b) { | |||||
| 81 | ||||||
| 82 | if (a.in nerHTML == 'All Prop erties') { | |||||
| 83 | ret urn -1; | |||||
| 84 | } | |||||
| 85 | else if (b.innerHT ML == 'All Propertie s') { | |||||
| 86 | retur n 1; | |||||
| 87 | } | |||||
| 88 | ||||||
| 89 | return ( a.innerHTM L > b.inne rHTML ) ? 1 : -1; | |||||
| 90 | } | |||||
| 91 | ||||||
| 92 | MetadataPr operty.Loa d = functi on(entity, parentRef erenceProp erty, addA llProperti es) { | |||||
| 93 | ||||||
| 94 | Metadat aProperty. parentRefe rencePrope rty = pare ntReferenc eProperty; | |||||
| 95 | Metadat aProperty. CacheKey = 'SingleEn tity' + pa rent.Xrm.P age.contex t.getOrgUn iqueName() + entity; | |||||
| 96 | ||||||
| 97 | ||||||
| 98 | S DK.Metadat a.Retrieve Entity(SDK .Metadata. EntityFilt ers.Attrib utes, enti ty, null, false, fun ction (ent ityMetadat a) { | |||||
| 99 | MetadataPr operty.suc cessRetrie veAttribut es(entityM etadata, p arentRefer enceProper ty, addAll Properties ); }, Meta dataProper ty.errorRe trieveAttr ibutes); | |||||
| 100 | }; | |||||
| 101 | ||||||
| 102 | ||||||
| 103 | ||||||
| 104 | MetadataPr operty.suc cessRetrie veAttribut es = funct ion(entity Metadata,p arentRefer enceProper ty, addAll Properties ) { | |||||
| 105 | ||||||
| 106 | try | |||||
| 107 | { | |||||
| 108 | ||||||
| 109 | ||||||
| 110 | ||||||
| 111 | ||||||
| 112 | ||||||
| 113 | $("sele ct[id$=met adataprope rty] > opt ion").remo ve(); | |||||
| 114 | ||||||
| 115 | if (add AllPropert ies == tru e) { | |||||
| 116 | N52. HTMLWebRes ourceHelpe r.InsertOp tionSetIte m("metadat aproperty" , "All Pro perties"," "); | |||||
| 117 | } | |||||
| 118 | ||||||
| 119 | if (ent ityMetadat a.Attribut es != null ) | |||||
| 120 | { | |||||
| 121 | ||||||
| 122 | for (var i = 0; i < entityMe tadata.Att ributes.le ngth; i++) | |||||
| 123 | { | |||||
| 124 | var at tribute = entityMeta data.Attri butes[i]; | |||||
| 125 | ||||||
| 126 | if (at tribute.Di splayName. UserLocali zedLabel ! = null) | |||||
| 127 | { | |||||
| 128 | if (attri bute.Displ ayName.Use rLocalized Label.Labe l != null) | |||||
| 129 | { | |||||
| 130 | text = att ribute.Dis playName.U serLocaliz edLabel.La bel | |||||
| 131 | value = at tribute.Lo gicalName; | |||||
| 132 | ||||||
| 133 | N5 2.HTMLWebR esourceHel per.Insert OptionSetI tem('metad atapropert y', text,v alue); | |||||
| 134 | } | |||||
| 135 | } | |||||
| 136 | } | |||||
| 137 | } | |||||
| 138 | ||||||
| 139 | $("#me tadataprop erty optio n").sort(M etadataPro perty.Sort ).appendTo ("#metadat aproperty" ); | |||||
| 140 | curren tAttribute = parent. Xrm.Page.g etAttribut e(parentRe ferencePro perty).get Value(); | |||||
| 141 | if (cu rrentAttri bute !== n ull && cur rentAttrib ute!=="") { | |||||
| 142 | $("#met adataprope rty").val( currentAtt ribute); | |||||
| 143 | Metadata Property.D ropDownCha nged(curre ntAttribut e ); | |||||
| 144 | } | |||||
| 145 | else { | |||||
| 146 | $( '#metadata property o ption:firs t-child'). attr("sele cted", "se lected"); | |||||
| 147 | cu rrentAttri bute = $(" #metadatap roperty op tion:selec ted").val( ); | |||||
| 148 | Me tadataProp erty.DropD ownChanged (currentAt tribute ) ; | |||||
| 149 | } | |||||
| 150 | ||||||
| 151 | $('# loading'). hide(); | |||||
| 152 | $('# metadatapr operty').s how(); | |||||
| 153 | ||||||
| 154 | } | |||||
| 155 | catch(ex) | |||||
| 156 | { | |||||
| 157 | alert(' North52 Fo rmula Mana ger Except ion: ' + e x.message) ; | |||||
| 158 | } | |||||
| 159 | ||||||
| 160 | }; | |||||
| 161 | ||||||
| 162 | ||||||
| 163 | MetadataPr operty.err orRetrieve Attributes = functio n(error) { | |||||
| 164 | alert( "North52 F ormula Man ager : " + error.mes sage); | |||||
| 165 | }; | |||||
| 166 | ||||||
| 167 | MetadataPr operty.Dro pDownChang ed= functi on(value) { | |||||
| 168 | if (va lue !== nu ll) { | |||||
| 169 | pa rent.Xrm.P age.data.e ntity.attr ibutes.get (MetadataP roperty.pa rentRefere ncePropert y).setValu e(value); | |||||
| 170 | } | |||||
| 171 | } ; | |||||
| 172 | ||||||
| 173 | MetadataPr operty.Res et= functi on() { | |||||
| 174 | ||||||
| 175 | $( '#metadata property o ption:firs t-child'). attr("sele cted", "se lected"); | |||||
| 176 | } ; | |||||
| 177 | ||||||
| 178 | MetadataPr operty.Loa dFromQuery = functio n(query) { | |||||
| 179 | ||||||
| 180 | $("sele ct[id$=met adataprope rty] > opt ion").remo ve(); | |||||
| 181 | ||||||
| 182 | ||||||
| 183 | ||||||
| 184 | var att ributes = query.spli t(','); | |||||
| 185 | ||||||
| 186 | for (va r i = 0; i < attribu tes.length ; i++) | |||||
| 187 | { | |||||
| 188 | ||||||
| 189 | N52.H TMLWebReso urceHelper .InsertOpt ionSetItem ('metadata property', attribute s[i],attri butes[i]); | |||||
| 190 | ||||||
| 191 | } | |||||
| 192 | ||||||
| 193 | $("#met adataprope rty option ").sort(Me tadataProp erty.Sort) .appendTo( "#metadata property") ; | |||||
| 194 | ||||||
| 195 | curren tAttribute = parent .Xrm.Page. getAttribu te("north5 2_targeten tityproper ty").getVa lue(); | |||||
| 196 | if (cu rrentAttri bute !== n ull && cur rentAttrib ute!=="") { | |||||
| 197 | $("#met adataprope rty").val( currentAtt ribute); | |||||
| 198 | Metadat aProperty. DropDownCh anged(curr entAttribu te); | |||||
| 199 | } | |||||
| 200 | else { | |||||
| 201 | $( '#metadata property o ption:firs t-child'). attr("sele cted", "se lected"); | |||||
| 202 | cu rrentAttri bute = $(" #metadatap roperty op tion:selec ted").val( ); | |||||
| 203 | Me tadataProp erty.DropD ownChanged (currentAt tribute ) ; | |||||
| 204 | } | |||||
| 205 | ||||||
| 206 | ||||||
| 207 | $('#load ing').hide (); | |||||
| 208 | $('#meta dataproper ty').show( ); | |||||
| 209 | }; | |||||
| 210 | ||||||
| 211 | </script> | |||||
| 212 | ||||||
| 213 | <style typ e="text\cs s"> | |||||
| 214 | #loading { | |||||
| 215 | width: 1 00%; | |||||
| 216 | height: 100%; | |||||
| 217 | top: 0px ; | |||||
| 218 | left: 0p x; | |||||
| 219 | position : fixed; | |||||
| 220 | display: block; | |||||
| 221 | opacity: 0.7; | |||||
| 222 | backgrou nd-color: #fff; | |||||
| 223 | z-index: 99; | |||||
| 224 | text-ali gn: center ; | |||||
| 225 | } | |||||
| 226 | ||||||
| 227 | #loading-i mage { | |||||
| 228 | position : absolute ; | |||||
| 229 | top: 100 px; | |||||
| 230 | left: 24 0px; | |||||
| 231 | z-index: 100; | |||||
| 232 | } | |||||
| 233 | ||||||
| 234 | </style> | |||||
| 235 | ||||||
| 236 | <meta char set="utf-8 "> | |||||
| 237 | </head><bo dy onload= "MetadataP roperty.In it();" bgC olor="tran sparent">& nbsp;</bod y></html> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.