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_javascriptfunctionwizard11C23DDD-305A-E411-8363-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 | 121 |
| 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.F ormulaEdit or == 'und efined') { North52.F ormulaEdit or = {}; } | |||||
| 3 | ||||||
| 4 | North52.Fo rmulaEdito r.OnChange SelectEnti ty = funct ion() | |||||
| 5 | { | |||||
| 6 | ||||||
| 7 | var findSe lectEntity = $("#fin dSelectEnt ity option :selected" ).val(); | |||||
| 8 | ||||||
| 9 | SDK.Metada ta.Retriev eEntity(SD K.Metadata .EntityFil ters.Attri butes, fin dSelectEnt ity , null , false, f unction (e ntityMetad ata) {Nort h52.Formul aEditor.su ccessRetri eveAttribu tesPicklis t(entityMe tadata, fi ndSelectEn tity , 'fi ndSelectAt tribute'); }, North5 2.FormulaE ditor.erro rRetrieveA ttributes) ; | |||||
| 10 | ||||||
| 11 | SDK.Metada ta.Retriev eEntity(SD K.Metadata .EntityFil ters.Attri butes, fin dSelectEnt ity , null , false, f unction (e ntityMetad ata) {Nort h52.Formul aEditor.su ccessRetri eveAttribu tesPicklis t(entityMe tadata, fi ndSelectEn tity , 'fi ndWhereAtt ribute'); }, North52 .FormulaEd itor.error RetrieveAt tributes); | |||||
| 12 | ||||||
| 13 | }; | |||||
| 14 | ||||||
| 15 | ||||||
| 16 | ||||||
| 17 | North52.Fo rmulaEdito r.OnChange FindWizard s = functi on() | |||||
| 18 | { | |||||
| 19 | ||||||
| 20 | var findWi zards = $( "#findWiza rds option :selected" ).val(); | |||||
| 21 | ||||||
| 22 | if ( (find Wizards == "FindList Values") | | (findWiz ards == "F indRecords ") ) | |||||
| 23 | $("#lbl Default"). text("Reco rdCount"); | |||||
| 24 | else | |||||
| 25 | $("#lbl Default"). text("Defa ult Value" ); | |||||
| 26 | ||||||
| 27 | }; | |||||
| 28 | ||||||
| 29 | ||||||
| 30 | ||||||
| 31 | ||||||
| 32 | North52.Fo rmulaEdito r.Generate FindValue = function () | |||||
| 33 | { | |||||
| 34 | ||||||
| 35 | var cacheK ey = "curr entFunctio n"; | |||||
| 36 | var findWi zards = $( "#findWiza rds option :selected" ).val(); | |||||
| 37 | var findSe lectEntity = $("#fin dSelectEnt ity option :selected" ).val(); | |||||
| 38 | var findWh ereAttribu te = $("#f indWhereAt tribute op tion:selec ted").val( ); | |||||
| 39 | var findWh ereValue = $("#find WhereValue ").val(); | |||||
| 40 | var findSe lectAttrib ute = $("# findSelect Attribute option:sel ected").va l(); | |||||
| 41 | var findDe fault = $( "#findDefa ult").val( ); | |||||
| 42 | var findNo Lock = $(" #findNoLoc k").is(':c hecked'); | |||||
| 43 | ||||||
| 44 | ||||||
| 45 | var functi onMessage = findWiza rds + "('" + findSel ectEntity + "', '" + findWhere Attribute + "', '" + findWhere Value + "' , '" + fin dSelectAtt ribute + " ', '" + fi ndDefault + "', " + findNoLock + ")"; | |||||
| 46 | ||||||
| 47 | if (lo calStorage ) | |||||
| 48 | { | |||||
| 49 | try | |||||
| 50 | { | |||||
| 51 | loca lStorage.s etItem(cac heKey , f unctionMes sage ); | |||||
| 52 | } | |||||
| 53 | cat ch(ex) | |||||
| 54 | { | |||||
| 55 | localStora ge.removeI tem(cacheK ey); | |||||
| 56 | } | |||||
| 57 | } | |||||
| 58 | ||||||
| 59 | }; | |||||
| 60 | ||||||
| 61 | ||||||
| 62 | North52.Fo rmulaEdito r.successR etrieveAtt ributesPic klist = fu nction(ent ityMetadat a, sourceE ntity, pic klist) { | |||||
| 63 | ||||||
| 64 | var dr opdownSele ctor = "#" + picklis t; | |||||
| 65 | $(drop downSelect or).empty( ); | |||||
| 66 | ||||||
| 67 | for (v ar i = 0; i < entity Metadata.A ttributes. length; i+ +) | |||||
| 68 | { | |||||
| 69 | var attribute = entityMe tadata.Att ributes[i] ; | |||||
| 70 | ||||||
| 71 | if ((attribut e.DisplayN ame.UserLo calizedLab el != null ) && (a ttribute.D isplayName .UserLocal izedLabel. Label != n ull) ) | |||||
| 72 | { | |||||
| 73 | displayTe xt = attri bute.Displ ayName.Use rLocalized Label.Labe l; | |||||
| 74 | displayVa lue = enti tyMetadata .Attribute s[i].Logic alName ; | |||||
| 75 | ||||||
| 76 | N52.HTMLW ebResource Helper.Ins ertOptionS etItem(pic klist, dis playText , displayVa lue ); | |||||
| 77 | } | |||||
| 78 | } | |||||
| 79 | ||||||
| 80 | ||||||
| 81 | $(dropdow nSelector) .html($(dr opdownSele ctor + ' option').s ort(functi on(x, y) { | |||||
| 82 | r eturn $(x) .text() < $(y).text( ) ? -1 : 1 ; | |||||
| 83 | })); | |||||
| 84 | ||||||
| 85 | $("select " + dropdo wnSelector ).prop('se lectedInde x', 0); | |||||
| 86 | ||||||
| 87 | }; | |||||
| 88 | ||||||
| 89 | ||||||
| 90 | ||||||
| 91 | North52.Fo rmulaEdito r.Populate FindSelect Entity= fu nction() { | |||||
| 92 | ||||||
| 93 | var Cac heKey = 'E ntityList5 2' + paren t.Xrm.Page .context.g etOrgUniqu eName(); | |||||
| 94 | ||||||
| 95 | var dat a = JSON.p arse(local Storage.ge tItem(Cach eKey)); | |||||
| 96 | ||||||
| 97 | for (va r i = 0; i < data.le ngth; i++) | |||||
| 98 | { | |||||
| 99 | va r splitArr ay = data[ i].split(' |'); | |||||
| 100 | va r label = splitArra y[0]; | |||||
| 101 | va r logicaln ame = spl itArray[1] ; | |||||
| 102 | ||||||
| 103 | N 52.HTMLWeb ResourceHe lper.Inser tOptionSet Item("find SelectEnti ty", label , logicaln ame); | |||||
| 104 | } | |||||
| 105 | ||||||
| 106 | SDK.Metada ta.Retriev eEntity(SD K.Metadata .EntityFil ters.Attri butes, log icalname, null, fals e, functio n (entityM etadata) { North52.Fo rmulaEdito r.successR etrieveAtt ributesPic klist(enti tyMetadata , logicaln ame, 'find SelectAttr ibute'); } , North52. FormulaEdi tor.errorR etrieveAtt ributes); | |||||
| 107 | ||||||
| 108 | SDK.Metada ta.Retriev eEntity(SD K.Metadata .EntityFil ters.Attri butes, log icalname, null, fals e, functio n (entityM etadata) { North52.Fo rmulaEdito r.successR etrieveAtt ributesPic klist(enti tyMetadata , logicaln ame, 'find WhereAttri bute'); }, North52.F ormulaEdit or.errorRe trieveAttr ibutes); | |||||
| 109 | ||||||
| 110 | $("#fin dSelectEnt ity").html ($('#findS electEntit y option') .sort(func tion(x, y) { | |||||
| 111 | r eturn $(x) .text() < $(y).text( ) ? -1 : 1 ; | |||||
| 112 | })); | |||||
| 113 | ||||||
| 114 | $("sele ct" + "#fi ndSelectEn tity").pro p('selecte dIndex', 0 ); | |||||
| 115 | ||||||
| 116 | }; | |||||
| 117 | ||||||
| 118 | ||||||
| 119 | North52.Fo rmulaEdito r.errorRet rieveAttri butes = fu nction(err or) { | |||||
| 120 | alert( "North52 F ormula Man ager : " + error.mes sage); | |||||
| 121 | }; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.