iT邦幫忙

2021 iThome 鐵人賽

DAY 12
0
自我挑戰組

NetSuite Foundation & Customization系列 第 12

Basic Customization

Custom Fields

先前有介紹, 常用的 Custom Fields 總共分為四種

  • Custom Record
  • Transaction
  • Entity
  • Item

昨天停留在如何建立 Custom Fields, 回到 Custom Record 之後, 點選 New
https://ithelp.ithome.com.tw/upload/images/20210926/20141364UoSfZSvWx6.png

可以看到新增 Custom Record 的頁面
https://ithelp.ithome.com.tw/upload/images/20210926/20141364CLSmkrKFmf.png

幾個欄位的描述如下

  • Label: 欄位名稱

  • Id: internal id 的後綴

  • Description: 這個欄位的介紹

  • Type: 欄位屬性, 常用的屬性介紹如下
    https://ithelp.ithome.com.tw/upload/images/20210926/20141364KYwtSBOFqE.png

    • Check BOX: 有勾勾的那種
    • Currency: 幣別
    • Date: 日期格式
    • Date/Time: 日期+時間
    • Decimal Number: 具有小數點的數字
    • Email Address: 電子信箱, 會自動判斷使用者輸入是否符合規範
    • Free-From Text: 一般文字輸入
    • Hyperlink: 超連結, 只能夠在 mail line 中使用
    • Inline HTML: 可以插入一小段 html 的code
    • Integer Number: 整數
    • List/Record: 下拉式選單, 用這個選項之後, 可以看到 List/Record 可以選擇,
      • 可以選擇 Transactions/Custom List/Custom Record/etc..
        https://ithelp.ithome.com.tw/upload/images/20210926/20141364moeyPZ6DYK.png
    • Long Text: 比Free-From Text還能儲存更多的字元, 如果需要儲存大量訊息建議用這一個
    • Multiple Select: 多選, 同樣可以在下方的 List/Record 選擇要多選的選項
    • Rich Text: 具有編輯器的文字輸入選項
  • Display Subtab:
    https://ithelp.ithome.com.tw/upload/images/20210926/20141364G4tJzas6OE.png

    • Subtab: 需要顯示在目標主檔的哪一個 subtab 內?
    • Display Type: 顯示方式
      • Normal: 預設顯示方式
      • Inline Text: 顯示單列
      • Disabled: 唯讀
      • Hidden: 隱藏
    • Help: 顯示在頁面上的help
  • Validation & Default
    https://ithelp.ithome.com.tw/upload/images/20210926/201413641ozWQ84q3h.png

    • 此區塊會跟隨欄位屬性有不同的選項, 主要用來設定預設值及此欄位是否為必填欄位
  • Sourcing & Filtering
    https://ithelp.ithome.com.tw/upload/images/20210926/20141364XtgJMhVWGg.png

    • 資料來源設定

接下來, 我們來實際建立幾個看看效果

  1. 測試成果

    1. Type: List/Record
    2. List/Record: 測驗結果
    3. HELP: 測試成果的頁面HELP
      https://ithelp.ithome.com.tw/upload/images/20210926/20141364VUWV0Vworu.png
  2. 測驗日期

    1. Type: Date/Time
      https://ithelp.ithome.com.tw/upload/images/20210926/201413641aaOa9MCve.png
  3. 課程備註

    1. Type: Free-Form Text
      https://ithelp.ithome.com.tw/upload/images/20210926/20141364IuoK3tB29I.png

都建立好了之後, 應該可以在 Customer Record 底下看到新增的 Fields.
https://ithelp.ithome.com.tw/upload/images/20210926/20141364ybB6w7c0m1.png

滑鼠移到 More -> View Records
https://ithelp.ithome.com.tw/upload/images/20210926/20141364ZAbfpZdxx6.png

可以看到目前沒有任何教育訓練的紀錄
https://ithelp.ithome.com.tw/upload/images/20210926/20141364YZybF42vyh.png

選擇 New 教育訓練 進入新增教育訓練的頁面
https://ithelp.ithome.com.tw/upload/images/20210926/20141364mT4VszVwoY.png

在這個頁面我們可以看到剛剛建立的 custom fields
點開 測試結果, 可以看到我們昨天建立的 訓練結果 list

https://ithelp.ithome.com.tw/upload/images/20210926/20141364wFfrKmbG0x.png

並且將鼠標移動到測試結果的文字上面, 可以看到 "?" 的鼠標, 點選後可以看到我們剛剛輸入的 HELP文字
https://ithelp.ithome.com.tw/upload/images/20210926/20141364s2ExHl0fOC.png

點 測驗日期 可以看到出現日曆選項
https://ithelp.ithome.com.tw/upload/images/20210926/20141364FIXPwFzX5T.png

我們可以隨便輸入一筆紀錄並儲存後, 回到測試結果List 介面 就可以看到我們的測試成果
https://ithelp.ithome.com.tw/upload/images/20210926/201413646Ps1XgmKdD.png

其他種類的 Fields?

關於其他種類的 Fields, 所有的 Fields設定其實都是相同的, 只是 apply 的對象不同.

Transaction Body fields, 只能夠 Apply 在 transactions 上面, 在下方會出現要 Apply的 trasnaction type
https://ithelp.ithome.com.tw/upload/images/20210926/20141364D01UAYieZA.png

Item Fields, Entity Fields 也是以此類推.

到此就是最簡單的客製化


上一篇
Basic Customization
下一篇
Advanced Customization
系列文
NetSuite Foundation & Customization16
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言