|
Now I unhide the Edit form template and what I see it it is displaying all the item in the registration list in Edit mode. How do I display only the current item?
<xsl:template name="dvt_2.body"> <xsl:param name="Rows"/> <tr> <td class="ms-toolbar" nowrap=""> <table> <tr> <td class="ms-standardheader ms-WPTitle" nowrap="" style="height: 30px"> To unregister from this class. Please click OK </td> <td width="99%" class="ms-toolbar" nowrap="" style="height: 30px"><IMG SRC="/_layouts/images/blank.gif" width="1" height="18"/></td> <td class="ms-toolbar" nowrap="" style="height: 30px"> <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton1"/> </td> <td class="ms-separator" style="height: 30px"></td> <td class="ms-toolbar" nowrap="" align="right" style="height: 30px"> <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton1"/> </td> </tr> </table> </td> </tr> <xsl:for-each select="$Rows"> <xsl:call-template name="dvt_2.rowedit"> <xsl:with-param name="Pos" select="concat('_', position())" /> </xsl:call-template> </xsl:for-each> <tr> <td class="ms-toolbar" nowrap=""> <table> <tr> <td class="ms-descriptiontext" nowrap=""> <SharePoint:CreatedModifiedInfo ControlMode="Edit" runat="server"/> </td> <td width="99%" class="ms-toolbar" nowrap=""><IMG SRC="/_layouts/images/blank.gif" width="1" height="18"/></td> <td class="ms-toolbar" nowrap=""> <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton2"/> </td> <td class="ms-separator"> </td> <td class="ms-toolbar" nowrap="" align="right"> <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton2"/> </td> </tr> </table> </td> </tr> </xsl:template> <xsl:template name="dvt_2.rowedit"> <xsl:param name="Pos" /> <tr> <td> <table border="0" cellspacing="0" width="100%"> <tr> <td width="190px" valign="top" class="ms-formlabel"> <H3 class="ms-standardheader"> <nobr>Session ID<span class="ms-formvalidation"> *</span> </nobr> </H3> </td> <td width="400px" valign="top" class="ms-formbody"> <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Session_x0020_ID" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Session_x0020_ID')}"/> <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Session_x0020_ID" ControlMode="Edit"/> </td> </tr> <tr> <td width="190px" valign="top" class="ms-formlabel"> <H3 class="ms-standardheader"> <nobr>Title</nobr> </H3> </td> <td width="400px" valign="top" class="ms-formbody"> <SharePoint:FormField runat="server" id="ff2{$Pos}" controlmode="Edit" fieldname="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}" /> <SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="Title" ControlMode="Edit"/> </td> </tr> <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1"> <tr> <td colspan="99" class="ms-vb"> <span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span> </td> </tr> </xsl:if> </table> </td> </tr> </xsl:template> Thanks
Last edited by lasertracs on Wed May 04, 2011 12:47 pm, edited 1 time in total.
|