How to limit the rows returned from the user role-based interactive reports
HelloI'm a new Apex-PL/SQL Developer, looking for some recommendations on how to implement an interactive report to display different lines in your current application ROLE service.
For example let's say you have an application for orders and 2 different roles: superuser and sales-rep
Now, if super user connects to the application, it should be able to see all the rows in the orders table, however, if the user 'john' connects with the commercial list, he should see those orders assigned to him.
I don't think I can use "dynamic" sql and build my where clause on the fly if I choose an interactive report so I was looking around and came across the concept of a common function but it seems that some other people do this with collections of the APEX. Is there anyone with a recommendation for one to use? A few books I've read recommend putting most of the logic that you can on your database (easier to maintain in the long term) that's why I thought about pipep functions using, but I thought I would check with the experts first.
Thank you!
If you are allowed to use an Enterprise Edition database and to apply these restrictions, through the entire application, or across multiple applications, then use of private virtual database (DPV), with the security attributes of PL/SQL Code to the initialization/cleanup APEX application to set and reset the settings in your application.
Should you not use EE, then you can roll your own VPD use parameterized views.
If the restriction is only required for this unique IR, then, simply use a union of two mutually exclusive predicates opportunities:
select ...
from orders su
where :app_role = 'super-user'
union all
select ...
from orders rep
where :app_role = 'sales-rep'
and rep.salesman = :app_user
All of these approaches should outperform functions in pipeline, collections, or a user-defined function (which, in a predicate that is executed for each line, mudra stopped the large datasets because of context switching).
Tags: Database
Similar Questions
-
How to assign the user role by using a script?
Hello
I want to assign a role permission set to a local ESX 4 install any user account with a CLI command, so I can do during the ks.
Did anyone done this before?
Tips and tricks are welcome.
THX
Take a look at the vCLI esxcfg-user command that can be done outside the Console of the ESX Service or you can take a look by using vimsh on the Service Console:
[root@himalaya ~]# vmware-vim-cmd vimsvc/auth Commands available under vimsvc/auth/: admin_account_disable entity_permission_remove role_add admin_account_enable entity_permissions role_permissions admin_account_is_enabled permissions role_remove entity_permission_add privileges roles
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
Introduction to the vMA (tips/tricks)
Getting started with vSphere SDK for Perl
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
How to limit the media sharing on my computer
Original title: multimedia file sharing...
How to limit the sharing on my computer, IE multimedia: music, images and other files from other computers on the network or cell phones that are capable of DLNA?
Hello
Please check the links given and see if they help.Most of file sharing: http://windows.microsoft.com/en-US/windows-vista/File-sharing-essentials
File and printer sharing: frequently asked questions: http://windows.microsoft.com/en-US/windows-vista/File-and-printer-sharing-frequently-asked-questions
-
How to limit the email receipt/downloaded size?
I need information on how to limit the size of an email received or downloaded in Windows Mail to reduce the cost of the enamel of satellite data. Want to just send and receive, especially to receive emails with no graphics and keep it small.
Simply set up for this purpose a message rule: tools, Message rules, mail, new...Gary van, Microsoft MVP (Mail)
------------------------------------------------------"moosehuntingguy" wrote in the new message: * e-mail address is removed from the privacy... *I need information on how to limit the size of an email received or downloaded in Windows Mail to reduce the cost of the enamel of satellite data. Want to just send and receive, especially to receive emails with no graphics and keep it small.Gary van, MVP (Mail)
-
How to limit the number of connection to DB
Hello
I just go to the topic of connection pooling.
Here, I would like to understand the number of details of connections that already exists in the database.
Kindly guide me to know the following details.
How to know the number of connections available in the database?
How to limit the number of connections?
V_$ Resource_Limit contains details of the sessions. Is this even for connections?
I have more clarification on the difference of connections and Sessions.
Kindly tell me the above.
Thank you
Orahar.Orahar wrote:
HelloI just go to the topic of connection pooling.
Here, I would like to understand the number of details of connections that already exists in the database.Kindly guide me to know the following details.
How to know the number of connections available in the database?
The number of currently active sessions (db, internal sessions registered)
SELECT COUNT (*)
SESSION $ vHow to limit the number of connections?
to increase or decrease the maximum number of connections:
for example: change processes control system = 200 scope = spfile;
>
V_$ Resource_Limit contains details of the sessions. Is this even for connections?
I have more clarification on the difference of connections and Sessions.
Connection means a user process is successfully connected to the listener to have a session on the database running instance. (listener who listen s new connection requests)
Establish sessions: means, a (dedicated) server process began to serve a user process. It is done when the credentials of the user authenticated successfully. Now, from process-user shall communicate to the server process directly.hope that helps.
Kind regards
X. -
How to limit the length of the texts on iOS9?
Hello
I just worked on why I am required by my mobile / cell phone provider EA. They charge any text as a picture message / SMS, it is longer than 120 characters? Does anyone know how to limit the length of the texts / SMS so that it is impossible to send a more 120 characters or create an alert so that you are aware of the number of characters in the text / sms?
Thank you very much
Hello Turnus123,
Thank you for using communities of Apple Support.
I see that you will have to pay for SMS more than 120 characters. To help identify messages exceeds this amount, you can activate a number of characters in the message settings. Simply go to settings > Messages and activate "number of characters".
Take care.
-
I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?
Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...
-
How to limit the number of printers can be installed on this computer by using Group Policy?
How to limit the number of printers can be installed on this computer by using Group Policy?
Hello
Thanks for asking! If I understand correctly, you should limit the printers installed on the computer by using Group Policy. I suggest you follow the troubleshooting steps to check if this may help.
The question you have posted is related to Technet and would be better suited to the Technet community. Please visit the link below to find a community that will provide the best support.
http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer -
If I don't get creative cloud, how will limit the use of photoshop touch?
If I don't get creative cloud, how will limit the use of photoshop touch?
I don't think it will limit your work with PS Touch, but could enahnce it a little.
Just try to free membership of 2 GB and find out:
https://creative.Adobe.com/plans
Thank you!
-
How to limit the length of the EditText control?
All,
How to limit the length of an EditText to accept ONLY 3 characters.
The editText.characters property defines a size by default, but the user can always type more than 3 characters in the field.
I got it!!!
var win = new Window("dialog", "Limit 3"); var txtLimit3 = win.add("edittext"); txtLimit3.characters = 5; txtLimit3.onChanging = function (){ howmany = txtLimit3.text; if (howmany.length > 3){ txtLimit3.text = ""; txtLimit3.textselection = howmany.slice(0,3) } } txtLimit3.active = true; win.show();
-
How to change the areas of region of report in read-only mode?
How to change the areas of region of report in read-only mode?
SKUD.Add fuction javascript after the page header (or section of function and Javascript variables)
function disableItems(pRegionStaticId,pDisableFlag) { $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */ if( $(this).attr('name').match(/f[0-9][0-9]/) ){ return $(this); } }).attr('disabled',pDisableFlag); }
pRegionStaticId is static Id + the region
Note that this code specifically disables only the berries of request. Disabled items are not available after the submission (and are therefore different from readonly). But any javascript page can change disabled or readonly points (client side), so you need to check on the side server to validate the data.
You can disable items to help
disableItems ("MY_REGION_ID", true);
and allow them, by passing false
disableItems ("MY_REGION_ID", false);
-
The user has clicked on Vista, the little lock at the bottom of the START window.
Somehow, I blocked my user account (login) and I tried to help but can't find any info. How to UNLOCK the user account. Thank you
Hello
Click the account icon that was locked and enter the password IF you know and otherwise:
Try Safe Mode - several times, press F8 that you start. The Admin account there is no default password
so unless someone has changed, you should have access there. Then Control Panel - accounts - users
Manage another account - use this down your user account (to the lowest level) APPLY/OK
then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
Then fix the password in your usual account. Do not forget to leave your account administrator if you
wish.If no joy Mode without failure:
Try this - use the hidden administrator account to lower your user account (to the lowest level) APPLY/OK
then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
Then fix the password in your usual account. Do not forget to leave your account administrator if you
wish.Make another Admin account with your password and use it to fix the others if necessary. (just for
repair, don't use regular account, not a safety valve) always keep a spare ADMIN account.DO NOT LEAVE THE ENABLED LSA OR USE DAILY. If it corrupts you are toast!
How to enable or disable the real built-in Administrator account in Vista
http://www.Vistax64.com/tutorials/67567-administrator-account.htmlYou can run the Admin account hidden from the prompt by if necessary.
This tells you how to access the System Recovery Options and/or a Vista DVD
http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspxIf you cannot access your old account, you can still use an Admin to migrate to another (do not forget to always
not that an Admin account that is not used except for testing and difficulty).Difficulty of a corrupted user profile
http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx---------------------------------------------------------
If necessary:
Ophcrack is a free Windows password cracker based on rainbow tables.
http://Ophcrack.sourceforge.NET/How to reset a Windows Vista - Trinity Rescue Kit method - password password reset disc - burn the ISO
http://www.WikiHow.com/reset-a-Windows-Vista-password
YouTube video on the use of the Trinity rescue Kit
http://www.YouTube.com/results?search_query=Trinity+rescue+Kit&search_type=&AQ=fReset your forgotten password the easy way using the Ultimate Boot CD for Windows
http://www.howtogeek.com/HOWTO/Windows-Vista/reset-your-forgotten-password-the-easy-way-using-the-ultimate-boot-CD-for-Windows/Offline NT Password & Reset Editor
http://home.eunet.no/~pnordahl/ntpasswd/I hope this helps.
Rob - bicycle - Mark Twain said it is good. -
How to fix the user accounts in windows 8
How to correct the user account in windows 8 on new g7 2246nr, I put to your laptop using the Microsoft account then switched to a local account. I found myself with i admin working the rest of my files are broken up between 3 other user accounts. I spoke with Microsoft to try to consolidate the accounts and they used a command line in the command, but he has not done. I always work with the system, but it has problems. I reloaded the software so for 3 times. All know how to correct the problem without reload all the software again? also, after configuring sharepoint in Office Pro Plus, he created another administrator account. I do not think this would happen?
Hi BJ2124,
Although I regret the inconvenience that you had with your experience of Microsoft Windows 8, you can better receive the technical expertise you need by contacting Microsoft about the issue of multiple account creation.
You can call Microsoft Customer Service at 1-800-642-7676
Mon - Fri: 05:00 - 21:00; Sat - Sun: 06:00-15:00 (PST)As a reference, I included the link to the technical support of Microsoft Windows 8 page:
http://support.Microsoft.com/contactus/?ws=support
Also, here is a reference link to change logins to Microsoft for local accounts:
Microsoft how to switch from one account to a Local account in Windows 8
And finally, here is a quick reference to solve the problem that you encounter while using an account download troubleshooting tool from Microsoft:
The problems of account Microsoft Windows 8 with convenience store "Microsoft accounts"
In this forum support is available for support hardware/software HP. I will provide better supported with your hardware/software of HP. If you need help with a software which is another provider, so I can re - direct you to reference appropriate at this time.
I hope that you can mark these messages as solved, so that you can inspire others to follow your example with success. You never know who you can inspire.
-How can I give Kudos? | How to mark a post as solved? --------------------------------------------------------
-
How to prevent the user to create the 'analysis' and 'dashboard '?
We have a requirement that is to restrict the user create new 'analysis' and 'dashboard '. As we know when the connection ' host: port / analytical, in the top of the page there is a drop down list of 'New' where users can create new 'analysis' and 'Dashboard', how to set up the privilege to disable the option 'Analysis' and 'dashboard '?
OBIEE version: Oracle Business Intelligence 11.1.1.7.0
Thank you
JinboSummary:
1 set the "New Menu" permission in the 'home page and Header' refusal, then the 'New' menu will disappear from the top right of the page, which prevents the user to create dashboards and new anlysis
2. in order to not allow the user to modify the catalog, set the permission of "access user interface of the catalogue"in the ' welcome and header' to refuse."
3. even made 1 and 2, we have always have a path that the user can create new report, it's "House"menu." To avoid this, our method is to set the explicit right to catalog for the application role.
Thank you
Jinbo -
How to activate the UMX roles who were at day end in R12
How to activate the UMX roles who were at day end in R12? Please suggest.
Thank you
The search will return no roles of the expiration date, you must click the button "Show the full hierarchy" and manually navigate the role that you want to reactivate.
Maybe you are looking for
-
How can I download mp3 to blogsites and transfer files to the flash drive. ?
Hello I visit various blogsites where music albums are available for download in mp3 format. When I download an album where he's going. ?? Most of the files must also be extracted using WIN. RAR in mp3 format. (I do now with my windows pc) How this c
-
How can I transfer photos labelled "on my computer" from my iPhone to my PC?
Hi guys. I have 450 photos that have been synced to my 5s when I upgraded to 4S. I am trying to transfer these photos - now named ' my computer' - on my PC. I tried to do in iTunes, however, the folder does not appear as a choice of synchronizatio
-
Reference Dell VRTX Drive Configuration
I'm trying to configure a Dell VRTX to 3 blades with R2 2012 Windows failover I followed the instructions from Dell to create a Quorum disk (RAID 1) and a shared disk of the cluster (CSV) - Raid 50. The issue is, in each Windows host, Disk Manager se
-
Cannot install Office 2013 imaged drive of a Windows 7 Pro computer.
I need to use a disk image to install Office 2013 on a Win 7 Prop machine. It is easy through "Assembly" in Win 8, but there is no mention on how to do it with a Win 7 PC? I have downloaded the MS Office site image and I have the key code that accomp
-
Since switching to windows 7, my finger pad no longer works. Any help appreciated
My finger pad no longer works since moving to Windows 7. I looked good and tried as far as I know how, now I'm lost... Please help!