SharePoints List表格設定問題

匿名
2024-05-27T09:25:59+00:00

Dears 各位先進、高手

小弟為SharePoint入門新手,小弟於list設計表單時,遇到問題想請求高手指點!
小弟想於表單中使用一個欄位將四個欄位顯示在同一欄中,並且稍加美化顯示
這四個欄位得類型分別為:
第一欄欄名稱:FormFactors 欄資訊類型:選擇(下拉式功能表)
第二欄欄名稱:CapacityTB 欄資訊類型:帶有公式的單行文字 (數字後面加TB
第三欄欄名稱:DiskInterface 欄資訊類型:選擇(下拉式功能表)
第四欄欄名稱:DiskRPM 欄資訊類型:選擇(下拉式功能表)

小弟使用了一個單行文字帶JSON公式去跑:
公式如下:{
    "elmType": "div",
    "style": {
        "display": "flex",
        "flex-direction": "row",
        "gap": "4px"
    },
    "children": [
        {
            "elmType": "div",
            "style": {
                "flex": "1 1 auto",
                "height": "30px",
                "background-color": "lightgray",
                "padding": "4px 8px",
                "font-size": "100%",
                "font-family": "Microsoft JhengHei, sans-serif",
                "overflow": "hidden",
                "text-overflow": "ellipsis",
                "border-radius": "4px",
                "white-space": "nowrap",
                "display": "flex",
                "align-items": "center",
                "justify-content": "center"
            },
            "txtContent": "[$FormFactors]"
        },
        {
            "elmType": "div",
            "style": {
                "flex": "1 1 auto",
                "height": "30px",
                "background-color": "lightyellow",
                "padding": "4px 8px",
                "font-size": "100%",
                "font-family": "Microsoft JhengHei, sans-serif",
                "overflow": "hidden",
                "text-overflow": "ellipsis",
                "border-radius": "4px",
                "white-space": "nowrap",
                "display": "flex",
                "align-items": "center",
                "justify-content": "center"
            },
            "txtContent": "[$DiskRPM]"
        },
        {
            "elmType": "div",
            "style": {
                "flex": "1 1 auto",
                "height": "30px",
                "background-color": "lightblue",
                "padding": "4px 8px",
                "font-size": "100%",
                "font-family": "Microsoft JhengHei, sans-serif",
                "overflow": "hidden",
                "text-overflow": "ellipsis",
                "border-radius": "4px",
                "white-space": "nowrap",
                "display": "flex",
                "align-items": "center",
                "justify-content": "center"
            },
            "txtContent": "[$CapacityTB]"
        },
        {
            "elmType": "div",
            "style": {
                "flex": "1 1 auto",
                "height": "30px",
                "background-color": "lightgreen",
                "padding": "4px 8px",
                "font-size": "100%",
                "font-family": "Microsoft JhengHei, sans-serif",
                "overflow": "hidden",
                "text-overflow": "ellipsis",
                "border-radius": "4px",
                "white-space": "nowrap",
                "display": "flex",
                "align-items": "center",
                "justify-content": "center"
            },
            "txtContent": "[$DiskInterface]"
        }
    ]
}

但卻無法正常顯示於LIST中,只有在編輯時在該欄位輸入1才看的到
請求各位高手協助!

Microsoft 365 與 Office | SharePoint | 其他 | 其他

鎖定的問題。 此問題已從 Microsoft 支援服務社群移轉。 您可以對其是否有幫助進行投票,但無法對問題新增註解或回覆,或進行追蹤。

0 則留言 沒有留言

1 個回答

排序依據: 最新
  1. 匿名
    2024-05-27T11:52:50+00:00

    您好,

    感謝您在微軟社區提交問題。

    本社區SharePoint類別主要處理的是SharePoint Online中的一般內置功能的問題。

    因為您是使用JSON公式設置SharePoint List中表格欄位,為了確保您能夠取得最專業的技術支持,我真誠推薦您前往 **** Microsoft Q&A社區的SharePoint類別下發佈此問題(右上角Ask a question)。其中的專家和工程師十分精通SharePoint開發和JSON自定義相關問題,他們會針對您的具體情況為您提供建議。相信該社區的專家可以準確有效地解決您的疑問。

    該社區目前以英文為主,所以建議您使用英文發佈問題。

    感謝您的理解和耐心!

    祝好,

    Tina

    此回答有幫助嗎?

    0 則留言 沒有留言