PlanningAnnotations
為文字函數,可從 Planning 資料庫連線擷取和儲存格的「規劃單位」關聯的重要備註或註解。「規劃單位」為「案例」、「版本」與「實體」的組合,並透過方格中的儲存格參照,於財務報告中衍生。
語法:
<<PlanningAnnotations("GridName", Row, Column, Page, Attributes, Range)>>
<<PlanningAnnotations("GridName", Row, Column, Page, Attributes)>>
引數 | 描述 |
---|---|
GridName |
(必要) 方格的名稱。 |
Row |
(必要) 代表方格中列號的數值。方格第一列的索引為 1,第二列的索引為 2,依此類推。 |
Column |
(必要) 代表方格欄的字母。方格的第一欄會標示索引 A,第二欄則標示索引 B,依此類推。 |
Page |
(必要) 代表方格之所有頁面維度上的成員組合索引的數值。方格第一個頁面維度組合的索引為 1,第二個頁面維度組合索引為 2,依此類推。 |
Attributes |
下列任一個值:All、Title、Author、Date、Text、PlanningUnit。(PlanningUnit 為案例、版本及實體的組合,衍生自 GridName、Row、Column 和 Page。) 依偏好的輸出順序排列特性,然後使用 & 符號分隔每個屬性。 |
Range |
使用 All、Top 或 Bottom 關鍵字,從輸出頂端或底部選取從輸出頂端或底部,或選取所有註釋。
|
範例 1
Range 參數將假設為 "All"。
<<PlanningAnnotations("Grid Name", 1,a,1,All, All)>> <<PlanningAnnotations("Grid Name", 100,AB,10,All, All)>> <<PlanningAnnotations(cur, cur,a,cur,Text & Title & Author, Top 5)>> <<PlanningAnnotations(cur, 315, AB, 255, Text&Title&Author, Top 5)>> <<PlanningAnnotations(cur, cur A, Cur, PlanningUnit, Top 5)>> <<PlanningAnnotations(cur, 123, ABC, 101, PlanningUnit, Top5)>> <<PlanningAnnotations(Grid1, 1, current, cur, Title & Text, Bottom 10)>> <<PlanningAnnotations(Grid1, 105, ABC, cur, Title & Text, Bottom 10)>> <<PlanningAnnotations(Current, 34, BB, cur, All, Top 40)>> <<PlanningAnnotations(cur, cur, A cur, Text & Title & Author, Top 5)>> <<PlanningAnnotations(cur, cur, A, cur, Text&Title&Author, bottom15)>> <<PlanningAnnotations(cur, 1(3), A(B), cur, Title&Author&Date&Text, All)>> <<PlanningAnnotations(cur, 1(3), A(B), cur, Title&Author&Date&Text, All)>>
範例 2
擷取目前頁面上某個方格之列 1、欄 A 中的註解文字。顯示底部的 3 個註釋以及與註釋關聯的所有屬性 (標題、作者、日期、文字和規劃單位)。
在文字儲存格中使用此語法:
<<PlanningAnnotations(Current, 1, A, Current, All, Bottom 3)
會按照日期先後以遞減方式傳回註釋,最新的註釋在頂端,最舊的註釋則在底部。產生的註解文字與以下類似:
標題:Status - Under Review
作者:John Smith
日期:Mar 25, 2003 10:32:49 AM
規劃單位:Budget, 1st Draft, East
文字:Please review and approve
— — — — — — — — — — — — — — — — —
標題:Status - Not Signed Off
作者:Mary Brown
日期:Mar 21, 2003 2:59:11 PM
規劃單位:Budget, 1st Draft, West
文字:Sorry, Try Again
— — — — — — — — — — — — — — — — —
標題:Status - Under Review
作者:Admin
日期:Mar 21, 2003 2:54:16 PM
規劃單位:Budget, 1st Draft, South
文字:Please review and approve budget for 1st draft
註:
PlanningAnnotations
僅支援用於方格儲存格 (而非文字方塊物件、頁首或頁尾) 中的 Current
關鍵字。請參閱在文字函數中使用 Current/Cur 關鍵字。