<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 周銳 閱讀(336) 評論(0)  編輯  收藏 所屬分類: TIBCO
    主站蜘蛛池模板: 亚洲六月丁香婷婷综合| 一日本道a高清免费播放| 免费看大美女大黄大色| 一级视频在线免费观看| 亚洲国产精品无码久久一线| 亚洲免费中文字幕| 特级毛片全部免费播放a一级| 久久精品国产精品亚洲蜜月| 最近中文字幕mv手机免费高清| 好猛好深好爽好硬免费视频| 亚洲国产高清视频在线观看| 亚洲A丁香五香天堂网| 99热这里只有精品免费播放 | 国产精品无码亚洲精品2021 | 亚洲av无码国产精品色在线看不卡 | 亚洲精品高清国产一线久久| 九九精品免费视频| 中文字幕不卡免费高清视频| 亚洲男人的天堂久久精品| 亚洲色精品aⅴ一区区三区| 拍拍拍又黄又爽无挡视频免费| 国产久爱免费精品视频| 中文字幕亚洲码在线| 亚洲成在人线av| 日韩精品成人亚洲专区| 一色屋成人免费精品网站| 91精品成人免费国产| 黄页网站在线视频免费| tom影院亚洲国产一区二区| 日本亚洲视频在线| 亚洲国产精品一区二区九九 | 嫩草成人永久免费观看| 新最免费影视大全在线播放| 亚洲综合精品伊人久久| 图图资源网亚洲综合网站| 在线播放亚洲第一字幕| 亚洲国产高清在线一区二区三区 | 天天影院成人免费观看| a级毛片在线免费看| 黄页网站在线观看免费| 亚洲AV网一区二区三区|