如何在共享點列表中指定定義的排序 (How do you specify a defined sort in sharepoint list)


問題描述

如何在共享點列表中指定定義的排序 (How do you specify a defined sort in sharepoint list)

我有一個共享點列表,其中包含以下選項(InProgress、Done、NotStarted、Abandoned 等)的選擇列我想做的是按此列對列表進行排序,但將排序順序定義為 NotStarted , InProgress, Done, Abandoned 而不是字母排序。

有沒有辦法做到這一點?我已將我的列表轉換為 XSLT 數據視圖並查看了排序對話框,但看不到這樣定義排序的方法。

任何幫助將不勝感激。

謝謝基督徒


參考解法

方法 1:

The easiest way is to rename your choices in the choice column from NotStarted, InProgress, Done, Abandoned to (1) NotStarted, (2) InProgress, (3) Done, (4) Abandoned. This is how the Priority column is setup in out of the box Tasks lists.

方法 2:

Try creating a calculated column that will assign numerical values based on your text ones. Go to Add Column > More... and select Calculation. In the formula box below, try something like

=IF(EXACT(Priority,"High"),1,IF(EXACT(Priority,"Normal"),2,3))

Here's a solid reference for Examples of common formulas in lists.

(by chrisp_68Kit MenkeSam Shinn)

參考文件

  1. How do you specify a defined sort in sharepoint list (CC BY‑SA 3.0/4.0)

#list #Sorting #sharepoint






相關問題

Python 讀取 txt 文件作為輸入:IndexError: list index out of range? (Python read txt file as input: IndexError: list index out of range?)

danh sách trong python, vòng lặp for, mảng (list in python, loop for, array)

查找 pdfs/doc/docx/etc 的批處理文件 (Batch file to look for pdfs/doc/docx/etc)

如何在python中將所有負數更改為零? (How do I change all negative numbers to zero in python?)

從Scala中的列表返回元素 (Returning an element from a List in Scala)

如何在共享點列表中指定定義的排序 (How do you specify a defined sort in sharepoint list)

在 Mathematica 中將列表元素連接成一個數字 (Concatenate list elements into a number in Mathematica)

如何從 javascript 對像中獲取名稱和值到新列表中? (How to get name and values from a javascript object into a new list?)

Kivy:如何使用 RecycleView 在 Kivy 中顯示具有可變行的列表? (Kivy: how to display a list with variable rows in Kivy with a RecycleView?)

無法正確對齊列表中的中間文本 (Can't get middle text in list aligned correctly)

在 Python 列表中查找位於特定字符串之間的字符串 (Find Strings Located Between Specific Strings in List Python)

有沒有辦法在 Python 中使用變量中的字符串調用方法? (Is there a way to call a method in Python using a string inside a variable?)







留言討論