In our application, we manage a set of operations linked to specific products. These operations are initially defined and maintained in a master table (OperationMaster). However, users view and interact with these operations through a different context (MainPid), which represents the user-facing product configuration. Currently, the operations are displayed without a consistent order, leading to

0
Business Requirement: Admin users must be able to define a default (master) order of operations that applies across the entire system. Regular users should, by default, see operations in this admin-defined order. Users should have the ability to override the order locally (per product) if needed — but only modify the minimal part they care about, not reorder the entire list each time.   Allows admins to manage and reorder operations in the OperationMaster entity using a MasterSortOrder. Automatically uses this MasterSortOrder when displaying operations in MainPid. Optionally allows users to override this order locally using a UserSortOrder or similar mechanism. Maintains consistency across all screens and PDF outputs by using the correct ordering logic (master or user-defined).  
asked
2 answers
0

Hi Chandani

Lets say you are having 2 attributes, 1. Sno 2.Product name..

Admin will see a dropdown with values sno,product name to maintain a default sort order.

In user page, in DS of product view, you can retrieve and check the default sort order maintained by admin  and if it sno, you can retrieve and sort by sno and send it out. If by product name, sort it by product name and sendit out.

 

If you are using datagrid2, by default it will be shown in admin configured order and user can sort in their own way if needed by the sort icon of the data grid 2.

Hope it will help.

Pls correct me if I am wrong with my understanding.

answered
0

Hello Chandani Giram

 

Define a MasterSortOrder in OperationMaster for global ordering. Create a MainPidOperation entity link in to both MainPid and OperationMaster with an optional UserSortOrder attribute . When displaying operations, use UserSortOrder if available or else use MasterSortOrder. This should make sure consistent default ordering with optional per product overrides everywhere.

 

Thanks

answered