756. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:57:02 PM Eastern Standard 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.

756.1 Files compared

# Location File Last Modified
1 C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\SDK\SampleCode\JS\SOAPForJScript\SOAPForJScript MetaDataDemo.htm Tue Dec 20 19:51:48 2016 UTC
2 Wed Feb 1 19:57:02 2017 UTC

756.2 Comparison summary

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

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

756.4 Active regular expressions

No regular expressions were active.

756.5 Comparison detail

1   <!DOCTYPE  html>        
2   <!--        
3   This file  is part of  the Micro soft Dynam ics CRM SD K code sam ples.        
4          
5   Copyright  (C) Micros oft Corpor ation.  Al l rights r eserved.        
6          
7   This sourc e code is  intended o nly as a s upplement  to Microso ft        
8   Developmen t Tools an d/or on-li ne documen tation.  S ee these o ther        
9   materials  for detail ed informa tion regar ding Micro soft code  samples.        
10          
11   THIS CODE  AND INFORM ATION ARE  PROVIDED " AS IS" WIT HOUT WARRA NTY OF ANY        
12   KIND, EITH ER EXPRESS ED OR IMPL IED, INCLU DING BUT N OT LIMITED  TO THE        
13   IMPLIED WA RRANTIES O F MERCHANT ABILITY AN D/OR FITNE SS FOR A        
14   PARTICULAR  PURPOSE.        
15   -->        
16   <!--<snipp etMetaData Demo>-->        
17   <html lang ="en-US">        
18   <head>        
19    <title>Me tadata Dem onstration </title>        
20    <meta htt p-equiv="X -UA-Compat ible" cont ent="IE=ed ge" />        
21     <script  src="../Cl ientGlobal Context.js .aspx" typ e="text/ja vascript"> </script>        
22    <script s rc="Script s/SDK.Meta Data.js" t ype="text/ javascript "></script >        
23    <script t ype="text/ javascript ">        
24     // An un ordered li st element  to add En tity list  items to        
25     var resu lts;        
26     // An ar ea to disp lay messag es        
27     var mess age;        
28          
29     // Alert  flag to i ndicate th e changes        
30     var aler tFlag;        
31          
32     function  startSamp le() {        
33      ///<sum mary>        
34      /// Ini tializes t he sample  when the d ocument is  ready        
35      ///</su mmary>        
36      //Assig n the glob al variabl es        
37      results  = documen t.getEleme ntById("re sults");        
38      message  = documen t.getEleme ntById("me ssage");        
39      alertFl ag = docum ent.getEle mentById(" dispalert" );        
40      documen t.getEleme ntById("bt nstartSamp le").setAt tribute("d isabled",  "disabled" );        
41      //Retri eve entiti es        
42      SDK.Met adata.Retr ieveAllEnt ities(SDK. Metadata.E ntityFilte rs.Entity,        
43       false,        
44       succes sRetrieveA llEntities ,        
45       errorR etrieveAll Entities);        
46      setText (message,  "Loading.. .");        
47          
48     }        
49          
50     function  successRe trieveAllE ntities(en tityMetada taCollecti on) {        
51      ///<sum mary>        
52      /// Rec eives the  data from  SDK.Metada ta.Retriev eAllEntiti es and         
53      /// app ends a lis t item to  results fo r each one .        
54      ///</su mmary>        
55          
56      entityM etadataCol lection.so rt(functio n (a, b) {        
57       if (a. LogicalNam e < b.Logi calName)        
58       { retu rn -1 }        
59       if (a. LogicalNam e > b.Logi calName)        
60       { retu rn 1 }        
61       return  0;        
62      });        
63          
64      for (va r i = 0; i  < entityM etadataCol lection.le ngth; i++)  {        
65          
66       var en tity = ent ityMetadat aCollectio n[i];        
67       var en tityNode =  document. createElem ent("li");        
68       var en titySpan =  document. createElem ent("span" );        
69          
70       setTex t(entitySp an, entity .SchemaNam e);        
71       entity Span.id =  entity.Log icalName;        
72       entity Span.title  = "Click  to Retriev e Attribut es.";        
73       entity Span.attri butesRetri eved = fal se;        
74       // Add  the event  handler t o retrieve  attribute        
75       entity Span.oncli ck = retri eveAttribu tes;        
76       entity Span.style .cursor =  "pointer";        
77          
78       entity Node.appen dChild(ent itySpan);        
79       result s.appendCh ild(entity Node);        
80          
81      }        
82          
83      setText (message,  entityMeta dataCollec tion.lengt h +        
84      " entit ies retrie ved. Click  each enti ty to retr ieve the e ntity attr ibutes.");        
85      if (ale rtFlag.che cked == tr ue)        
86       alert( "Entity Li st Retriev ed.");        
87     }        
88     function  errorRetr ieveAllEnt ities(erro r) {        
89      ///<sum mary>        
90      /// Dis plays the  error retu rned from   SDK.Metad ata.Retrie veAllEntit ies if it  fails.        
91      ///</su mmary>        
92      setText (message,  error.mess age);        
93      if (ale rtFlag.che cked == tr ue)        
94       alert( "An Error  occurred." );        
95     }        
96          
97     function  retrieveA ttributes( ) {        
98      ///<sum mary>        
99      /// Ret rieves att ributes fo r the enti ty list it em that is  clicked        
100      ///</su mmary>        
101      if (thi s.attribut esRetrieve d == false ) {        
102       var en tityLogica lName = th is.id;        
103       // Dis play an en tity list  item level  notificat ion while  retrieving  data.        
104       var no tification  = documen t.createEl ement("spa n");        
105          
106          
107       setTex t(notifica tion, "    Retrieving  attribute s for " +  getText(th is) + "... ");        
108       notifi cation.id  = entityLo gicalName  + "Notific ation";        
109       this.p arentEleme nt.appendC hild(notif ication);        
110          
111       SDK.Me tadata.Ret rieveEntit y(SDK.Meta data.Entit yFilters.A ttributes,        
112       this.i d,        
113       null,        
114       false,        
115       functi on (entity Metadata)  { successR etrieveEnt ity(entity LogicalNam e, entityM etadata);  },        
116       errorR etrieveEnt ity);        
117          
118          
119      }        
120      this.at tributesRe trieved =  true;        
121      this.ti tle = "";        
122     }        
123          
124     function  successRe trieveEnti ty(logical Name, enti tyMetadata ) {        
125      ///<sum mary>        
126      /// Ret rieves att ributes fo r the enti ty list it em that is  clicked        
127      ///</su mmary>        
128          
129      // Upda te the ent ity list i tem notifi cation whe n data is  retrieved.        
130          
131      entityM etadata.At tributes.s ort(functi on (a, b)  {        
132       if (a. LogicalNam e < b.Logi calName)        
133       { retu rn -1 }        
134       if (a. LogicalNam e > b.Logi calName)        
135       { retu rn 1 }        
136       return  0;        
137      });        
138          
139      var not ification  = setText( document.g etElementB yId(logica lName +        
140      "Notifi cation"),  "   Retrie ved " + en tityMetada ta.Attribu tes.length  + " attri butes.");        
141          
142      var att ributeList  = documen t.createEl ement("ul" );        
143          
144      for (va r i = 0; i  < entityM etadata.At tributes.l ength; i++ ) {        
145       var at tribute =  entityMeta data.Attri butes[i];        
146       var at tributeNod e = docume nt.createE lement("li ");        
147       setTex t(attribut eNode, att ribute.Sch emaName);        
148       attrib uteList.ap pendChild( attributeN ode);        
149      }        
150      // Acce ss the ent ity list i tem elemen t        
151      var ent ityNode =  document.g etElementB yId(logica lName).par entElement ;        
152          
153      entityN ode.append Child(attr ibuteList) ;        
154      entityN ode.attrib utesDispla yed = true ;        
155      // Atta ch event h andler to  toggle dis play of at tributes.        
156      entityN ode.firstC hild.oncli ck = toggl eDisplayAt tributes;        
157      entityN ode.firstC hild.title  = "Click  to hide at tributes." ;        
158      if (ale rtFlag.che cked == tr ue)        
159       alert( entityMeta data.Schem aName + "  attributes  retrieved .");        
160     }        
161     function  errorRetr ieveEntity (error) {        
162      ///<sum mary>        
163      /// Dis plays the  error retu rned from  SDK.Metada ta.Retriev eEntity if  it fails.        
164      ///</su mmary>        
165      setText (message,  error.mess age);        
166      if (ale rtFlag.che cked == tr ue)        
167       alert( "Error!");        
168     }        
169          
170     function  toggleDis playAttrib utes() {        
171      ///<sum mary>        
172      /// tog gles wheth er the lis t of attri butes is d isplayed.        
173      ///</su mmary>        
174          
175      if (thi s.parentEl ement.attr ibutesDisp layed) {        
176       this.p arentEleme nt.lastChi ld.style.d isplay = " none";        
177       this.p arentEleme nt.attribu tesDisplay ed = false ;        
178       this.t itle = "Cl ick to sho w attribut es.";        
179          
180       if (al ertFlag.ch ecked == t rue)        
181        alert ("Attribut es were hi dden.");        
182      }        
183      else {        
184       this.p arentEleme nt.lastChi ld.style.d isplay = " block";        
185       this.p arentEleme nt.attribu tesDisplay ed = true;        
186       this.t itle = "Cl ick to hid e attribut es.";        
187          
188       if (al ertFlag.ch ecked == t rue)        
189        alert ("Attribut es are dis played.");        
190      }        
191          
192     }        
193          
194     // setTe xt and get Text mitig ate differ ences in h ow browser s set or g et text co ntent.        
195     function  setText(n ode, text)  {        
196      if (typ eof (node. innerText)  != "undef ined") {        
197       node.i nnerText =  text;        
198      }        
199      else {        
200       node.t extContent  = text;        
201      }        
202          
203     }        
204          
205     function  getText(n ode) {        
206      if (typ eof (node. innerText)  != "undef ined") {        
207       return  node.inne rText;        
208      }        
209      else {        
210       return  node.text Content;        
211      }        
212     }        
213          
214    </script>        
215   </head>        
216   <body styl e="font-fa mily: Sego e UI;">        
217    <h1>        
218     Metadata  Demonstra tion Sampl e</h1>        
219    <p>        
220     This for m requires  JavaScrip t and will  update th e page dyn amically.< /p>        
221    <p>        
222     <input i d="dispale rt" name=" dispalert"  type="che ckbox" val ue="alert"  /><label  for="dispa lert">Disp lay alert  window whe n data cha nges.</lab el></p>        
223    <p>        
224     <label i d="lblstar tSample" f or="btnsta rtSample">        
225      Click t o start th e sample:        
226     </label>        
227     <input t ype="butto n" id="btn startSampl e" name="b tnstartSam ple" value ="Start" o nclick="st artSample( )" /></p>        
228    <div id=" message">        
229    </div>        
230    <ul id="r esults">        
231    </ul>        
232   </body>        
233   </html>        
234   <!--</snip petMetaDat aDemo>-->