Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
??? ???????? ???????? ???? ?????????, ????????? ????????????? ?????????? ? ?????? ????????? ?????????????? ? ???????? ?????? ?????.
?????????? ????? ??????? ??????????, ??? AttachmentsField. ?? ????????? ?????????? ?????, ????????????? ? item'? ?????? ??? ??????????, ? ??? ?? ???? ??????? ?????????? ????? ???????? ? ?????? ??????????????.
???????? ? ????? ??? ???? ??? ????? ???????? ?????? DataFormWebPart, ??? ??????????? ?? ????, ??????????? ?? ???? ??????? ??????(Single Item View) ??? ????????? (Multi Item View):
<WebPartPages:DataFormWebPart runat="server" ..>
.....
<xsl:template name="dvt_1.rowview">
.....
<SharePoint:AttachmentsField ControlMode="Display" FieldName="Attachments" runat="server" Visible="true"></SharePoint:AttachmentsField>
</xsl:template>
......
</WebPartPages:DataFormWebPart>
Comments
Anonymous
January 01, 2003
Татьяна, а позволяет ли этот элемент или его вариация <xsl:element name="SharePoint:AttachmentsField"> получать доступ к свойствам вложений (путь, например). Встречала код, но он не работает: <xsl:variable name="MyValue"> <xsl:element name="SharePoint:AttachmentsField"> <xsl:attribute name="runat">server</xsl:attribute> <xsl:attribute name="FieldName">Attachments</xsl:attribute> <xsl:attribute name="ControlMode">Display</xsl:attribute> <xsl:attribute name="Visible">true</xsl:attribute> <xsl:attribute name="ItemId"> <xsl:value-of select="$thisNode/@ID"/> </xsl:attribute> </xsl:element> </xsl:variable> <xsl:variable name="Aux1"> <xsl:value-of select="substring-after($MyValue, 'href="')" /> </xsl:variable> Как можно разобрать этот AttachmentsField по частям?Anonymous
April 10, 2007
Татьян,спасибо за информацию, все здорово, интересно, но вот честно объясни для людей которые лбо не программили в WSS либо начинают, это типа меня. Объясните в какой файл этот код вставлять? для списка например типа "отслеживание Вопросов" представление "Все вопросы" это файлик AllItems.aspxm в нем идет ListViewWebPart вот в в нем гд прописывать этот элемент? Заранее спасибо.Anonymous
April 14, 2007
In your NewForm.aspx file locate the following: <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="0" Title="Project Request (Production Team)" __markuptype="vsattributemarkup" __WebPartId="{42949044-3270-485B-9F55-304E0F66C99D}" id="g_42949044_3270_485b_9f55_304e0f66c99d" __AllowXSLTEditing="true" WebPart="true" Height="" Width="" partorder="1"> and add this tag directly after this tag: <span id="part1"> <SharePoint:AttachmentsField ControlMode="new" FieldName="Attachments" runat="server" Visible="true"/> find the following tag: </WebPartPages:DataFormWebPart> and before it add the following tag: </span> All the other unmodified form should work, I haven't test this solution on modified or Edit or Display forms.