321. EPMO Open Source Coordination Office Redaction File Detail Report

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.

321.1 Files compared

# 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_javascripteditortargetentity12E2CB15-272B-E611-8C6D-00155D011502 Mon Sep 19 18:20:18 2016 UTC

321.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 185
Removed 0 0

321.3 Comparison options

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

321.4 Active regular expressions

No regular expressions were active.

321.5 Comparison detail

        1   if (typeof  North52 = = 'undefin ed') { Nor th52 = {};  }
        2   if (typeof  North52.T argetEntit y == 'unde fined') {  North52.Ta rgetEntity  = {}; }
        3  
        4  
        5   var Target Entity = { }; 
        6  
        7   North52.Ta rgetEntity .Disable=  function()  {  
        8  
        9   $("#target entity").a ttr("disab led", true );
        10   };
        11  
        12   North52.Ta rgetEntity .Load= fun ction(type , name, va lue, isres et) {  
        13  
        14      $("#tar getentity" ).hide();
        15  
        16          
        17        if (t ype == 'in sert')
        18           No rth52.Targ etEntity.I nsertRecor d(name, va lue, isres et );
        19        else  if (type = = 'query')
        20           No rth52.Targ etEntity.B uildTarget EntityDown hierarchy( );
        21           
        22      
        23     };
        24  
        25  
        26   North52.Ta rgetEntity .InsertRec ord = func tion(Name,  Value, is Reset ) {   
        27  
        28     $("selec t[id$=targ etentity]  > option") .remove();
        29     if (isRe set == tru e) {parent .Xrm.Page. data.entit y.attribut es.get("no rth52_targ etentitypr operty").s etValue("" ); }
        30  
        31  
        32     if (Name  != Value)
        33     {
        34        N52.H TMLWebReso urceHelper .InsertOpt ionSetItem ("targeten tity", Nam e,Value);
        35         
        36        North 52.TargetE ntity.Drop DownChange d(Value);
        37           $( '#loading- targetenti ty').hide( ); 
        38           $( '#targeten tity').sho w(); 
        39      }
        40      else
        41      {
        42          SDK .Metadata. RetrieveEn tity(SDK.M etadata.En tityFilter s.Relation ships, Val ue, null,  false, fun ction (ent ityMetadat a) {North5 2.TargetEn tity.succe ssRetrieve Attributes  (entityMe tadata, Va lue); }, N orth52.Tar getEntity. errorRetri eveAttribu tes);
        43  
        44      }
        45  
        46  
        47   };
        48  
        49   North52.Ta rgetEntity .successRe trieveAttr ibutes = f unction(en tityMetada ta, entity LogicalNam e) {  
        50  
        51        var e ntityDispl ayName = e ntityMetad ata.Displa yName.User LocalizedL abel.Label ;
        52        N52.H TMLWebReso urceHelper .InsertOpt ionSetItem ("targeten tity", ent ityDisplay Name ,enti tyLogicalN ame);
        53         
        54        North 52.TargetE ntity.Drop DownChange d(entityLo gicalName) ;
        55           $( '#loading- targetenti ty').hide( ); 
        56           $( '#targeten tity').sho w(); 
        57  
        58   };
        59  
        60   North52.Ta rgetEntity .errorRetr ieveAttrib utes = fun ction(erro r) {  
        61       alert( "North52 F ormula Man ager : " +  error.mes sage);
        62     };
        63  
        64   North52.Ta rgetEntity .DropDownC hanged= fu nction(val ue) {  
        65  
        66   try
        67   {
        68       if (va lue != nul l && value !="")
        69       {  
        70          par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_t argetentit yname").se tValue(val ue);
        71          
        72                    Nort h52.Target Property.L oad("load" , value, " north52_ta rgetentity property",  "false");
        73            
        74        }
        75  
        76      }
        77      catch(e x)
        78      {
        79         aler t('North52  Formula M anager: Co mmunicatio n issue, p lease clic k Ok & the n F5 to re fresh the  screen. Me ssage: ' +  ex.messag e);
        80      }
        81   } ; 
        82  
        83  
        84  
        85   North52.Ta rgetEntity .BuildTarg etEntityDo wnhierarch y= functio n() {  
        86  
        87   try
        88   {
        89  
        90       $("sel ect[id$=ta rgetentity ] > option ").remove( );
        91       var qu erystringp arams = pa rent.Xrm.P age.contex t.getQuery StringPara meters();
        92       var gu id = query stringpara ms['id'];
        93  
        94       if (gu id  != und efined)
        95       {
        96       var se rverUrl =  N52.Dialog Helpers.Ge tServerUrl ();
        97  
        98       var oD ataServer  = serverUr l + "/XRMS ervices/20 11/Organiz ationData. svc/";
        99      
        100       var oD ataQuery =  "north52_ formuladet ailSet?$se lect=north 52_name,no rth52_Quer y&$filter= north52_fo rmula_nort h52_formul adetail_Id /Id eq gui d'" + guid  + "' and  north52_Qu eryType/Va lue eq 217 890001";
        101  
        102        var o DataSelect  = oDataSe rver + oDa taQuery;
        103  
        104        $.aja x({
        105        type:  "GET",
        106        conte ntType: "a pplication /json; cha rset=utf-8 ",
        107        datat ype: "json ",
        108        url:  oDataSelec t,
        109        befor eSend: fun ction (XML HttpReques t) { XMLHt tpRequest. setRequest Header("Ac cept", "ap plication/ json"); },
        110        succe ss: functi on (data,  textStatus , XmlHttpR equest)
        111        {
        112                North52. TargetEnti ty.Retriev eEntityDat a(data.d);
        113  
        114        },
        115        error : function  (XmlHttpR equest, te xtStatus,  errorThrow n) { alert ('OData Se lect Faile d: ' + oDa taSelect ) ; }
        116        });
        117       
        118      } 
        119      else {
        120              N52.HTMLWe bResourceH elper.Inse rtOptionSe tItem("tar getentity" , "No Targ et data fo und.","Not e if you h ave just c reated a f ormula det ail record  then you  will need  to click t he refresh  button on  the ribbo n to view  the data." );
        121  
        122                      No rth52.Targ etProperty .Load("cle ar");
        123  
        124              $('#loadin g-targeten tity').hid e(); 
        125              $('#target entity').s how(); 
        126  
        127      }
        128  
        129    }
        130    catch(ex)
        131    {
        132       alert( 'North52 F ormula Man ager: Comm unication  issue, ple ase click  Ok & then  F5 to refr esh the sc reen. Mess age: ' + e x.message) ;
        133  
        134    }
        135  
        136   };
        137  
        138   North52.Ta rgetEntity .RetrieveE ntityData=  function( Entity) {   
        139  
        140    try
        141    {
        142  
        143      if (Ent ity.result s[0] == un defined)
        144      {
        145            N 52.HTMLWeb ResourceHe lper.Inser tOptionSet Item("targ etentity",  "No Targe t data fou nd.","Note  if you ha ve just cr eated a fo rmula deta il record  then you w ill need t o click th e refresh  button on  the ribbon  to view t he data.") ;
        146  
        147                     Nor th52.Targe tProperty. Load("clea r");
        148       }
        149      else
        150      {
        151       var na me  = Enti ty.results [0].north5 2_name;
        152       var qu ery = Enti ty.results [0].north5 2_Query;
        153  
        154       var do c = N52.HT MLWebResou rceHelper. GetXmlDocu ment(query );
        155       var en tityNode =  N52.HTMLW ebResource Helper.Get XmlNodes(d oc , "//en tity");
        156       var en tityName =  entityNod e[0].attri butes[0].v alue;
        157  
        158       N52.HT MLWebResou rceHelper. InsertOpti onSetItem( "targetent ity", name ,name);
        159  
        160       var qu eryAttribu tes = '';
        161       var at tributes =  N52.HTMLW ebResource Helper.Get XmlNodes(d oc , "//at tribute");      
        162                      
        163      for (va r i = 0; i  < attribu tes.length ; i++) 
        164      {
        165       var no de = attri butes [i];
        166       var va lue = node .attribute s[0].value ;
        167       queryA ttributes  += value +  ',';
        168      
        169        }  
        170          que ryAttribut es = query Attributes .substring (0, queryA ttributes  .length-1) ;
        171  
        172                    Nort h52.Target Property.L oad("query ", name, " north52_ta rgetentity property",  queryAttr ibutes);
        173  
        174        }
        175  
        176      $('#loa ding-targe tentity'). hide(); 
        177      $('#tar getentity' ).show(); 
        178  
        179    }
        180    catch(ex)
        181    {
        182      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);
        183    }
        184  
        185     };