|
|
|
|
Re: same LOV can fetch differet record for different user ? [message #219423 is a reply to message #219187] |
Wed, 14 February 2007 05:59 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
asmani
Messages: 47 Registered: February 2007
|
Member |
|
|
Hi,
Anyway thanks for your help,
After very hard knock now I sorted my problem and the solution is following
Create a new record group (GTVNTYP_NEW) and add next bit in when_new_block_instance
DECLARE
lov_id LOV;
TMP_USER VARCHAR2(60);
BEGIN
TMP_USER := GET_APPLICATION_PROPERTY(USERNAME);
IF TMP_USER = 'UA' THEN
lov_id := Find_LOV('GTVNTYP_LOV');
Set_LOV_Property(lov_id,GROUP_NAME,'GTVNTYP_NEW');
END IF;
END;
|
|
|
Re: same LOV can fetch differet record for different user ? [message #219837 is a reply to message #219187] |
Fri, 16 February 2007 04:58 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
dude4084
Messages: 222 Registered: March 2005 Location: Mux
|
Senior Member |
|
|
hi
Do the records belong to same table?
if so then here is an easy solution
Suppose Usman can see employees name of dep no 10 only
while dude can see employees name of all depts.
Here is basic SQL of LOV
Select ename
from emp
where ((user='USMAN' and dept=10) or
(user='DUDE' and dept=dept))
Thats All.
I hope that the above SQL will help you to find solution of your problem.
|
|
|