<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 431,  comments - 344,  trackbacks - 0
    1.Suppose i have 50 records in a matrix and using mapping i want to send only those records to BW which are selected.. how can we do this?
       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;
    };
    



    posted on 2007-03-27 12:03 周銳 閱讀(335) 評論(0)  編輯  收藏 所屬分類: TIBCO
    主站蜘蛛池模板: 免费人成视频在线| 100000免费啪啪18免进| 亚洲国产av一区二区三区| 亚洲丁香婷婷综合久久| 成人免费一区二区无码视频| 亚洲娇小性xxxx| 四虎影视免费在线| 色噜噜噜噜亚洲第一| 国产三级免费电影| 一级毛片免费毛片毛片| 亚洲午夜精品一级在线播放放| 国产人成网在线播放VA免费| 精品国产亚洲一区二区三区| 高清一区二区三区免费视频| 亚洲欧洲春色校园另类小说| a级毛片无码免费真人| 亚洲AV无码专区在线观看成人| 免费在线观看日韩| 中文字幕免费在线视频| 亚洲AV福利天堂一区二区三 | 国产精品深夜福利免费观看| 亚洲AV成人精品日韩一区| 亚洲国产日韩在线观频| 国产偷伦视频免费观看| 亚洲免费网站在线观看| 国产免费爽爽视频免费可以看| WWW国产成人免费观看视频| 亚洲情a成黄在线观看动漫尤物| 四虎精品视频在线永久免费观看| 亚洲综合激情五月色一区| 亚洲高清最新av网站| 香蕉成人免费看片视频app下载| 亚洲国产成人va在线观看网址| 免费看少妇作爱视频| 国产一区二区三区免费观在线 | 亚洲一区在线观看视频| 国产男女猛烈无遮档免费视频网站| www一区二区www免费| 亚洲伊人久久大香线蕉在观| 亚洲国产综合无码一区二区二三区 | 亚洲中文字幕丝袜制服一区|