Hi All,
We are looking for a way to ensure that products are displayed according to the recepient - a "NON-multi requestable" product should show up to request for a subordinate even though the manager already has it.
To this end, we tried to edit the following Web Project Configurations:
IT Shop -> Access levels to display for a given recepient
IT Shop -> Displayed access level groups
What is the context under which these configurations are used? In other words, what SQL queries are the above WHERE clauses plugged into? What variables are available to be referenced in the WHERE clauses? We want to basically be able to reference the recepient of the request and replace %useruid% in the below configurations:
Access levels to display for a given recepient
UID_AccProduct in ( selectdistinct UID_AccProduct from ITShopOrg where ITShopInfo = 'PR'
)AND UID_AccProduct notin ( select acc.UID_AccProduct from AccProduct acc join Ressource r on r.UID_AccProduct = acc.UID_AccProduct where (Upper(r.UID_Ressource) like 'DEFAULT_%')
)AND
UID_AccProduct in
( Selectdistinct UID_AccProduct from viPWOOrderPerson where uid_person = '%useruid%' )
Displayed access level groups
uid_accproductgroup in (select v.uid_accproductgroupparent from vi_v_accproductgroupcollection vjoin accproduct ac on ac.uid_accproductgroup = v.uid_accproductgroupjoin itshoporg its on its.uid_accproduct = ac.uid_accproductjoin itshoporg bo on bo.uid_itshoporg = its.uid_parentitshoporgjoin itshoporg cu on bo.uid_parentitshoporg = cu.uid_parentitshoporg and cu.itshopinfo='cu'
-- join personinitshoporg pits on pits.uid_person = '{0}' and pits.uid_itshoporg = cu.uid_itshoporgwhere its.UID_AccProduct in
(Selectdistinct UID_AccProduct from viPWOOrderPerson where uid_person = '%useruid%'
)AND its.UID_AccProduct notin ( select acc.UID_AccProduct from AccProduct acc join Ressource r on r.UID_AccProduct = acc.UID_AccProduct where (Upper(r.UID_Ressource) like 'DEFAULT_%')
)
)
Thank you in advance,
Febin