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

156.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_formuladetail_relationship26E06D75-6365-E111-B97C-00155DF5B00D Mon Sep 19 18:20:18 2016 UTC

156.2 Comparison summary

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

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

156.4 Active regular expressions

No regular expressions were active.

156.5 Comparison detail

        1   <HTML><HEA D><TITLE>N orth52 For mula Manag er Formula  Detail Re lationship </TITLE>
        2   <SCRIPT sr c="ClientG lobalConte xt.js.aspx "></SCRIPT >
        3  
        4   <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/jquery "></SCRIPT >
        5  
        6   <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/north5 2_dialog_h elper"></S CRIPT>
        7  
        8   <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/JSON2" ></SCRIPT>
        9  
        10   <SCRIPT ty pe=text/ja vascript s rc="north5 2_/Javascr ipt/sdk.me tadata.js" ></SCRIPT>
        11  
        12   <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/north5 2.htmlwebr esource.he lper"></SC RIPT>
        13  
        14   <SCRIPT ty pe=text/ja vascript s rc="north5 2_/javascr ipt/north5 2.formula. load">
        15  
        16  
        17  
        18   </SCRIPT>
        19   <LINK rel= stylesheet  type=text /css href= "/_common/ styles/fon ts.css.asp x?lcid=103 3"><LINK r el=stylesh eet type=t ext/css hr ef="/_comm on/styles/ global.css .aspx?lcid =1033"><LI NK rel=sty lesheet ty pe=text/cs s href="/_ common/sty les/select .css.aspx? lcid=1033" >
        20   <SCRIPT ty pe=text/ja vascript>
        21  
        22   var Settin gs = {};  
        23   Settings.C urrentRela tionship =  ""; 
        24   Settings.S ourceEntit y = ""; 
        25   Settings.T argetEntit y = ""; 
        26  
        27   var Source Relationsh ip = {}; 
        28  
        29  
        30   SourceRela tionship.D isable= fu nction() {   
        31      $("#sou rcerelatio nship").at tr("disabl ed", true) ;
        32   }
        33  
        34   SourceRela tionship.I nit= funct ion() {  
        35    SourceRel ationship. CallFormul aSourceTar get();
        36    
        37   }
        38  
        39  
        40   SourceRela tionship.S ort = func tion(a, b)  {  
        41      
        42     return ( a.innerHTM L > b.inne rHTML ) ?  1 : -1;
        43   }
        44  
        45   SourceRela tionship.L oad = func tion(entit yDisplayNa me, entity LogicalNam e, IsFromP ageLoad) {   
        46  
        47    //Retriev e attribut es
        48        SDK.M etadata.Re trieveEnti ty(SDK.Met adata.Enti tyFilters. Relationsh ips, entit yLogicalNa me, null,  false, fun ction (ent ityMetadat a) {
        49   SourceRela tionship.s uccessRetr ieveAttrib utes(entit yMetadata,  entityDis playName,  IsFromPage Load); },  SourceRela tionship.e rrorRetrie veAttribut es);
        50  
        51   };
        52  
        53   SourceRela tionship.s uccessRetr ieveAttrib utes = fun ction(enti tyMetadata , entityDi splayName,  IsFromPag eLoad) {  
        54  
        55   var filter Entity = " ";
        56   $("select[ id$=source relationsh ip] > opti on").remov e();
        57  
        58   filterType  = parent. Xrm.Page.d ata.entity .attribute s.get("nor th52_filte r").getVal ue();
        59  
        60   if (filter Type == 21 7890001)
        61      filterE ntity = Se ttings.Sou rceEntity;
        62   else if (f ilterType  == 2178900 02)
        63    filterEnt ity = Sett ings.Targe tEntity;
        64   else
        65   {
        66       N52.HT MLWebResou rceHelper. InsertOpti onSetItem( "sourcerel ationship" , "Click h ere to ref resh if an  Advanced  Find query  has been  created.", "");
        67  
        68      return;
        69   }
        70  
        71   if (entity Metadata.M anyToOneRe lationship s!= null)
        72   {
        73    
        74    for (var  i = 0; i <  entityMet adata.Many ToOneRelat ionships.l ength; i++ )
        75    {
        76      var rel ationship  = entityMe tadata.Man yToOneRela tionships[ i];
        77  
        78      var txt  = relatio nship.Refe rencedEnti ty;
        79      var val  = relatio nship.Refe rencingAtt ribute;
        80      
        81      text =  val + " ("  + txt + " )";
        82      value =  val+"|"+t xt;
        83      if (fil terEntity  == txt) {
        84         N52. HTMLWebRes ourceHelpe r.InsertOp tionSetIte m("sourcer elationshi p", text,v alue);
        85       }
        86     }  
        87  
        88    }
        89  
        90       if ($( 'select#so urcerelati onship opt ion').leng th == 0) {
        91               var msg =  "No relat ionship ex ists on th e " + Sett ings.Curre ntRelation ship + " e ntity rela ting to th e " + filt erEntity +  " entity. ";
        92               N52.HTMLW ebResource Helper.Ins ertOptionS etItem("so urcerelati onship", m sg,"");
        93        }
        94          var  filterent ityname =  parent.Xrm .Page.getA ttribute(" north52_fi lterentity name").get Value();
        95         var  filterattr ibutename  = parent.X rm.Page.ge tAttribute ("north52_ filterattr ibutename" ).getValue ();
        96         var  currentVal ue = filte rattribute name + "|"  + filtere ntityname  ;
        97      
        98       if ((f ilterentit yname != n ull ) && ( filterattr ibutename  != null) & & (IsFromP ageLoad == 'true' )){
        99           $( "#sourcere lationship ").val(cur rentValue  );
        100           So urceRelati onship.Dro pDownChang ed(current Value);     
        101       }
        102       else {
        103          $(' #sourcerel ationship  option:fir st-child') .attr("sel ected", "s elected");         
        104          cur rentValue  = $("#sour cerelation ship optio n:selected ").val();
        105          Sou rceRelatio nship.Drop DownChange d(currentV alue);    
        106        }
        107       
        108   };
        109  
        110   SourceRela tionship.e rrorRetrie veAttribut es = funct ion(error)  {  
        111       alert( "North52 F ormula Man ager : " +  error.mes sage);
        112     };
        113  
        114   SourceRela tionship.D ropDownCha nged= func tion(value ) {  
        115     if (valu e !== null ) {  
        116  
        117               var split  = value.s plit("|");
        118              attribute  = split[0] ;
        119               entity =  split[1];
        120              parent.Xrm .Page.data .entity.at tributes.g et("north5 2_filteren tityname") .setValue( entity);    
        121              parent.Xrm .Page.data .entity.at tributes.g et("north5 2_filterat tributenam e").setVal ue(attribu te);   
        122          }
        123  
        124  
        125     } ; 
        126  
        127   SourceRela tionship.O nClick = f unction(Is FromPageLo ad) {  
        128  
        129     var fetc hxml = "";
        130     var fetc hxmlAdvanc edFind = " ";
        131     var fetc hxmlSaved  = parent.X rm.Page.ge tAttribute ("north52_ query").ge tValue();
        132  
        133     if (IsFr omPageLoad  == 'false ') 
        134     {
        135        //fet chxmlAdvan cedFind =  parent.doc ument.getE lementById ("IFRAME_a dvancedfin d").conten tWindow.do cument.get ElementByI d("content IFrame").c ontentWind ow.documen t.getEleme ntById("re sultRender ").FetchXm l.value; 
        136        fetch xmlAdvance dFind = pa rent.Xrm.P age.data.e ntity.attr ibutes.get ("north52_ query").ge tValue() ;
        137     }
        138  
        139  
        140      if (fet chxmlAdvan cedFind !=  "")   {
        141         fetc hxml =  fe tchxmlAdva ncedFind;
        142      }
        143      else  {
        144         fetc hxml =  fe tchxmlSave d;
        145      }
        146  
        147      if ((fe tchxml !=  "") && (fe tchxml !=  null))
        148      {
        149  
        150          var  doc = N52 .HTMLWebRe sourceHelp er.GetXmlD ocument(fe tchxml);
        151          var  entityNod e = N52.HT MLWebResou rceHelper. GetXmlNode s(doc , "/ /entity");
        152  
        153          
        154          var  entityNam e = entity Node[0].at tributes[0 ].value;
        155          var  entityFil terName =  parent.Xrm .Page.data .entity.at tributes.g et("north5 2_filteren tityname") .getValue( ) ;
        156  
        157           if  ((Setting s.CurrentR elationshi p != entit yName) ||  (entityFil terName ==  "") || (e ntityFilte rName == n ull)) {
        158                              Setti ngs.Curren tRelations hip = enti tyName;
        159                              Sourc eRelations hip.Load(e ntityName, entityName , IsFromPa geLoad);
        160           }
        161        }
        162       else {
        163            $ ("select[i d$=sourcer elationshi p] > optio n").remove ();
        164            N 52.HTMLWeb ResourceHe lper.Inser tOptionSet Item("sour cerelation ship", "Cl ick here t o refresh  if an Adva nced Find  query has  been creat ed.","");
        165       }
        166         
        167  
        168   } ; 
        169  
        170   SourceRela tionship.C allFormula SourceTarg et = funct ion() {  
        171  
        172       var qu erystringp arams = pa rent.Xrm.P age.contex t.getQuery StringPara meters();
        173       var lo okupFormul a = parent .Xrm.Page. data.entit y.attribut es.get("no rth52_form ula_north5 2_formulad etail_id") .getValue( );
        174  
        175       var gu id = looku pFormula[0 ].id;
        176       guid =  guid.repl ace("{", " ");
        177       guid =  guid.repl ace("}", " ");
        178  
        179       if (gu id  != und efined)
        180       {
        181       var se rverUrl =  N52.Dialog Helpers.Ge tServerUrl ();
        182       var oD ataServer  = serverUr l + "/XRMS ervices/20 11/Organiz ationData. svc/";
        183      
        184       var oD ataQuery =  "north52_ formulaSet ?$select=n orth52_Sou rceEntityN ame,north5 2_TargetEn tityName&$ filter=nor th52_formu laId eq gu id'" + gui d + "'";
        185  
        186        var o DataSelect  = oDataSe rver + oDa taQuery;
        187  
        188        $.aja x({
        189        type:  "GET",
        190        conte ntType: "a pplication /json; cha rset=utf-8 ",
        191        datat ype: "json ",
        192        url:  oDataSelec t,
        193        befor eSend: fun ction (XML HttpReques t) { XMLHt tpRequest. setRequest Header("Ac cept", "ap plication/ json"); },
        194        succe ss: functi on (data,  textStatus , XmlHttpR equest)
        195        {
        196                SourceRe lationship .SetFormul aSourceTar get (data. d);
        197  
        198        },
        199        error : function  (XmlHttpR equest, te xtStatus,  errorThrow n) { alert ('OData Se lect Faile d: ' + oDa taSelect ) ; }
        200        });
        201       
        202      } 
        203     
        204  
        205   };
        206  
        207   SourceRela tionship.S etFormulaS ourceTarge t = functi on(Entity)  {  
        208  
        209      if (Ent ity.result s[0] == un defined)
        210      {
        211           al ert("North 52 Formula  Manager -  Could not  find form ula.");
        212       }
        213      else
        214      {
        215       var so urce = Ent ity.result s[0].north 52_SourceE ntityName;
        216       var ta rget = Ent ity.result s[0].north 52_TargetE ntityName;
        217     
        218       Settin gs.SourceE ntity = so urce;
        219       Settin gs.TargetE ntity = ta rget;
        220  
        221       //Part  of the in it process
        222       Source Relationsh ip.OnClick ('true');
        223  
        224      }
        225  
        226   };
        227  
        228   </SCRIPT>
        229   </STYLE>
        230   <META char set=utf-8> </HEAD>
        231   <BODY onlo ad=SourceR elationshi p.Init() b gColor=tra nsparent>
        232   <DIV id=co ntainer>
        233   <DIV id=ma in><SELECT  style="WI DTH: 100%;  IME-MODE:  auto" id= sourcerela tionship o nchange=So urceRelati onship.Dro pDownChang ed(this.va lue) class =ms-crm-Se lectBox on click="Sou rceRelatio nship.OnCl ick('false ')"></SELE CT> </DIV> </DIV></BO DY></HTML>