OM 模組底下有一個功能 : Processing Constraints (路徑 : Setup > Rules > Security > Processing Constraints), 此功能是用來定義, 在 OM 模組所屬的畫面, 什麼時候要做什麼, 什麼時候不能做什麼

畫面很簡單, 最上面的部份就是選擇 Application 與 畫面 (Entity)

中間的部分就是設定 Constraints 的地方 :

- Operation : 就是指定動作 (LOV 會因為 Entity 的不同而不同)

- Attribute : 讓你選擇特定欄位 (LOV 會因為 Entity 的不同而不同)

- User Action : 當條件成立時, 你所要執行的動作

最下面就是設定 Conditions :

- Group# : 條件可以設定群組, 群組編號相同就表示為 AND, 不同則為 OR

- Scope : Any / All

- Validation Entity : 選擇條件所在 Entity

- Record Set : Form 的 Data Block

- Validation Template : 驗證範本 (另一個彈性功能)

- User Message : 顯示給使用者看的訊息 (不見得會顯示, 要看你所設定的 User Action, 但是因為是必填, 所以一定要打)


附上目前有使用的功能 :

1. 修改 Ordered Quantity 時, 記錄 History

** Constraints **

- Operation : Update

- Attribute : Ordered Quantity

- User Action : Required History

** Conditions **

- Group# : 1

- Scope : Any

- Validation Entity : Order Header

- Record Set : Order

- Validation Template : Booked

- User Message : Ordered Quantity haved been updated!!

 

2. 當 Delivery 確認 (Firm) 後, 不允許修改 Order Line 的任一欄位

** Constraints **

- Operation : Update

- Attribute : 

- User Action : Not Allowed

** Conditions **

- Group# : 1

- Scope : Any

- Validation Entity : Order Line

- Record Set : Line

- Validation Template : Delivery Firm (自行客製)

- User Message : No Allowed Update!! This line which delivery is firmed. (因為此設定會讓使用者無法操作, 所以設定的 Message 會跳出來給使用者看)

arrow
arrow
    全站熱搜

    Aloz 發表在 痞客邦 留言(2) 人氣()