Lookups and Filters
-
Hi Peter,
having solved my previous issue with dynamic Project-page WHERE conditions, I’m now facing with a similar problem:
referencing the standard Dept/Emp model, assume you need to manage Sales_Orders:
– create a custom table SalesOrder (say SO), SO.columnA being Deptno, SO.columnB being OrderMgr, SO.columnC being OrderNo, etc..
– create a projectTemplate/page to transact on SO;
– define a relation on it, so that columnB (Order Manager name) get selected by an LOV on EMP.Now assume you need to filter columnB values by $USER$ (each Dept manage its SalesOrder).
My idea is to create a custom table grantedDepts where you store, by manually copying usernames from Usermeta and granted Deptnos (say max 3); thus:
—————–
userA, 10, 20
—————–
userB, 10, 20, 40
—————–
userC, 10
—————–
I then create an LOV which joins EMP, DEPT and grantedDepts, so that an username is linked to Deptnos, linked to Emps assigned to those Deptnos.But: how to filter this LOV values per $USER$ value?
Conceptually, a WHERE condition for LOVs, similar to the template/page ones, on the template Relationship WPDA tab would be perfect..This is a common requirement: data fully partitioned per User (userA only CRUD salesOrder for Dept=10 and Dept=20, userC only for Dept=10).
Any suggestion would be more than appreciated.
Thanks in advance,
Marco
- The topic ‘Lookups and Filters’ is closed to new replies.