select
case
when :app_user = "John.Doe" THEN select * from time_test
when :app_user !="John.Doe" then select * from time_test where :app_user
=:app_user
end
from time_test ;
This table is an interactive report on a page by itself . I want everybody to see the interactive report but I only want John Doe to see the whole table . And everybody else should only see their record in the table .
":app_user" is a default bound variable by Oracle Apex . I also tried to filter the field in the table .
select
case
when :app_user = "John.Doe" THEN select * from time_test
when :app_user !="John.Doe" then select * from time_test where **name**
=:app_user
end
from time_test ;
and also
select
case
when name = "John.Doe" THEN select * from time_test
when name !="John.Doe" then select * from time_test where :app_user
=:app_user
end
from time_test ;
I cannot use an if statement because it needs to start with a Select for it load on the page .