174. EPMO Open Source Coordination Office Redaction File Detail Report

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.

174.1 Files compared

# 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_targetentity4D778CDE-2048-E111-890F-00155DF5B00D Mon Sep 19 18:20:18 2016 UTC

174.2 Comparison summary

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

174.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

174.4 Active regular expressions

No regular expressions were active.

174.5 Comparison detail

        1   <html><hea d><title>N orth52 For mula Manag er Target  Entity</ti tle>
        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/nort h52.htmlwe bresource. helper"></ script>
        17  
        18   <script ty pe="text/j avascript"  src="nort h52_/javas cript/nort h52_dialog _helper">< /script>
        19  
        20   <script ty pe="text/j avascript"  src="nort h52_/javas cript/JSON 2"></scrip t>
        21  
        22   <script ty pe="text/j avascript"  src="nort h52_/Javas cript/sdk. metadata.j s"></scrip t>
        23  
        24   <script ty pe="text/j avascript"  src="nort h52_/javas cript/nort h52.htmlwe bresource. helper"></ script>
        25  
        26  
        27  
        28  
        29  
        30  
        31   <script ty pe="text/j avascript" >
        32  
        33     $(docume nt).ready( function ( ) { Target Entity.Ini t();
        34        });
        35  
        36  
        37  
        38   var Target Entity = { }; 
        39  
        40   TargetEnti ty.Disable = function () {  
        41   $("#target entity").a ttr("disab led", true );
        42   };
        43  
        44   TargetEnti ty.Init= f unction()  {  
        45  
        46      $("#tar getentity" ).hide();
        47  
        48      var dat a = N52.HT MLWebResou rceHelper. GetParamet erByName(' data');
        49  
        50     if (data != "")
        51     {
        52         var  vals = N52 .HTMLWebRe sourceHelp er.GetData ParameterA rray(data) ;
        53         var  type =  va ls[0][1];
        54          
        55        if (t ype == 'in sert')
        56         {
        57              var Name=   vals[1][1 ];
        58              var Value=   vals[2][ 1];
        59              var isRese t =  vals[ 3][1];
        60  
        61           Ta rgetEntity .InsertRec ord(Name,  Value, isR eset );
        62        }    
        63        else  if (type = = 'query')
        64           Ta rgetEntity .BuildTarg etEntityDo wnhierarch y();
        65  
        66      }
        67      
        68     };
        69  
        70  
        71   TargetEnti ty.InsertR ecord = fu nction(Nam e, Value,  isReset )  {  
        72  
        73     $("selec t[id$=targ etentity]  > option") .remove();
        74     if (isRe set == tru e) {parent .Xrm.Page. data.entit y.attribut es.get("no rth52_targ etentitypr operty").s etValue("" ); }
        75  
        76  
        77     if (Name  != Value)
        78     {
        79        N52.H TMLWebReso urceHelper .InsertOpt ionSetItem ("targeten tity", Nam e,Value);
        80         
        81        Targe tEntity.Dr opDownChan ged(Value) ;
        82           $( '#loading' ).hide(); 
        83           $( '#targeten tity').sho w(); 
        84      }
        85      else
        86      {
        87          SDK .Metadata. RetrieveEn tity(SDK.M etadata.En tityFilter s.Relation ships, Val ue, null,  false, fun ction (ent ityMetadat a) {
        88   TargetEnti ty.success RetrieveAt tributes ( entityMeta data, Valu e); }, Tar getEntity. errorRetri eveAttribu tes);
        89  
        90      }
        91  
        92  
        93   };
        94  
        95   TargetEnti ty.success RetrieveAt tributes =  function( entityMeta data, enti tyLogicalN ame) {  
        96  
        97        var e ntityDispl ayName = e ntityMetad ata.Displa yName.User LocalizedL abel.Label ;
        98        N52.H TMLWebReso urceHelper .InsertOpt ionSetItem ("targeten tity", ent ityDisplay Name ,enti tyLogicalN ame);
        99         
        100        Targe tEntity.Dr opDownChan ged(entity LogicalNam e);
        101           $( '#loading' ).hide(); 
        102           $( '#targeten tity').sho w(); 
        103  
        104   };
        105  
        106   TargetEnti ty.errorRe trieveAttr ibutes = f unction(er ror) {  
        107       alert( "North52 F ormula Man ager : " +  error.mes sage);
        108     };
        109  
        110   TargetEnti ty.DropDow nChanged=  function(v alue) {  
        111  
        112   try
        113   {
        114       if (va lue != nul l && value !="")
        115       {  
        116          par ent.Xrm.Pa ge.data.en tity.attri butes.get( "north52_t argetentit yname").se tValue(val ue);
        117          
        118          var  url = par ent.Xrm.Pa ge.ui.cont rols.get(' WebResourc e_html_met adata_targ etproperty ').getSrc( );
        119          url  = url.ind exOf('?')  > 0 ? url. substring( 0, url.ind exOf('?'))  : url;
        120  
        121          var  command =  encodeURI Component( "type=load &value=" +  value + " &parentRef erence=nor th52_targe tentitypro perty&addA llProperti es=false"  + "&random =" + Math. random());
        122          url  = url + " ?data=" +c ommand;
        123          par ent.Xrm.Pa ge.ui.cont rols.get(' WebResourc e_html_met adata_targ etproperty ').setSrc( url);
        124            
        125        }
        126  
        127      }
        128      catch(e x)
        129      {
        130         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);
        131      }
        132   } ; 
        133  
        134  
        135  
        136   TargetEnti ty.BuildTa rgetEntity Downhierar chy= funct ion() {  
        137  
        138   try
        139   {
        140  
        141       $("sel ect[id$=ta rgetentity ] > option ").remove( );
        142       var qu erystringp arams = pa rent.Xrm.P age.contex t.getQuery StringPara meters();
        143       var gu id = query stringpara ms['id'];
        144  
        145       if (gu id  != und efined)
        146       {
        147       var se rverUrl =  N52.Dialog Helpers.Ge tServerUrl ();
        148  
        149       var oD ataServer  = serverUr l + "/XRMS ervices/20 11/Organiz ationData. svc/";
        150      
        151       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";
        152  
        153        var o DataSelect  = oDataSe rver + oDa taQuery;
        154  
        155        $.aja x({
        156        type:  "GET",
        157        conte ntType: "a pplication /json; cha rset=utf-8 ",
        158        datat ype: "json ",
        159        url:  oDataSelec t,
        160        befor eSend: fun ction (XML HttpReques t) { XMLHt tpRequest. setRequest Header("Ac cept", "ap plication/ json"); },
        161        succe ss: functi on (data,  textStatus , XmlHttpR equest)
        162        {
        163                TargetEn tity.Retri eveEntityD ata(data.d );
        164  
        165        },
        166        error : function  (XmlHttpR equest, te xtStatus,  errorThrow n) { alert ('OData Se lect Faile d: ' + oDa taSelect ) ; }
        167        });
        168       
        169      } 
        170      else {
        171              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." );
        172  
        173                var url  = parent.X rm.Page.ui .controls. get('WebRe source_htm l_metadata _targetpro perty').ge tSrc();
        174                url = ur l.indexOf( '?') > 0 ?  url.subst ring(0, ur l.indexOf( '?')) : ur l;
        175  
        176              var comman d = encode URICompone nt("type=c lear"+ "&r andom=" +  Math.rando m());
        177              url = url  + "?data="  +command;
        178  
        179  
        180                parent.X rm.Page.ui .controls. get('WebRe source_htm l_metadata _targetpro perty').se tSrc(url);
        181  
        182  
        183               $('#loadi ng').hide( ); 
        184               $('#targe tentity'). show(); 
        185  
        186      }
        187  
        188    }
        189    catch(ex)
        190    {
        191       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) ;
        192  
        193    }
        194  
        195   };
        196  
        197   TargetEnti ty.Retriev eEntityDat a= functio n(Entity)  {  
        198  
        199    try
        200    {
        201  
        202      if (Ent ity.result s[0] == un defined)
        203      {
        204            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.") ;
        205  
        206               var url =  parent.Xr m.Page.ui. controls.g et('WebRes ource_html _metadata_ targetprop erty').get Src();
        207                url = ur l.indexOf( '?') > 0 ?  url.subst ring(0, ur l.indexOf( '?')) : ur l;
        208  
        209              var comman d = encode URICompone nt("type=c lear" + "& random=" +  Math.rand om());
        210              url = url  + "?data="  +command;
        211  
        212                parent.X rm.Page.ui .controls. get('WebRe source_htm l_metadata _targetpro perty').se tSrc(url);
        213       }
        214      else
        215      {
        216       var na me  = Enti ty.results [0].north5 2_name;
        217       var qu ery = Enti ty.results [0].north5 2_Query;
        218  
        219       var do c = N52.HT MLWebResou rceHelper. GetXmlDocu ment(query );
        220       var en tityNode =  N52.HTMLW ebResource Helper.Get XmlNodes(d oc , "//en tity");
        221       var en tityName =  entityNod e[0].attri butes[0].v alue;
        222  
        223       N52.HT MLWebResou rceHelper. InsertOpti onSetItem( "targetent ity", name ,name);
        224  
        225       var qu eryAttribu tes = '';
        226       var at tributes =  N52.HTMLW ebResource Helper.Get XmlNodes(d oc , "//at tribute");      
        227                      
        228      for (va r i = 0; i  < attribu tes.length ; i++) 
        229      {
        230       var no de = attri butes [i];
        231       var va lue = node .attribute s[0].value ;
        232       queryA ttributes  += value +  ',';
        233      
        234        }  
        235          que ryAttribut es = query Attributes .substring (0, queryA ttributes  .length-1) ;
        236  
        237           va r url = pa rent.Xrm.P age.ui.con trols.get( 'WebResour ce_html_me tadata_tar getpropert y').getSrc ();
        238          url  = url.ind exOf('?')  > 0 ? url. substring( 0, url.ind exOf('?'))  : url;
        239  
        240           va r command  = encodeUR IComponent ("type=que ry&value="  + name  +  "&parentR eference=n orth52_tar getentityp roperty&qu ery=" + qu eryAttribu tes + "&ra ndom=" + M ath.random ());
        241          url  = url + " ?data=" +c ommand;
        242          par ent.Xrm.Pa ge.ui.cont rols.get(' WebResourc e_html_met adata_targ etproperty ').setSrc( url);
        243     
        244        paren t.Xrm.Page .data.enti ty.attribu tes.get("n orth52_tar getentityn ame").setV alue(entit yName);
        245  
        246        }
        247  
        248      $('#loa ding').hid e(); 
        249      $('#tar getentity' ).show(); 
        250  
        251    }
        252    catch(ex)
        253    {
        254      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);
        255    }
        256  
        257     };
        258  
        259  
        260   </script>
        261  
        262   <style typ e="text\cs s">
        263   #loading {  
        264     width: 1 00%; 
        265     height:  100%; 
        266     top: 0px
        267     left: 0p x; 
        268     opacity:  0.7; 
        269     backgrou nd-color:  #fff; 
        270     z-index:  99; 
        271     text-ali gn: center
        272  
        273    
        274   #loading-i mage { 
        275     top: 0px
        276     left: 0p x; 
        277     z-index:  100; 
        278   }
        279   .main { 
        280     display:  none;  
        281     width: 1 00%; 
        282     height:  100%; 
        283     top: 0px
        284     left: 0p x; 
        285     }
        286  
        287   </style>
        288  
        289   <meta char set="utf-8 ">
        290   </head><bo dy>&nbsp;< /body></ht ml>