データビューWebパーツでのみテキスト専用のフォーマットリストルックアップ列

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/51672

質問

ルックアップ列を含むリストを持っています。

次に、空の.aspxページを作成し、DataView Webパーツを追加しました。次に、データベイWebパーツを前述のリストにリンクしています。これにより、データソースが与えられました。

今、データソースからページ上のWebパーツにルックアップ列を追加してラベルとしてフォーマットすると、ハイパーリンクであるラベルが表示されます(リスト)。テキストボックスまたは単なるテキストだけでなくテキストを表示する場合は、興味深いことに私のページに次のアンカータグを取得します。

<a onclick="OpenPopUpPage('http://cityapps.capetown.gov.za/sites/ikrc/_layouts/listform.aspx?PageType=4&ListId={8BEE076B-ABC8-4378-9CD4-93AD46064FC0}&ID=15&RootFolder=*', RefreshPage); return false;" href="http://cityapps.capetown.gov.za/sites/ikrc/_layouts/listform.aspx?PageType=4&ListId={8BEE076B-ABC8-4378-9CD4-93AD46064FC0}&ID=15&RootFolder=*">Final Test</a>
.

私はまた、さまざまなHTMLタグやASPコントロールの周りに{@Research_x0020_Topic}を投げてみましたが、私は私のページに上記のアンカーを取得し続けました。

私が欲しいものは簡単です。ハイパーリンクでなく、ルックアップ列の値を表示したいだけです。私がそれをラベルとしてフォーマットする場合は、私が得ることです:

<asp:Label runat="server" id="ff1{$Pos}" text="{@Research_x0020_Topic}" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Text','','ID',ddwrt:EscapeDelims(string(@ID)),'@Research_x0020_Topic')}" />
.

私はこのラベルに埋め込まれたハイパーリンクを無効にする方法を理解することはできません。

助け?

役に立ちましたか?

解決

At the end the solution was quite simple. I just needed to add a column to the library that shows the value of the look-up as a data field by checking the following (Add a column to show each of these additional fields):

enter image description here

This creates a column in the library and the data source that acts like a normal single line of text field and not a look-up.

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top