Answered how I save data in a text file if the checkbox of a row (in table) is checked

  • 22 มิถุนายน 2555 13:14
     
      มีโค้ด

    I have a table in each row having checkbox and to find if checkbox is checked then only the data of that row is to be saved in text file using xslt

    for this I have some xsl code

    <xsl:for-each select="session">
    <tr class="session{position() mod 2}">
     
    <td>
       
    <input name="mycheckbox1" type="checkbox" checked="Y" value="Y"> </input>
                       
    <xsl:for-each select="data">
    <xsl:value-of select="."/>// this line is used to display data in tabular     format
    <xsl:if test=". = ''">&#160;</xsl:if>
    <xsl:if test="$totalvalue &gt; 0">
    <span class="perc">
    (
    <xsl:value-of select="format-number(number(.) div $totalvalue,'###%')"/>)
    </span>
    </xsl:if>
    </td>
    </xsl:for-each>
    </td>
    </tr></xsl:for-each>

ตอบทั้งหมด

  • 22 มิถุนายน 2555 16:48
     
     คำตอบ

    Aks

    there is no OOB way to save such data in a text document (as far as i know), so you would need to write your own WebService / REST service which will be called asynchronously when user check the checkbox, use javascript framework like JQuery to accomplish client side JavaScript task.


    Thanks
    Akhilesh Nirapure

    • ทำเครื่องหมายเป็นคำตอบโดย Lhan HanModerator 1 กรกฎาคม 2555 15:00
    •  
  • 23 มิถุนายน 2555 4:21
     
     

    Can you please explain exactly how this is SharePoint related? You may have posted on the wrong forum, but it's hard to tell.


    Pman
    http://www.pmansLab.com/