??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久一本精品,а√在线中文网新版地址在线,国产亚洲欧美激情http://www.aygfsteel.com/rain1102/category/37662.html<br/><font color="green" style="font-family: 华文行楷;font-size:16px;">子曰Q危邦不入,乱邦不居。天下有道则见,无道则隐?lt;/font><font color="#3C1435"></font>zh-cnSat, 21 Feb 2009 03:14:24 GMTSat, 21 Feb 2009 03:14:24 GMT60遍历整个面查询不同cd的组?/title><link>http://www.aygfsteel.com/rain1102/archive/2007/06/26/126268.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Tue, 26 Jun 2007 02:02:00 GMT</pubDate><guid>http://www.aygfsteel.com/rain1102/archive/2007/06/26/126268.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/126268.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2007/06/26/126268.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/126268.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/126268.html</trackback:ping><description><![CDATA[<span id="wmqeeuq" class=jsxdoc_link onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').searchLink('jsx3.app.Model','method:getDescendantsOfType');"><strong>jsx3.app.Model.getDescendantsOfType<br></strong><br>method getDescendantsOfType(<span>strType, </span><span>bShallow</span>)<br><br>Finds all descendants of the given type.<br> <h3 class=jsxdoc>Parameters:</h3> <p class=jsxdoc><span id="wmqeeuq" class=jsxdoc_paramname>strType</span> <span id="wmqeeuq" class=$>{<span id="wmqeeuq" class=jsxdoc_link onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('String');">String</span> | <span id="wmqeeuq" class=jsxdoc_link onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('Function');">Function</span> | <span id="wmqeeuq" class=jsxdoc_link onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('jsx3.lang.Class');">jsx3.lang.Class</span>}<span id="wmqeeuq" class=""></span> – <span id="wmqeeuq" class=jsxdoc_paramdesc><span id="wmqeeuq" class="">the fully-qualified class name, class constructor function, or <code>jsx3<span id="wmqeeuq" class=$><span id="wmqeeuq" class=jsxdoc_paramdesc><span id="wmqeeuq" class="">.Class instance.<br><font face="Times New Roman"><span id="wmqeeuq" class=jsxdoc_paramname>bShallow</span> </font><span id="wmqeeuq" class=$><font face="Times New Roman">{<span id="wmqeeuq" class=jsxdoc_link onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('Boolean');">boolean</span>}<span id="wmqeeuq" class=""></span> – </font><span id="wmqeeuq" class=jsxdoc_paramdesc><span id="wmqeeuq" class=""><font face="Times New Roman">if </font><code>true</code><font face="Times New Roman">, only search direct children, not all <span id="wmqeeuq" class=$><span id="wmqeeuq" class=jsxdoc_paramdesc><span id="wmqeeuq" class="">descendants.</p> <h3 class=jsxdoc>Returns:</h3> <p class=jsxdoc><span id="wmqeeuq" class=$>{<span id="wmqeeuq" class=jsxdoc_link onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('Array');">Array</span><<span id="wmqeeuq" class=jsxdoc_link onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('jsx3.app.Model');">jsx3.app.Model</span>>}<span id="wmqeeuq" class=""> – </span></span><span id="wmqeeuq" class=jsxdoc_returndesc><span id="wmqeeuq" class="">an array of matching descendants<br><br><strong>for example:</strong><br><br>/**<br>* Bind change events of the specified control and its all children to the specified callback function. <br>* exceptedControlNames don't bind change event<br>*/<br>Eric.bindChangeEvents = function(rootNode, callback, exceptedControlNames) {<br>     if (exceptedControlNames == undefined) {<br>          exceptedControlNames = [];<br>     }<br>    // bind change events for TextBox<br>    var children = rootNode.getDescendantsOfType("jsx3.gui.TextBox");<br>    for (var i = 0; i < children.length; i++) {<br>        if (exceptedControlNames.indexOf(children[i].getName()) == -1) {<br>            children[i].subscribe(jsx3.gui.Interactive.JSXCHANGE, callback);<br>        }<br>    }<br>}</span></span></p> </span></span></span></font></span></span></span></span></span></span></code></span></span></span></span><img src ="http://www.aygfsteel.com/rain1102/aggbug/126268.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-06-26 10:02 <a href="http://www.aygfsteel.com/rain1102/archive/2007/06/26/126268.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Tibco的Grid事g中用到的一些属?/title><link>http://www.aygfsteel.com/rain1102/archive/2007/06/22/125834.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Fri, 22 Jun 2007 06:46:00 GMT</pubDate><guid>http://www.aygfsteel.com/rain1102/archive/2007/06/22/125834.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/125834.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2007/06/22/125834.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/125834.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/125834.html</trackback:ping><description><![CDATA[obj, objEVENT, strRECORDID, objCOLUMN, strNEWVALUE<img src ="http://www.aygfsteel.com/rain1102/aggbug/125834.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-06-22 14:46 <a href="http://www.aygfsteel.com/rain1102/archive/2007/06/22/125834.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>select textbox value when focus on it.http://www.aygfsteel.com/rain1102/archive/2007/05/30/120887.htmlEric.ZhouEric.ZhouWed, 30 May 2007 05:14:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/05/30/120887.htmlhttp://www.aygfsteel.com/rain1102/comments/120887.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/05/30/120887.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/120887.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/120887.htmltextbox: events editor: focus: this.getRendered().select();

HTMLElement getRendered(objGUI : Object | jsx3.gui.Event)
Returns handle/reference to the JSX GUI Object's on-screen counterpart—basically a handle to a DHTML object such as a DIV, SPAN, etc

Parameters:

objGUIeither the HTML document containing the rendered object or an HTML element in that document. This argument is optional but improves the efficiency of this method if  provided?br>

Returns:

IE DHTML object



Eric.Zhou 2007-05-30 13:14 发表评论
]]>
为Matrix单元格添加数据(无刷斎ͼhttp://www.aygfsteel.com/rain1102/archive/2007/05/24/119807.htmlEric.ZhouEric.ZhouThu, 24 May 2007 12:44:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/05/24/119807.htmlhttp://www.aygfsteel.com/rain1102/comments/119807.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/05/24/119807.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/119807.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/119807.html之前修改后者往Matrixd一行记录的时候,都是?/span>
jsx3.xml.Entity insertRecord(objRecord : Object<String, String>, strParentRecordId : String, bRedraw : boolean)
或?/span>void insertRecordNode(objRecordNode : jsx3.xml.Entity, strParentRecordId : String, bRedraw : boolean)Ҏ?/span>
通过对两个方法的参数或者对insertRecordNodeҎ的说明:Inserts a new record into the XML data source of this object. This method is the same as insertRecord() except that its first parameter is of type jsx3.xml.Entity rather than Object.可以看出只是一个是对象Q而后者则是一?/span>Entity 。而这两种Ҏ的最后一个参C有说明:bRedraw – if true or null, the on-screen view of this object is immediately updated to reflect the additional record.
但这时候遇C一个就是更新单元格的数据,而之前我们做的时候都是通过jsx3.xml.Entity getRecordNode(strRecordId : String)Ҏ把当前选上的记录先获取到。然后再通过jsx3.xml.Entity setAttribute(strName : String, strValue : String)Ҏ讄单元倹{最后还要利?/span>void repaintData()Ҏh数据。这h可以把修改后的值显C出来。其中对repaintData解释是:Paints only the data rows. Call for quick repainting of the data rows when only the source data has changed. Does not recalculate and reprofile the box profile and resulting XSLT. Retains scroll position when possible.

而最q看C另一个方法:jsx3.xml.CDF insertRecordProperty(strRecordId : String, strPropName : String, strPropValue : String, bRedraw : boolean)Q而这Ҏ正好解决了单元格值的变化Q?/span>Inserts a new property into an existing record with jsxid equal to strRecordId. If the property already exists, the existing property value will be updated. If no such record exists in the XML document, this method fails quietly.

另注Q获取单行记录还有另一个方法:Object<String, String> getRecord(strRecordId : String)Q他?/span>getRecordNodeq回的类型不同,他返回的是对象。我们可以通过说明Q?/span>Returns an object containing the attributes of a particular CDF record as property/value pairs. The object returned by this method is a copy of the underlying data. Therefore, updates to this object will not affect the underlying data.看出。他是一个克隆,也就是对其操作ƈ不媄?/span>jsx3.xml.CDF里面的倹{而当修改getRecordNodeq回?/span>Entity会影响?/span>jsx3.xml.CDF?/span>getRecordNode的说明中可以体现这一炏V?/span>Returns a record from the XML data source of this object. This returned value is a handle to the record and not a clone. Therefore, any updates made to the returned value with update the XML document of this object. To reflect such changes in the on-screen view of this object, call redrawRecord(strRecordId, jsx3.xml.CDF.UPDATE); on this object.q里q说C另一个方?/span>redrawRecord(strRecordId, jsx3.xml.CDF.UPDATE); q就相当与单行刷新。当然比使用void repaintData()Ҏh数据好的多了?/span>
当然q有别的Ҏ。例?/span>Matrix里面q有一个实现就是:void redrawCell(strRecordId : String, objColumn : jsx3.gui.Matrix.Column, bSuppressTriggers : boolean)Q?/span>Updates the on-screen cell to reflect the value in the CDF document to which the cell is mapped.?/span>void redrawMappedCells(strRecordId : String, strAttName : String)Q?/span>Updates the on-screen cell to reflect the value in the CDF document to which the cell is mapped.以及?/span>void redrawRecord(strRecordId : String, intAction : int, bRecurse : boolean)的实现?/span>
所以当修改单行的单元格数据的时候看个h爱好了?/span>



Eric.Zhou 2007-05-24 20:44 发表评论
]]>
add scroll barshttp://www.aygfsteel.com/rain1102/archive/2007/05/24/119799.htmlEric.ZhouEric.ZhouThu, 24 May 2007 12:03:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/05/24/119799.htmlhttp://www.aygfsteel.com/rain1102/comments/119799.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/05/24/119799.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/119799.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/119799.html

Eric.Zhou 2007-05-24 20:03 发表评论
]]>
让Grid单行不能~辑http://www.aygfsteel.com/rain1102/archive/2007/05/22/119054.htmlEric.ZhouEric.ZhouTue, 22 May 2007 02:04:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/05/22/119054.htmlhttp://www.aygfsteel.com/rain1102/comments/119054.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/05/22/119054.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/119054.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/119054.htmlDatepicker icon: calender comes up but can't select a date. Disabled.
Datepicker textbox: Edit is saved to CDF. Not disabled.
Text Field column: Edit is saved to CDF. Not disabled.
Checkbox: Disabled
Select: Edit is saved to CDF. Not disabled.

Set property for "Before Edit" with following code fragment Q?

if (this.getRecord(strRECORDID).jsxdisabled == 1) false;


Eric.Zhou 2007-05-22 10:04 发表评论
]]>
jsx3.gui.Eventhttp://www.aygfsteel.com/rain1102/archive/2007/04/23/112974.htmlEric.ZhouEric.ZhouMon, 23 Apr 2007 08:19:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/04/23/112974.htmlhttp://www.aygfsteel.com/rain1102/comments/112974.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/04/23/112974.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/112974.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/112974.htmljsx3.gui.Event
enterKey()
method enterKey()
Returns true if the enter key was pressed.
Returns:
{boolean} –


jsx3.gui.Event
keyCode()
method keyCode()
Returns integer representing the key code of the key just pressed/keyed-down.
Returns:
{int} – keycode

 I have two jsx3.gui.TextBox fields and the first one has an event handler set on the "Key Down" property.
----------
Key Down: nextField(this,objEVENT);
----------

function nextField(objJSX,objEvent){
var keyCode = objEvent.keyCode();

if (keyCode == 13) {
objEvent.cancelKey();
objEvent.cancelBubble();
objEvent.setKeyCode(jsx3.gui.Event.KEY_TAB);
objJSX.doEvent(jsx3.gui.Interactive.JSXKEYDOWN, {objEVENT:objEvent});
}
}



Eric.Zhou 2007-04-23 16:19 发表评论
]]>
jsx3.gui.Matrix.EditMask.emGetSessionhttp://www.aygfsteel.com/rain1102/archive/2007/04/19/111997.htmlEric.ZhouEric.ZhouThu, 19 Apr 2007 09:30:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/04/19/111997.htmlhttp://www.aygfsteel.com/rain1102/comments/111997.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/04/19/111997.html#Feedback2http://www.aygfsteel.com/rain1102/comments/commentRss/111997.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/111997.htmljsx3.gui.Matrix.EditMask

emGetSession()

final method emGetSession()

Returns the state of the current edit session if this object is involved in a jsx3.gui.Matrix edit mask session. The state has the following keys:
  • matrix {jsx3.gui.Matrix}
  • column {jsx3.gui.Matrix.Column}
  • recordId {String}
  • td {HTMLElement}

Returns:{Object<String, Object>}the edit session.



Eric.Zhou 2007-04-19 17:30 发表评论
]]>
使用jsx3.gui.Splitter对象的setSubcontainer1Pct()Ҏhttp://www.aygfsteel.com/rain1102/archive/2007/04/06/108970.htmlEric.ZhouEric.ZhouFri, 06 Apr 2007 08:35:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/04/06/108970.htmlhttp://www.aygfsteel.com/rain1102/comments/108970.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/04/06/108970.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/108970.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/108970.htmljsx3.gui.Splitter
setSubcontainer1Pct()
method setSubcontainer1Pct(strSubcontainerPct, bView)
Sets a valid percentage (e.g., 100.00% 23.567%) that will be applied to the on-screen element as its CSS width/height percentage
Parameters:
strSubcontainerPct {String}valid CSS width property as a percentage (e.g., 34.56%)
bView {boolean}false if null; if true the view is updated automatically without a repaint
Returns:
{jsx3.gui.Splitter}– this object


egQ?br>service.menuMinimize = function(menuToggle,isSelf) {
   if (isSelf != null) {
      if (isSelf == 0) {
         menuToggle.setState(menuToggle.getState() == 0 ? 1 : 0);
      }
   }
   var menuSplitter = csa.getServer().getJSXByName('splitter_menuright');
   if (!menuToggle.getState()){
      menuSplitter.setSubcontainer1Pct("95.86",true);
   } else {
      menuSplitter.setSubcontainer1Pct("67.70",true);
   }
}


Eric.Zhou 2007-04-06 16:35 发表评论
]]>
Get data access the mapped CDF documenthttp://www.aygfsteel.com/rain1102/archive/2007/04/05/108620.htmlEric.ZhouEric.ZhouThu, 05 Apr 2007 02:12:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/04/05/108620.htmlhttp://www.aygfsteel.com/rain1102/comments/108620.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/04/05/108620.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/108620.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/108620.html
In the video a CDF document named "quotes" was created, you can access this document from the cache with

doc = <namespace>.getCache().getDocument('quotes')
iter = doc.selectNodes('//record').iterator();
jsx3.log(iter.next().getAttribute('High'));
jsx3.log(iter.next().getAttribute('High'));


Eric.Zhou 2007-04-05 10:12 发表评论
]]>
让SelectW一ơ显C时候就昄里面的数?/title><link>http://www.aygfsteel.com/rain1102/archive/2007/03/30/107494.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Fri, 30 Mar 2007 07:52:00 GMT</pubDate><guid>http://www.aygfsteel.com/rain1102/archive/2007/03/30/107494.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/107494.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2007/03/30/107494.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/107494.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/107494.html</trackback:ping><description><![CDATA[今天使用Select的时候,惛_W一ơ显C的时候,把数据昄出来?br />其实只要讄Select的valueZ惌昄的|然后在调用Web Service中方法成功的时候用repaint()可以了Q?br />例如Q?br />service.ongetCountriesResultSuccess = function(objEvent) {<br />       objEvent.target.getServer().getJSXByName("country").repaint();<br />      //var responseXML = objEvent.target.getInboundDocument();<br />      //objEvent.target.getServer().alert("Success","The service call was successful.");<br />};<br /><br /><div id="wmqeeuq" class="jsxdoc_methoddecl"><div id="wmqeeuq" class="jsxdoc"><div id="wmqeeuq" class="jsxdoc_methodhead"><h2><span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('jsx3.gui.Painted');">jsx3.gui.Painted</span></h2><h1>repaint()</h1></div><hr /><div id="wmqeeuq" class="jsxdoc_methoddecl">method repaint() </div><div id="wmqeeuq" class="jsxdoc_methoddesc">Updates the view of this object by calling <code>paint()</code> and replacing the current view with the returned HTML. This method has no effect if this object is not currently displayed.</div><h3 class="jsxdoc">Returns:</h3><div id="wmqeeuq" class="jsxdoc_return"><span id="wmqeeuq" class="$">{<span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('String');">String</span>} – </span><span id="wmqeeuq" class="jsxdoc_returndesc">the result of calling <code>paint()</code> or <code>null</code> if this object is not displayed.</span></div><h3 class="jsxdoc">See Also:</h3><div id="wmqeeuq" class="indent"><span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doSeeLink('method:repaint',1);">paint()</span></div></div></div><img src ="http://www.aygfsteel.com/rain1102/aggbug/107494.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-03-30 15:52 <a href="http://www.aygfsteel.com/rain1102/archive/2007/03/30/107494.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用doValidate()对前端用戯入验?/title><link>http://www.aygfsteel.com/rain1102/archive/2007/03/30/107431.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Fri, 30 Mar 2007 03:01:00 GMT</pubDate><guid>http://www.aygfsteel.com/rain1102/archive/2007/03/30/107431.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/107431.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2007/03/30/107431.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/107431.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/107431.html</trackback:ping><description><![CDATA[<div id="wmqeeuq" class="jsxdoc"> <div id="wmqeeuq" class="jsxdoc_methodhead"> <h2> <span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('jsx3.gui.Form');">jsx3.gui.Form</span> </h2> <h1>doValidate()</h1> </div> <hr /> <div id="wmqeeuq" class="jsxdoc_methoddecl">abstract method doValidate() </div> <div id="wmqeeuq" class="jsxdoc_methoddesc">Abstract method that must be implemented by any class that implements the Form interface.</div> <h3 class="jsxdoc">Returns:</h3> <div id="wmqeeuq" class="jsxdoc_return"> <span id="wmqeeuq" class="$">{<span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('Number');">int</span>} – </span> <span id="wmqeeuq" class="jsxdoc_returndesc"> <code>STATEINVALID</code> or <code>STATEVALID</code>.<br /><br />例如Text Box中的输入验证<br /><br /><div id="wmqeeuq" class="jsxdoc"><div id="wmqeeuq" class="jsxdoc_methodhead"><h2><span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('jsx3.gui.TextBox');">jsx3.gui.TextBox</span></h2><h1>doValidate()</h1></div><hr /><div id="wmqeeuq" class="jsxdoc_methoddecl">method doValidate() </div><div id="wmqeeuq" class="jsxdoc_methoddesc">validates form field, ensuring it contains the correct data set</div><h3 class="jsxdoc">Returns:</h3><div id="wmqeeuq" class="jsxdoc_return"><span id="wmqeeuq" class="$">{<span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('Boolean');">boolean</span>} – </span><span id="wmqeeuq" class="jsxdoc_returndesc">true if field contains a valid value given @VALIDATIONTYPE</span></div><h3 class="jsxdoc">Overrides:  <code><span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doMemberLink('overrides:doValidate');">doValidate</span></code> in <code><span id="wmqeeuq" class="jsxdoc_link" onclick="jsx3.html.getJSXParent(this).getAncestorOfName('jsx_ide_api').doClassLink('jsx3.gui.Form');">jsx3.gui.Form</span></code></h3></div></span> </div> </div><img src ="http://www.aygfsteel.com/rain1102/aggbug/107431.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-03-30 11:01 <a href="http://www.aygfsteel.com/rain1102/archive/2007/03/30/107431.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>让GI中的Girdlg的数据自动显C?/title><link>http://www.aygfsteel.com/rain1102/archive/2007/03/29/107317.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Thu, 29 Mar 2007 12:00:00 GMT</pubDate><guid>http://www.aygfsteel.com/rain1102/archive/2007/03/29/107317.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/107317.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2007/03/29/107317.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/107317.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/107317.html</trackback:ping><description><![CDATA[q几天一直在学TIBCO公司的GIQ当然也遇到了一些的问题。其中有一个就是,利用Gridlg昄一l数据的时候。每ơ都要点一下grid才可以显C数据。然后看了他们自带的例子发现Q原来只要调用一个方法就可以自动昄数据了?br />rain1102.APP.getJSXByName("gridResults").<font color="#006400">repaintData</font>();<br /><br />jsx3.gui.Matrix<br /><div id="wmqeeuq" class="jsxdoc_methoddecl">method repaintData() </div><div id="wmqeeuq" class="jsxdoc_methoddesc">Paints only the data rows. Call for quick repainting of the data rows when only the source data has changed. Does not recalculate and reprofile the box profile and resulting XSLT. Retains scroll position when possible.</div><img src ="http://www.aygfsteel.com/rain1102/aggbug/107317.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-03-29 20:00 <a href="http://www.aygfsteel.com/rain1102/archive/2007/03/29/107317.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jsx3.net.Service中的doInboundMap()和setInboundDocument(objXML) Ҏhttp://www.aygfsteel.com/rain1102/archive/2007/03/29/107254.htmlEric.ZhouEric.ZhouThu, 29 Mar 2007 08:41:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/03/29/107254.htmlhttp://www.aygfsteel.com/rain1102/comments/107254.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/03/29/107254.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/107254.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/107254.htmlmethod doInboundMap()
Applies all inbound mappings, using the server response document as the source for the operation. This method can only be called if 'doCall' has executed and the server has responded. Although this method is called once automatically, it can be called at any time to reapply the mapping rules. Example usage: var oService = new jsx3.net.Service(); oService.setInboundDocument(objSomeDocumentIManuallyWantToLoad); oService.doInboundMap();

method setInboundDocument(objXML)
Sets a parsed instance of the response document as soon as it returns from the server returned from the service; otherwise null


Eric.Zhou 2007-03-29 16:41 发表评论
]]>
TIBCO中的jsx3.gui.Block的setVisibility()Ҏ使用http://www.aygfsteel.com/rain1102/archive/2007/03/28/106908.htmlEric.ZhouEric.ZhouWed, 28 Mar 2007 03:48:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/03/28/106908.htmlhttp://www.aygfsteel.com/rain1102/comments/106908.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/03/28/106908.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/106908.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/106908.html

setVisibility()


method setVisibility(VISIBILITY, bRepaint)
Sets the CSS visibility property the object

Parameters:

VISIBILITY {String}[jsx3.gui.Block.VISIBILITYVISIBLE, jsx3.gui.Block.VISIBILITYHIDDEN]
bRepaint {boolean}if true, the view of this object is immediately updated, obviating the need to call repaint().


Eric.Zhou 2007-03-28 11:48 发表评论
]]>
TIBCO中的Selectlghttp://www.aygfsteel.com/rain1102/archive/2007/03/27/106740.htmlEric.ZhouEric.ZhouTue, 27 Mar 2007 11:28:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/03/27/106740.htmlhttp://www.aygfsteel.com/rain1102/comments/106740.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/03/27/106740.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/106740.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/106740.html 今天使用TIBCO中的Selectlg,其中select的记录值是调用web service中的ҎQ然后返回数l,数组中包含多个对象.
The jsx3.gui.Select uses the attribute "jsxtext" as the display field.
上的意思就是要x属性值显C给selectQ则必须把属性映的名字讄?jsxtext";

而我又想把对象的IDglselect的value属性。查了一下文档看刎ͼjsxid属性,于是p了一下!果然可以Q?br />因ؓselect有个getValue() method 文档描述为:
Returns the value of this select box. The value is the jsxid attribute of the selected CDF record.

q有一点,是Q当你把一个值既想作为select的显C值又想作为真实值的时候。则应该把该属性做两个映射Q分别ؓjsxid和jsxtextQ?/div>


Eric.Zhou 2007-03-27 19:28 发表评论
]]>some question in tibco gihttp://www.aygfsteel.com/rain1102/archive/2007/03/27/106635.htmlEric.ZhouEric.ZhouTue, 27 Mar 2007 04:03:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/03/27/106635.htmlhttp://www.aygfsteel.com/rain1102/comments/106635.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/03/27/106635.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/106635.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/106635.html   appname.getCache().getDocument('MTX_DATA_XML').selectNodes('//record[@jsxselected="1"]');
2.
format 1:
<data jsxid="jsxroot">
<record jsxtext="Jame Paulis" jsxid="1" office="1018" status="Interview" experience="3" longivity="1" ></record>
<record jsxtext="James" jsxid="2" office="1019" status="GD" experience="3" longivity="2" ></record>
<data/>

 format 2:
<data>
<record>
<ID>1</ID>
<office>1018</office>
<status>Interview</status>
<experience>3</experience>
<longivity>1</longivity>
</record>
<record>
<ID>2</ID>
<office>1019</office>
<status>Group Discussion</status>
<experience>0</experience>
<longivity>3</longivity>
</record>
</data>
var nodeValueExp = objDoc.selectSingleNode("http://record[ID='1']/experience").getValue();

The following XSL will produce the output you wanted in format 2:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<xsl:element name="data">
<xsl:for-each select="http://record">
<xsl:element name="record">
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='jsxid'"><xsl:element name="ID"><xsl:value-of select="."/></xsl:element></xsl:when>
<xsl:when test="name()='jsxtext'"></xsl:when>
<xsl:otherwise><xsl:element name="{name()}"><xsl:value-of select="."/></xsl:element></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>



You can use this XPath for format1:

//record[@jsxid='1']/@experience


3.Is there a way to select items in a Select by pressing keys? For example I have a alphabetized list of States. I want to be able to press 'A' 4 times to move from Alabama, to Alaska, to Arizona, to Arkansas. Then I want to be able to press tab and move on to a zip code field. This should leave Arkansas selected.

This is the normal behavior for a simple html select box and I want to stick to what people are familiar with.

function handleKeyPress(objSelect,objEvent) {
  //resolve the key the pressed;only listen for numbers and letters
  var intKey = objEvent.keyCode();
  var strKey = String.fromCharCode(intKey);
  if(strKey.search(/[a-z0-9]/i) == -1) return true;
  var objKey = new RegExp(strKey,"i");

  //get list of options for the select
  var objXML = objSelect.getXML();
  var objTextNodes = objSelect.getXML().selectNodes("http://record[@jsxtext]");

  //query the select box to see if the same key was pressed before; if so begin searching at he correct index
  var objState = objSelect.custom_index || {};
  objState[strKey] = (objState[strKey] != null) ? objState[strKey] : 0;
  var intIndex = (objState[strKey] < objTextNodes.getLength()) ? objState[strKey] : 0;
  jsx3.log("index: " + objState[strKey]);


  objState[strKey] = 0;
  return true;
};


function handleKeyPress(objSelect,objEvent) {
  //resolve the key the pressed;only listen for numbers and letters
  var intKey = objEvent.keyCode();
  var strKey = String.fromCharCode(intKey);
  if(strKey.search(/[a-z0-9]/i) == -1) return true;
  var objKey = new RegExp(strKey,"i");

  //get list of options for the select
  var objXML = objSelect.getXML();
  var objTextNodes = objSelect.getXML().selectNodes("http://record[@jsxtext]");

  //query the select box to see if the same key was pressed before; if so begin searching at he correct index
  var objState = objSelect.custom_index || {};
  objState[strKey] = (objState[strKey] != null) ? objState[strKey] : 0;
  var intIndex = (objState[strKey] < objTextNodes.getLength()) ? objState[strKey] : 0;
  jsx3.log("index: " + objState[strKey]);

  //loop to find the next item in the list that begins with the given key
  for(var i=intIndex;i<objTextNodes.getLength();i++) {
    if(objTextNodes.getItem(i).getAttribute("jsxtext").search(objKey) == 0) {
      objSelect.custom_index = {};
      objSelect.custom_index[strKey] = i+1;
      objSelect.setValue(objTextNodes.getItem(i).getAttribute("jsxid"));
      return false;
    }
  }

  //loop from 0 to current index to find the first item in the list that begins with the given key.(wrap around)
  //following was added by dlehman
  for(var i=0;i<intIndex;i++) {
    if(objTextNodes.getItem(i).getAttribute("jsxtext").search(objKey) == 0) {
      objSelect.custom_index = {};
      objSelect.custom_index[strKey] = i+1;
      objSelect.setValue(objTextNodes.getItem(i).getAttribute("jsxid"));
      return false;
    }
  }
  
  objState[strKey] = 0;
  return true;
};





Eric.Zhou 2007-03-27 12:03 发表评论
]]>
在TIBCO中创建页面蟩?/title><link>http://www.aygfsteel.com/rain1102/archive/2007/03/26/106508.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Mon, 26 Mar 2007 12:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/rain1102/archive/2007/03/26/106508.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/106508.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2007/03/26/106508.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/106508.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/106508.html</trackback:ping><description><![CDATA[<p>jsx3.lang.Package.definePackage(<br />  "eg.service",                //the full name of the package to create<br />  function(service) {          //name the argument of this function<br /><br />    /**<br />     * Clear work area<br />     *<br />     * @param bvpWorkArea {jsx3.app.Model} the JSX object to be cleared.<br />     * @param objJSX {jsx3.app.Server}  (target of the model event).<br />     */<br />    service.clearWorkArea = function(workArea) {<br />       workArea.removeChildren();<br />    };</p> <p>   /**                                       <br />    * Launches reset password page. <br />    * @param objJSX {jsx3.app.Model} target of the model event.<br />    */<br />    service.resetPassword = function(objJSX) {<br />      var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");<br />      service.clearWorkArea(workArea);<br />      workArea .load("components/resetPassword.xml");  <br />    };</p> <p>    /**                                       <br />     * Launches register page. <br />     * @param objJSX {jsx3.app.Model} target of the model event.<br />     */<br />    service.register = function(objJSX) {<br />      var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");<br />      service.clearWorkArea(workArea);<br />      workArea .load("components/register.xml");  <br />    };</p> <p>    /**                                       <br />     * Launches cancel page. <br />     * @param objJSX {jsx3.app.Model} target of the model event.<br />     */<br />    service.cancel = function(objJSX) {<br />      var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");<br />      service.clearWorkArea(workArea);<br />      workArea .load("components/appCanvas.xml");  <br />    };</p> <p> <br />  }<br />);</p> <p> </p><img src ="http://www.aygfsteel.com/rain1102/aggbug/106508.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-03-26 20:16 <a href="http://www.aygfsteel.com/rain1102/archive/2007/03/26/106508.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>TIBCO(一)http://www.aygfsteel.com/rain1102/archive/2007/03/22/105581.htmlEric.ZhouEric.ZhouThu, 22 Mar 2007 08:13:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/03/22/105581.htmlhttp://www.aygfsteel.com/rain1102/comments/105581.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/03/22/105581.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/105581.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/105581.html实现x的企业整合与程理软体厂商Q美资巴士Y体(TIBCOQ,日前发表TIBCO General Interface 3.3。新版的建构基础Q是TIBCOl过业界实证的多样化|际|\应用E式QRich Internet ApplicationQRIAQ开发解x案,利用非同步通讯、JavaScript及XMLQAJAXQ技术,使功能完整、丰富的|站应用E式的开发更q速,建置更有效率?/p>

 新版软体包含TIBCO General Interface Framework及TIBCO General Interface Builder两个元gQ开发h员结合这两个元gQ可开发出完全在标準网늀览器中执行的应用程式。这是一个免安装的架构,不需用户端Y体、终端用者外掛程式、ActiveX控制ҎJava应用程式?/p>

 TIBCO General Interface Framework强大功能加入网늀览器中Q如可扩充的多元GUI元gE式库、用L资料快取、事件拖攑֊能及背景通讯{。TIBCO General Interface Builder是在此架构上层的|页瀏览器执行,它提供「所见即所得」的版面设计、可q接伺服器的视觉工具、JavaScript的逐步除错工具及其他省时的公用E式。此外,q能协助化AJAX开发的复杂性,原生的|页瀏览器应用程式设计介面(APIQ压~成一套可重复使用的统一应用E式物g及视觉开发工兗?/p>

Eric.Zhou 2007-03-22 16:13 发表评论
]]>
վ֩ģ壺 | | Զ| ˳| | | | | | ƽ| Ѯ| ʯ| ں| | Ȫ| | | Ԫ| ̨| | ¤| | | | ¸| ¡| | з| ƴ| | Ȫ| ˮ| | ½| | ʯ| | Ǧɽ| ƽ| IJ| |