戰地連結︰ Home My Flickr NBA.com About

2008年5月6日星期二

MOSS 2007 BDC - Action

Overview

Action 係 BDC 既一個 feature, 佢既功能係為每一個 record 加上 Custom Link, 而 Link 入面亦可以放入 parameters. 如果配合InfoPath Form / Web Services, 就可以實現用 BDC update / create / delete 既功能.

Reference

MSDN - Action

Sample application definition XML

   90       <Actions>

   91         <Action Position="1" IsOpenedInNewWindow="false" Url="http://localhost/edit.aspx?id={0}" ImageUrl="/_layouts/images/delete.gif" Name="Delete">

   92           <ActionParameters>

   93             <ActionParameter Index="0" Name="Id" />

   94           </ActionParameters>

   95         </Action>

   96       </Actions>


於 Share Point Central Administration 為 Entity 加 Custom Actions

其實除了 definition file, 我們還可以在 Import 了 BDC Application 之後, 在 "Share Point 3.0 Central Administration" Web Page 那裏再加減 Custom Actions. 這樣做的好處不單是可以隨時更改 Actions, 不用每次都改動那個大得恐怖的 XML (之後還要 import...), 而且在 central administrationh 做錯的可能性幾乎是零 (錯了也可輕易改正).

"Share Point 3.0 Central Administration" 改 Actions 的 Steps:

  1. 在左邊的 navigation bar 按 "SharedServices"
  2. "Business Data Catalog" Section 按 "View entities"
  3. 選擇想要加 Actions 的 Entity
  4. "View Entity" 版面 scroll 到下面, 在 "Actions" Section 選想要更改的 Action, 或按 "Add Action" 增加 Action.

在 BDC Data List Web Part 裏面 display Actions dropdown list.

要在 Data List 裏面 display Actions dropdown list, 方法是要於 web part 中選好title column. 而選 title column 的方法如下:

  1. 去想要更改的 Web Part Page 選 "Edit Page"
  2. 在想要改的 Web Part 右上角 選 "Edit View"
  3. "Edit View" Page, "Column" Section, 選 Column Name 左邊的 Radio Button 來 set Title Column.

效果如下︰

沒有留言: