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_javascripteditorsourceentityF7037A51-262B-E611-8C6D-00155D011502 | 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 | 534 |
| 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 North52 = = 'undefin ed') { Nor th52 = {}; } | |||||
| 2 | if (typeof North52.S ourceEntit y == 'unde fined') { North52.So urceEntity = {}; } | |||||
| 3 | ||||||
| 4 | ||||||
| 5 | if (!Array .prototype .indexOf) | |||||
| 6 | { | |||||
| 7 | Array.pr ototype.in dexOf = fu nction(elt /*, from* /) | |||||
| 8 | { | |||||
| 9 | var le n = this.l ength; | |||||
| 10 | ||||||
| 11 | var fr om = Numbe r(argument s[1]) || 0 ; | |||||
| 12 | from = (from < 0 ) | |||||
| 13 | ? Math.ceil (from) | |||||
| 14 | : Math.floo r(from); | |||||
| 15 | if (fr om < 0) | |||||
| 16 | from += len; | |||||
| 17 | ||||||
| 18 | for (; from < le n; from++) | |||||
| 19 | { | |||||
| 20 | if ( from in th is && | |||||
| 21 | this[from] === elt) | |||||
| 22 | re turn from; | |||||
| 23 | } | |||||
| 24 | return -1; | |||||
| 25 | }; | |||||
| 26 | } | |||||
| 27 | ||||||
| 28 | ||||||
| 29 | ||||||
| 30 | var Source Entity = { }; | |||||
| 31 | ||||||
| 32 | SourceEnti ty.Entitie s; | |||||
| 33 | SourceEnti ty.Initial Load = tru e; | |||||
| 34 | SourceEnti ty.CacheKe y = 'Entit yList52' + parent.Xr m.Page.con text.getOr gUniqueNam e(); | |||||
| 35 | ||||||
| 36 | North52.So urceEntity .Disable= function() { | |||||
| 37 | $("#sou rceentity" ).attr("di sabled", t rue); | |||||
| 38 | }; | |||||
| 39 | ||||||
| 40 | North52.So urceEntity .Initializ e = functi on() { | |||||
| 41 | ||||||
| 42 | $('#load ing-source entity').s how(); | |||||
| 43 | $("#sour ceentity") .hide(); | |||||
| 44 | ||||||
| 45 | if (p arent.Xrm. Page.ui.ge tFormType( ) == 6) | |||||
| 46 | retu rn; | |||||
| 47 | ||||||
| 48 | if (p arent.Xrm. Page.data. entity.att ributes.ge t("north52 _formulaty pe").getVa lue() == 2 17890017) | |||||
| 49 | { | |||||
| 50 | $ ('#loading -sourceent ity').hide (); | |||||
| 51 | $(" #sourceent ity").hide (); | |||||
| 52 | } | |||||
| 53 | ||||||
| 54 | if (localSto rage&& loc alStorage. getItem(So urceEntity .CacheKey ) != null) | |||||
| 55 | { | |||||
| 56 | var dat a = JSON.p arse(local Storage.ge tItem(Sour ceEntity.C acheKey )) ; | |||||
| 57 | North5 2.SourceEn tity.succe ssRetrieve AllEntitie sCache(dat a); | |||||
| 58 | } | |||||
| 59 | else | |||||
| 60 | { | |||||
| 61 | SD K.Metadata .RetrieveA llEntities (SDK.Metad ata.Entity Filters.En tity, fals e, North52 .SourceEnt ity.succes sRetrieveA llEntities , North52. SourceEnti ty.errorRe trieveAllE ntities); | |||||
| 62 | } | |||||
| 63 | ||||||
| 64 | }; | |||||
| 65 | ||||||
| 66 | North52.So urceEntity .Sort = fu nction(a, b) { | |||||
| 67 | ||||||
| 68 | if (a.i nnerHTML = = 'All Pro perties') { | |||||
| 69 | ret urn -1; | |||||
| 70 | } | |||||
| 71 | else if (b.innerHT ML == 'All Propertie s') { | |||||
| 72 | retur n 1; | |||||
| 73 | } | |||||
| 74 | ||||||
| 75 | return ( a.innerHTM L > b.inne rHTML ) ? 1 : -1; | |||||
| 76 | }; | |||||
| 77 | ||||||
| 78 | ||||||
| 79 | North52.So urceEntity .GetEntity DisplayNam e= functio n(entitylo gicalname, entityMet adataColle ction) { | |||||
| 80 | ||||||
| 81 | var en tityDispla yName = "" ; | |||||
| 82 | if (ent itylogical name == nu ll) entity logicalnam e = 'accou nt'; | |||||
| 83 | if (ent ityMetadat aCollectio n == null) return en titylogica lname; | |||||
| 84 | ||||||
| 85 | for (va r i = 0; i < entityM etadataCol lection.le ngth; i++) | |||||
| 86 | { | |||||
| 87 | va r splitArr ay = entit yMetadataC ollection[ i].split(' |'); | |||||
| 88 | va r label = splitArra y[0]; | |||||
| 89 | va r logicaln ame = spl itArray[1] ; | |||||
| 90 | ||||||
| 91 | if (entitylo gicalname == logical name ) | |||||
| 92 | entity DisplayNam e = label; | |||||
| 93 | ||||||
| 94 | } | |||||
| 95 | ||||||
| 96 | return ent ityDisplay Name; | |||||
| 97 | }; | |||||
| 98 | ||||||
| 99 | North52.So urceEntity .successRe trieveAllE ntitiesCac he = funct ion(entity MetadataCo llection) { | |||||
| 100 | ||||||
| 101 | var curr entLogical Name = ""; | |||||
| 102 | var curr entDisplay Name = "" ; | |||||
| 103 | ||||||
| 104 | if (Sour ceEntity.I nitialLoad == true) | |||||
| 105 | { | |||||
| 106 | for (var i = 0; i < entityMeta dataCollec tion.lengt h; i++) | |||||
| 107 | { | |||||
| 108 | var splitArray = entityM etadataCol lection[i] .split('|' ); | |||||
| 109 | var label = s plitArray[ 0]; | |||||
| 110 | var logicalnam e = split Array[1]; | |||||
| 111 | ||||||
| 112 | N52. HTMLWebRes ourceHelpe r.InsertOp tionSetIte m("sourcee ntity", la bel,logica lname); | |||||
| 113 | } | |||||
| 114 | } | |||||
| 115 | ||||||
| 116 | $("#so urceentity option"). sort(North 52.SourceE ntity.Sort ).appendTo ("#sourcee ntity"); | |||||
| 117 | ||||||
| 118 | ||||||
| 119 | savedE ntity = pa rent.Xrm.P age.getAtt ribute("no rth52_sour ceentityna me").getVa lue(); | |||||
| 120 | ||||||
| 121 | if (sa vedEntity !== null & & savedEnt ity !=="") { | |||||
| 122 | $("#sour ceentity") .val(saved Entity); | |||||
| 123 | current LogicalNam e = savedE ntity; | |||||
| 124 | current DisplayNam e = North 52.SourceE ntity.GetE ntityDispl ayName(cur rentLogica lName, ent ityMetadat aCollectio n); | |||||
| 125 | } | |||||
| 126 | else | |||||
| 127 | { | |||||
| 128 | $ ("#sourcee ntity").va l('account '); | |||||
| 129 | c urrentLogi calName = 'account' | |||||
| 130 | c urrentDisp layName = North52.S ourceEntit y.GetEntit yDisplayNa me(current LogicalNam e, entityM etadataCol lection); | |||||
| 131 | } | |||||
| 132 | ||||||
| 133 | $('#lo ading-sour ceentity') .hide(); | |||||
| 134 | $('#so urceentity ').show(); | |||||
| 135 | ||||||
| 136 | North5 2.SourceEn tity.DropD ownChanged (currentLo gicalName, currentDis playName, SourceEnti ty.Initial Load ); | |||||
| 137 | Source Entity.Ini tialLoad = false; | |||||
| 138 | ||||||
| 139 | ||||||
| 140 | }; | |||||
| 141 | ||||||
| 142 | North52.So urceEntity .successRe trieveAllE ntities = function(e ntityMetad ataCollect ion) { | |||||
| 143 | ||||||
| 144 | var objC ache = new Array(); | |||||
| 145 | var curr entLogical Name = ""; | |||||
| 146 | var curr entDisplay Name = ""; | |||||
| 147 | SourceEn tity.Entit ies = enti tyMetadata Collection ; | |||||
| 148 | ||||||
| 149 | for (var i = 0; i < entityMe tadataColl ection.len gth; i++) | |||||
| 150 | { | |||||
| 151 | var en tity = ent ityMetadat aCollectio n[i]; | |||||
| 152 | var lo gicalname = entity. LogicalNam e; | |||||
| 153 | ||||||
| 154 | var ar raytoexclu de = ["pri ncipalattr ibuteacces smap", | |||||
| 155 | "m etric", | |||||
| 156 | "rollupfie ld", | |||||
| 157 | "goalrollu pquery", | |||||
| 158 | "principal objectattr ibuteacces s", | |||||
| 159 | "applicati onfile", | |||||
| 160 | "dependenc y", | |||||
| 161 | "activityp ointer", | |||||
| 162 | "dependenc ynode", | |||||
| 163 | "invalidde pendency", | |||||
| 164 | "roletempl ate", | |||||
| 165 | "systemuse rlicenses" , | |||||
| 166 | "lookupmap ping", | |||||
| 167 | "monthlyfi scalcalend ar", | |||||
| 168 | "businessu nitnewsart icle", | |||||
| 169 | "contractt emplate", | |||||
| 170 | "isvconfig ", | |||||
| 171 | "sdkmessag eprocessin gstepsecur econfig", | |||||
| 172 | "organizat ion", | |||||
| 173 | "workflowl og", | |||||
| 174 | "customerr elationshi p", | |||||
| 175 | "importmap ", | |||||
| 176 | "systemuse rroles", | |||||
| 177 | "north52_f ormuladeta il", | |||||
| 178 | "userquery ", | |||||
| 179 | "publisher ", | |||||
| 180 | "dataperfo rmance", | |||||
| 181 | "azureserv iceconnect ion", | |||||
| 182 | "customcon trol", | |||||
| 183 | "customcon troldefaul tconfig", | |||||
| 184 | "customcon trolresour ce", | |||||
| 185 | "userentit yuisetting s", | |||||
| 186 | "north52_t race", | |||||
| 187 | "uom", | |||||
| 188 | "tracelog" , | |||||
| 189 | "traceasso ciation", | |||||
| 190 | "tracerega rding", | |||||
| 191 | "userappli cationmeta data", | |||||
| 192 | "msdyn_wal lsavedquer y", | |||||
| 193 | "teamtempl ate", | |||||
| 194 | "partnerap plication" , | |||||
| 195 | "processst age", | |||||
| 196 | "processtr igger", | |||||
| 197 | "localconf igstore", | |||||
| 198 | "multienti tysearch", | |||||
| 199 | "mailbox", | |||||
| 200 | "postlike" , | |||||
| 201 | "imagedesc riptor", | |||||
| 202 | "postfollo w", | |||||
| 203 | "exchanges yncidmappi ng", | |||||
| 204 | "emailserv erprofile" , | |||||
| 205 | "businessp rocessflow instance", | |||||
| 206 | "authoriza tionserver ", | |||||
| 207 | "owner", | |||||
| 208 | "stringmap ", | |||||
| 209 | "salesproc essinstanc e", | |||||
| 210 | "msdyn_pos tconfig", | |||||
| 211 | "msdyn_pos truleconfi g", | |||||
| 212 | "notificat ion", | |||||
| 213 | "postregar ding", | |||||
| 214 | "postrole" , | |||||
| 215 | "commitmen t", | |||||
| 216 | "replicati onbacklog" , | |||||
| 217 | "msdyn_pos talbum", | |||||
| 218 | "campaigna ctivityite m", | |||||
| 219 | "campaigni tem", | |||||
| 220 | "complexco ntrol", | |||||
| 221 | "roletempl ateprivile ges", | |||||
| 222 | "mailmerge template", | |||||
| 223 | "north52_x cache", | |||||
| 224 | "timestamp datemappin g", | |||||
| 225 | "usermappi ng", | |||||
| 226 | "teamsynca ttributema ppingprofi les", | |||||
| 227 | "systemuse rmanagerma p", | |||||
| 228 | "syncattri butemappin gprofile", | |||||
| 229 | "syncattri buemapping ", | |||||
| 230 | "msdyn_wal lsavedquer yusersetti ngs", | |||||
| 231 | "mailboxtr ackingfold er", | |||||
| 232 | "north52_s chedule", | |||||
| 233 | "hierarchy rule", | |||||
| 234 | "syncattri butemappin g", | |||||
| 235 | "hierarchy ruleconfig uration", | |||||
| 236 | "hierarchy securityco nfiguratio n", | |||||
| 237 | "businessd atalocaliz edlabel", | |||||
| 238 | "principal syncattrib utemap", | |||||
| 239 | "rollupjob ", | |||||
| 240 | "rolluppro perties", | |||||
| 241 | "ribboncus tomization ", | |||||
| 242 | "teamprofi les", | |||||
| 243 | "import", | |||||
| 244 | "resourceg roupexpans ion", | |||||
| 245 | "workfloww aitsubscri ption", | |||||
| 246 | "serviceen dpoint", | |||||
| 247 | "subscript ionsyncinf o", | |||||
| 248 | "savedquer yvisualiza tion", | |||||
| 249 | "productsu bstitute", | |||||
| 250 | "recurrenc erule", | |||||
| 251 | "systemfor m", | |||||
| 252 | "connectio nroleassoc iation", | |||||
| 253 | "report", | |||||
| 254 | "teammembe rship", | |||||
| 255 | "discount" , | |||||
| 256 | "solutionc omponent", | |||||
| 257 | "plugintyp estatistic ", | |||||
| 258 | "statusmap ", | |||||
| 259 | "documenti ndex", | |||||
| 260 | "attribute map", | |||||
| 261 | "sdkmessag epair", | |||||
| 262 | "emailsear ch", | |||||
| 263 | "userfisca lcalendar" , | |||||
| 264 | "reportent ity", | |||||
| 265 | "timezoned efinition" , | |||||
| 266 | "uomschedu le", | |||||
| 267 | "reportlin k", | |||||
| 268 | "subscript ionclients ", | |||||
| 269 | "subscript iontrackin gdeletedob ject", | |||||
| 270 | "columnmap ping", | |||||
| 271 | "ownermapp ing", | |||||
| 272 | "wizardpag e", | |||||
| 273 | "entitymap ", | |||||
| 274 | "unresolve daddress", | |||||
| 275 | "wizardacc essprivile ge", | |||||
| 276 | "bulkopera tion", | |||||
| 277 | "publisher address", | |||||
| 278 | "webresour ce", | |||||
| 279 | "businessu nit", | |||||
| 280 | "constrain tbasedgrou p", | |||||
| 281 | "transform ationmappi ng", | |||||
| 282 | "role", | |||||
| 283 | "connectio nroleobjec ttype", | |||||
| 284 | "bulkdelet eoperation ", | |||||
| 285 | "solution" , | |||||
| 286 | "transform ationparam etermappin g", | |||||
| 287 | "sitemap", | |||||
| 288 | "recommend ationcache ", | |||||
| 289 | "recommend ationmodel version", | |||||
| 290 | "recommend ationmodel versionhis tory", | |||||
| 291 | "subscript ionstatist icsoffline ", | |||||
| 292 | "subscript ionstatist icsoutlook ", | |||||
| 293 | "subscript ionsyncent ryoffline" , | |||||
| 294 | "subscript ionsyncent ryoutlook" , | |||||
| 295 | "importfil e", | |||||
| 296 | "fieldperm ission", | |||||
| 297 | "bulkdelet efailure", | |||||
| 298 | "productas sociation" , | |||||
| 299 | "connectio nrole", | |||||
| 300 | "competito rsaleslite rature", | |||||
| 301 | "north52_c onfigurati on", | |||||
| 302 | "timezonel ocalizedna me", | |||||
| 303 | "systemuse rprincipal s", | |||||
| 304 | "picklistm apping", | |||||
| 305 | "webwizard ", | |||||
| 306 | "principal objectacce ss", | |||||
| 307 | "reportcat egory", | |||||
| 308 | "bulkopera tionlog", | |||||
| 309 | "workflowd ependency" , | |||||
| 310 | "sdkmessag erequest", | |||||
| 311 | "clientupd ate", | |||||
| 312 | "customero pportunity role", | |||||
| 313 | "resource" , | |||||
| 314 | "principal entitymap" , | |||||
| 315 | "sdkmessag erequestfi eld", | |||||
| 316 | "relations hiprolemap ", | |||||
| 317 | "north52_f ormulacalc ulation", | |||||
| 318 | "reportvis ibility", | |||||
| 319 | "north52_f ormula", | |||||
| 320 | "recurring appointmen tmaster", | |||||
| 321 | "importlog ", | |||||
| 322 | "sdkmessag e", | |||||
| 323 | "usersetti ngs", | |||||
| 324 | "relations hiprole", | |||||
| 325 | "duplicate record", | |||||
| 326 | "interproc esslock", | |||||
| 327 | "businessu nitmap", | |||||
| 328 | "timezoner ule", | |||||
| 329 | "sdkmessag efilter", | |||||
| 330 | "sdkmessag eprocessin gstepimage ", | |||||
| 331 | "calendarr ule", | |||||
| 332 | "sdkmessag eresponse" , | |||||
| 333 | "importjob ", | |||||
| 334 | "resources pec", | |||||
| 335 | "site", | |||||
| 336 | "plugintyp e", | |||||
| 337 | "sdkmessag eprocessin gstep", | |||||
| 338 | "duplicate rulecondit ion", | |||||
| 339 | "teamroles ", | |||||
| 340 | "subscript ionmanuall ytrackedob ject", | |||||
| 341 | "duplicate rule", | |||||
| 342 | "sharepoin tsite", | |||||
| 343 | "audit", | |||||
| 344 | "semiannua lfiscalcal endar", | |||||
| 345 | "discountt ype", | |||||
| 346 | "userform" , | |||||
| 347 | "privilege ", | |||||
| 348 | "importdat a", | |||||
| 349 | "organizat ionui", | |||||
| 350 | "pluginass embly", | |||||
| 351 | "resourceg roup", | |||||
| 352 | "asyncoper ation", | |||||
| 353 | "team", | |||||
| 354 | "attachmen t", | |||||
| 355 | "integrati onstatus", | |||||
| 356 | "sdkmessag eresponsef ield", | |||||
| 357 | "fieldsecu rityprofil e", | |||||
| 358 | "savedquer y", | |||||
| 359 | "orginsigh tsmetric", | |||||
| 360 | "plugintra celog", | |||||
| 361 | "savedorgi nsightscon figuration ", | |||||
| 362 | "privilege objecttype codes", | |||||
| 363 | "displayst ringmap", | |||||
| 364 | "advanceds imilarityr ule", | |||||
| 365 | "emailhash ", | |||||
| 366 | "fixedmont hlyfiscalc alendar", | |||||
| 367 | "displayst ring", | |||||
| 368 | "activityp arty", | |||||
| 369 | "roleprivi leges", | |||||
| 370 | "organizat ionstatist ic", | |||||
| 371 | "subscript ion", | |||||
| 372 | "systemuse rprofiles" , | |||||
| 373 | "filtertem plate", | |||||
| 374 | "convertru le", | |||||
| 375 | "convertru leitem", | |||||
| 376 | "childinci dentcount" , | |||||
| 377 | "dependenc yfeature", | |||||
| 378 | "entitleme nttemplate ", | |||||
| 379 | "entitleme nttemplate channel", | |||||
| 380 | "mailboxst atistics", | |||||
| 381 | "metadatad ifference" , | |||||
| 382 | "queueitem count", | |||||
| 383 | "queuememb ercount", | |||||
| 384 | "routingru le", | |||||
| 385 | "routingru leitem", | |||||
| 386 | "socialins ightsconfi guration", | |||||
| 387 | "systemapp licationme tadata", | |||||
| 388 | "socialact ivity", | |||||
| 389 | "socialpro file", | |||||
| 390 | "kbarticle template", | |||||
| 391 | "internala ddress", | |||||
| 392 | "userentit yinstanced ata", | |||||
| 393 | "license", | |||||
| 394 | "userquery visualizat ion", | |||||
| 395 | "importent itymapping ", | |||||
| 396 | "productsa lesliterat ure", | |||||
| 397 | "annualfis calcalenda r", | |||||
| 398 | "systemuse rbusinessu nitentitym ap", | |||||
| 399 | "ribbontab tocommandm ap", | |||||
| 400 | "ribboncon textgroup" , | |||||
| 401 | "ribboncom mand", | |||||
| 402 | "ribbonrul e", | |||||
| 403 | "ribbondif f", | |||||
| 404 | "competito r", | |||||
| 405 | "attachmen t", | |||||
| 406 | "competito rsaleslite rature", | |||||
| 407 | "competito raddress", | |||||
| 408 | "competito rproduct", | |||||
| 409 | "connectio nroleassoc iation", | |||||
| 410 | "connectio nroleobjec ttypecode" , | |||||
| 411 | "quarterly fiscalcale ndar", | |||||
| 412 | "workflow" , | |||||
| 413 | "resource" ]; | |||||
| 414 | ||||||
| 415 | var in dex = arra ytoexclude .indexOf(l ogicalname ); | |||||
| 416 | var is businesspr ocessenabl ed = ''; | |||||
| 417 | var pr imaryidatt ribute = e ntity.Prim aryIdAttri bute; | |||||
| 418 | if (en tity.IsBus inessProce ssEnabled != null) | |||||
| 419 | isbusiness processena bled = ent ity.IsBusi nessProces sEnabled; | |||||
| 420 | ||||||
| 421 | if (index == -1) | |||||
| 422 | { | |||||
| 423 | if (entity .DisplayNa me.UserLoc alizedLabe l != null) | |||||
| 424 | { | |||||
| 425 | if (ent ity.Displa yName.User LocalizedL abel.Label != null) | |||||
| 426 | { | |||||
| 427 | v ar label = entity.Di splayName. UserLocali zedLabel.L abel; | |||||
| 428 | ||||||
| 429 | i f (current LogicalNam e == "") { currentLo gicalName = logicaln ame;} | |||||
| 430 | i f (current DisplayNam e == "") { currentDi splayName = label;} | |||||
| 431 | ||||||
| 432 | N52.HTMLWe bResourceH elper.Inse rtOptionSe tItem("sou rceentity" , label,lo gicalname) ; | |||||
| 433 | objCache.p ush(label + "|" + lo gicalname + "|" + is businesspr ocessenabl ed + "|" + primaryid attribute) ; | |||||
| 434 | ||||||
| 435 | } | |||||
| 436 | } | |||||
| 437 | } | |||||
| 438 | } | |||||
| 439 | ||||||
| 440 | ||||||
| 441 | if (l ocalStorag e) | |||||
| 442 | { | |||||
| 443 | ||||||
| 444 | try | |||||
| 445 | { | |||||
| 446 | v ar stringE ntityList = JSON.str ingify(obj Cache); | |||||
| 447 | l ocalStorag e.setItem( SourceEnti ty.CacheKe y , string EntityList ); | |||||
| 448 | } | |||||
| 449 | cat ch(ex) | |||||
| 450 | { | |||||
| 451 | localStora ge.removeI tem(Source Entity.Cac heKey); | |||||
| 452 | } | |||||
| 453 | ||||||
| 454 | } | |||||
| 455 | ||||||
| 456 | ||||||
| 457 | ||||||
| 458 | $("#so urceentity option"). sort(North 52.SourceE ntity.Sort ).appendTo ("#sourcee ntity"); | |||||
| 459 | ||||||
| 460 | savedE ntity = pa rent.Xrm.P age.getAtt ribute("no rth52_sour ceentityna me").getVa lue(); | |||||
| 461 | ||||||
| 462 | ||||||
| 463 | if (sa vedEntity !== null & & savedEnt ity !=="") { | |||||
| 464 | $("#sour ceentity") .val(saved Entity); | |||||
| 465 | current LogicalNam e = savedE ntity; | |||||
| 466 | current DisplayNam e = North 52.SourceE ntity.GetE ntityDispl ayName(cur rentLogica lName, obj Cache); | |||||
| 467 | } | |||||
| 468 | else | |||||
| 469 | { | |||||
| 470 | $ ("#sourcee ntity").va l('account '); | |||||
| 471 | c urrentLogi calName = 'account' | |||||
| 472 | c urrentDisp layName = North52.S ourceEntit y.GetEntit yDisplayNa me(current LogicalNam e, objCach e); | |||||
| 473 | } | |||||
| 474 | ||||||
| 475 | $('#lo ading-sour ceentity') .hide(); | |||||
| 476 | $('#so urceentity ').show(); | |||||
| 477 | ||||||
| 478 | North5 2.SourceEn tity.DropD ownChanged (currentLo gicalName, currentDis playName,t rue ); | |||||
| 479 | ||||||
| 480 | }; | |||||
| 481 | ||||||
| 482 | ||||||
| 483 | North52.So urceEntity .errorRetr ieveAllEnt ities = fu nction(err or) { | |||||
| 484 | alert( "North52 F ormula Man ager : " + error.mes sage); | |||||
| 485 | } | |||||
| 486 | ||||||
| 487 | North52.So urceEntity .DropDownC hanged= fu nction(val ue, displa y, initial Load) { | |||||
| 488 | ||||||
| 489 | try | |||||
| 490 | { | |||||
| 491 | ||||||
| 492 | if (va lue !== nu ll && valu e!=="" && value !== 'none') | |||||
| 493 | { | |||||
| 494 | isR eset = fal se; | |||||
| 495 | par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_s ourceentit yname").se tValue(val ue); | |||||
| 496 | par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_s ourceentit yname").fi reOnChange (); | |||||
| 497 | ||||||
| 498 | dis play = dis play.index Of('&') > 0 ? displa y.replace( '&', '^^^' ) : displa y; | |||||
| 499 | ||||||
| 500 | if (typeof in itialLoad === 'undef ined') in itialLoad = false; | |||||
| 501 | if (initialLo ad == fals e) {North5 2.SourceEn tity.Reset Values(); isReset = true;} | |||||
| 502 | ||||||
| 503 | var entityNam e = parent .Xrm.Page. data.entit y.attribut es.get("no rth52_sour ceentityna me").getVa lue(); | |||||
| 504 | No rth52.Meta dataProper ty.Load(en tityName, "north52_s ourceentit yproperty" , "true", initialLoa d); | |||||
| 505 | ||||||
| 506 | ||||||
| 507 | var formulaTy pe = $("#f ormulaType ").val(); | |||||
| 508 | ||||||
| 509 | / /save pare nt | |||||
| 510 | i f (formula Type == 21 7890001 ) | |||||
| 511 | Nort h52.Source Relationsh ip.Load(di splay, val ue, initia lLoad ); | |||||
| 512 | ||||||
| 513 | ||||||
| 514 | // save curre nt and aut onumber | |||||
| 515 | if (formulaT ype == 217 890003 || formulaTyp e == 2178 90005) | |||||
| 516 | No rth52.Targ etEntity.L oad("inser t", displa y, value, isReset); | |||||
| 517 | ||||||
| 518 | } | |||||
| 519 | } | |||||
| 520 | catch(ex) | |||||
| 521 | { | |||||
| 522 | alert(' North52 Fo rmula Mana ger: Commu nication i ssue, plea se click O k & then F 5 to refre sh the scr een. Messa ge: ' + ex .message); | |||||
| 523 | } | |||||
| 524 | ||||||
| 525 | } ; | |||||
| 526 | ||||||
| 527 | North52.So urceEntity .ResetValu es = funct ion(value) { | |||||
| 528 | ||||||
| 529 | par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_s ourceentit yproperty" ).setValue (""); | |||||
| 530 | par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_s ourcerelat ionship"). setValue(" "); | |||||
| 531 | par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_t argetentit yname").se tValue("") ; | |||||
| 532 | par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_t argetentit yproperty" ).setValue (""); | |||||
| 533 | par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_s ourceentit ypropertyc lientside" ).setValue (""); | |||||
| 534 | } ; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.