锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品国产第一国产综合精品,日韩国产精品一区二区,亚洲经典一区http://www.aygfsteel.com/spy1988/category/49908.htmlzh-cnMon, 24 Oct 2011 15:15:43 GMTMon, 24 Oct 2011 15:15:43 GMT60SmartClient涓瑿riteria 鍜?AdvancedCriteria鐨勭悊瑙?/title><link>http://www.aygfsteel.com/spy1988/archive/2011/10/24/361929.html</link><dc:creator>椋庢竻鎵?/dc:creator><author>椋庢竻鎵?/author><pubDate>Mon, 24 Oct 2011 15:08:00 GMT</pubDate><guid>http://www.aygfsteel.com/spy1988/archive/2011/10/24/361929.html</guid><wfw:comment>http://www.aygfsteel.com/spy1988/comments/361929.html</wfw:comment><comments>http://www.aygfsteel.com/spy1988/archive/2011/10/24/361929.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/spy1988/comments/commentRss/361929.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/spy1988/services/trackbacks/361929.html</trackback:ping><description><![CDATA[鏃墮棿涓嶆棭浜嗭紝灝卞皯鍐欎竴浜涗簡銆?br /><div><p>Criteria for selecting only a matching set of records from a DataSource. Criteria can be applied on the client and server. Unless configured otherwise, criteria will generally be applied client-side by <a href="http://localhost:8888/isomorphic/system/reference/SmartClient_Reference.html">ResultSet</a>s via <a href="http://localhost:8888/isomorphic/system/reference/SmartClient_Reference.html">ResultSet.applyFilter()</a>. </p><p> Client- and server-side systems built into SmartClient understand two criteria formats by default: simple key-value pairs (Criteria) or the <a href="http://localhost:8888/isomorphic/system/reference/SmartClient_Reference.html">AdvancedCriteria</a> format. </p><p> Simple key-value Criteria are represented via a JavaScript Object where each property specifies the name and required value for a field. Multiple legal values for a field can be provided as an Array. For example: </p><pre><span style="color: red;"> var criteria = { field1 : "value1", field2 : ["value2", "value3"] } </span></pre> Would select all records where field1 has value "value1" and where field2 has <em>either</em> "value2" or "value3". When writing custom client and server-side filtering logic, criteria must be a JavaScript Object but the properties of that Object can contain whatever data you want. When<br /> sent to the SmartClient server, the Java representation of the criteria is described <a href="http://localhost:8888/isomorphic/system/reference/SmartClient_Reference.html">here</a>. When sent to other servers, the <a href="http://localhost:8888/isomorphic/system/reference/SmartClient_Reference.html">operationBinding.dataProtocol</a> affects the format.</div><br />鏍煎紡鐩稿綋綆鍗曘?span style="color: red;">娉ㄦ剰鍓嶉潰瀛楁field1錛屾槸涓嶉渶瑕佸皢寮曞彿鐨?/span>.<br /><div><p>AdvancedCriteria is a format for representing search criteria which may include operators on field values such as "less than", or may include sub-clauses such as several criteria applied to fields joined by an "OR" operator. </p><p> SmartClient DataSources can use AdvancedCriteria to search a list of <a href="http://localhost:8888/isomorphic/system/reference/SmartClient_Reference.html">Record</a>s, and the SmartClient Java Server can translate AdvancedCriteria to either SQL or Hibernate queries (<strong style="color: red;">Note:</strong><span style="color: red;"> The server-side AdvancedCriteria handling feature is only available with the </span><strong style="color: red;">Power</strong><span style="color: red;"> and </span><strong style="color: red;">Enterprise</strong><span style="color: red;"> Editions of SmartClient; the Pro Edition is limited to ordinary criteria handling on the server side).鍙儨Power鐗堝拰Enterprise鐗堥兘鑰佽吹鑰佽吹鐨勶紝浼佷笟鐗堢殑閮芥湁鎸塁PU鍗栫殑浜嗭紝鏅曞掋?/span></p><p> If the entire dataset is cached locally, SmartClient can perform AdvancedCriteria filtering on the client, avoiding a server call. </p><p> An AdvancedCriteria is an ordinary JavaScript object which can be created directly with JavaScript literal notation. For example: </p><pre><div>var advancedCriteria = {<br /> _constructor:"AdvancedCriteria",<br /> operator:"and",<br /> criteria:[<br /> // this is a Criterion<br /> { fieldName:"salary", operator:"lessThan", value:"80000" },<br /> { operator:"or", criteria:[<br /> { fieldName:"title", operator:"iContains", value:"Manager" },<br /> { fieldName:"reports", operator:"notNull" }<br /> ] <br /> }<br /> ]<br /> }</div></pre> An AdvancedCriteria is in effect a <a href="http://localhost:8888/isomorphic/system/reference/SmartClient_Reference.html">Criterion</a> that has been marked with _constructor:"AdvancedCriteria" to mark it as complete criteria. </div><br /><img src ="http://www.aygfsteel.com/spy1988/aggbug/361929.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/spy1988/" target="_blank">椋庢竻鎵?/a> 2011-10-24 23:08 <a href="http://www.aygfsteel.com/spy1988/archive/2011/10/24/361929.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">县级市</a>| <a href="http://" target="_blank">教育</a>| <a href="http://" target="_blank">遂昌县</a>| <a href="http://" target="_blank">榆林市</a>| <a href="http://" target="_blank">延津县</a>| <a href="http://" target="_blank">海城市</a>| <a href="http://" target="_blank">玛纳斯县</a>| <a href="http://" target="_blank">石城县</a>| <a href="http://" target="_blank">都江堰市</a>| <a href="http://" target="_blank">巴彦县</a>| <a href="http://" target="_blank">连平县</a>| <a href="http://" target="_blank">农安县</a>| <a href="http://" target="_blank">重庆市</a>| <a href="http://" target="_blank">乌苏市</a>| <a href="http://" target="_blank">中阳县</a>| <a href="http://" target="_blank">闽侯县</a>| <a href="http://" target="_blank">晋江市</a>| <a href="http://" target="_blank">温州市</a>| <a href="http://" target="_blank">阿城市</a>| <a href="http://" target="_blank">四平市</a>| <a href="http://" target="_blank">井陉县</a>| <a href="http://" target="_blank">桓仁</a>| <a href="http://" target="_blank">嵩明县</a>| <a href="http://" target="_blank">潼南县</a>| <a href="http://" target="_blank">和平县</a>| <a href="http://" target="_blank">大余县</a>| <a href="http://" target="_blank">镇江市</a>| <a href="http://" target="_blank">盐池县</a>| <a href="http://" target="_blank">怀化市</a>| <a href="http://" target="_blank">闸北区</a>| <a href="http://" target="_blank">两当县</a>| <a href="http://" target="_blank">韩城市</a>| <a href="http://" target="_blank">南康市</a>| <a href="http://" target="_blank">富川</a>| <a href="http://" target="_blank">芜湖市</a>| <a href="http://" target="_blank">巫溪县</a>| <a href="http://" target="_blank">花莲市</a>| <a href="http://" target="_blank">响水县</a>| <a href="http://" target="_blank">抚州市</a>| <a href="http://" target="_blank">望城县</a>| <a href="http://" target="_blank">墨竹工卡县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>