我有一個基於SQL表像這樣產生SharePoint中的超鏈接:生成超鏈接在Sharepoint
+----+----------------------------+
| ID | path |
+----+----------------------------+
| 1 | file://test/9932323.pdf |
+----+----------------------------+
| 2 | file://test/1653156423.pdf |
+----+----------------------------+
其實有這個代碼來生成HTML鏈接:
<a href="{$thisNode/@PATH}"><asp:Label runat="server" id="ff1{$ID}" text="{$thisNode/@PATH}" /></a>
我不能修改SQL表(dinamically生成),但我必須替換:
/test/ with /test.abc.local/
和
顯示爲文件名只文本(「路徑」欄子最後後「/」)
我怎樣才能到,如果沒有創造新的視圖或計算字段?
我試着用:
<a href="{REPLACE($thisNode/@PATH),12,1,'.abc.local/')}"><asp:L ...
,但沒有成功。 (我真的在Sharepoint新手)
感謝
有一個ty po我的jquery(),我確實使用$('input [type = text]'),實際上你不應該使用它,這將捕獲編輯框,對於標籤,將'input'替換爲'label' –