How to detect the user loged
Hi allI have a scenario like this,
I have a global report in which some one-stop codes are available.
Once the user is logged into the system, I want to limit the report details according to its code window.
ex: report of the details (name, age, address, salary, branch)
one login user-> branch code is (COL)
do not be able to view the report details that are related to other sectors.
is it possible to do using Apex...? or I have to manage this through the query...?
If I need to manage it from a query, then I must detect the session of connection clearly as the user login name.
Then I can use the name and the code of the branch of the connection table and proceed to the request... I guess im correct ;)
is it possible to detect the login name of the user and get him to a sql query?
ex: say MAX direction COL login name of the
Select * from TABLE_SAMPLE where branch_code = (select branch_code from USERS where uname = 'MAX' ;);
-----------------------------------------------------------------------------------------------------
can someone give me a hand on this regard.plss... ???
Thank you
Max
Published by: Max on December 6, 2010 04:46
do not be able to view the report details that are related to other sectors.
This is known as Fine grain Access Control (FGAC).
is it possible to do using Apex...? or I have to manage this through the query...?
Both. The best approach is to use the private virtual database (DPV), using integrated Security VPD attribute Apex to put in context.
VPD requires a database Enterprise Edition. A similar approach can be developed using the parameterized views, new setting the context through the security of APEX VPD attribute in other editions.
>
If I need to manage it from a query, then I must detect the session of connection clearly as the user login name.
Then I can use the name and the code of the branch of the connection table and proceed to the request... I guess IM OK
is it possible to detect the login name of the user and get him to a sql query?
ex: say MAX direction COL login name of the
Select * from TABLE_SAMPLE where branch_code = (select branch_code from USERS where uname = 'MAX' ;);
>
Use the substitution string integrated APP_USER to get the ID of the authenticated user:
select * from TABLE_SAMPLE where branch_code=(select branch_code from USER where uname= :app_user);
Tags: Database
Similar Questions
-
How to detect the user touch and hold the screen for touch screen devices?
Hello
I want my code to do the following:
when user touch and hold on the screen{ myThread.start(); } when user release the finger on the screen{ myThread.done(); //a method to stop the thread }
Any ideas? Thank you very much
Never to change never return super.touchEvent (...) to return true (well, you can do it for complete events such as MOVE or GESTURE. SWIPE_...) -you will disrupt the event processing complex (just about everything, but downwards and upwards).
The code works for me (I do something else, with more visual impact, so I know for sure that it does). One thing, try - check the status of your Thread (isAlive()) before you start, as DOWN seems to be generated twice.
If you could be more specific with what "won't work" is, I would be able to help more.
-
How to know the user is the call
Hi all
I development push a service Application in which the following requirement is that the push message should not be displayed when the user is in the call. How to detect the user wheather so busy on appeal?
Please suggest me how to proceed.
looking forward to responses CIHI to you guys.
Thank you
I thought you wanted to know if the user is on a call. The code I gave you the will and sets the appropriate Boolean value. Where and how you use it is up to you isn't it?
I would have thought that the logic in your code to push would be simply
If (! onCall) {}
view
}
-
How to detect the window closing event and to do some tasks before leaving
Hello
Someone knows how to detect the window closing event and to do some tasks before leaving?
Sridhar
Structure of the event allows to detect the window closing event. In the structure of the event,.
Select this VI-> close round table for this task. See attached picture.
-
How to detect the sign of a number?
I output which gives the number of negative or positive. My problem is how to detect the sign of the Boolean number and output? For example if the input number is negative as - 23.11 I want to output the value false and if the number is positive as 17.99 I want to output true.
T H A N K S!
Test if the number is greater than or equal zero.
-
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 help the user focus
Magnifier enlarges part of the screen. This is especially useful for viewing objects that are difficult to see. It is also useful for people who are generally difficult to see the screen.
-
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 detect the key ALT pressed in os7
Hai,
How to detect the key ALT pressed in Os7...
Can I use the source for os 7 as below? ,
protected boolean keyStatus (int keycode final, time final int) {}
If (Keypad.key (keycode) == Keypad.KEY_ALT) {}
...
Returns true;
} else
Return super.keyStatus (keycode, time);
}
and also I want to know which is the return of this method? In detail
How to detect the other touches also?
What are the updations or changes in the code, on os6 os7?KeyCode is a bit model, if you use "is" to compare you won't get accurate results, you should use the operator '& '.
See
http://supportforums.BlackBerry.com/T5/Java-development/detect-ALT-and-shift-key-clicks/Ta-p/444976 -
How to create the user account using the command?
How to create the user account using the command?
Open cmd as administrator, and then type the following commands one after the other
NET user / add program mypasswordnet localgroup administrators program / addnet share concfg * C:------/ grant: program, completeThis will create a user account with the name "Program" and the password "MonMotpasse".You can create the user name and password of your choice. -
How to disable the user rights in adobe acrobat reader DC?
How to disable the user rights in adobe acrobat reader DC?
Is not possible. You need Acrobat for that.
-
How to detect the number of created quickobjects
How to detect the number of quickobjects created? quickobject are quickbox2d.
Basically, I have a timer that will countdown to 4 seconds and it will create a falling ball, it will get removed when she falls down. However, I want only there so that if more than 5 bullets are in step, it will cease to create until it is less than 5 to start creating some balls again. Is there a way I can do?
It's the timer to create the ball
If (! _ballCreation_timer) {}
_ballCreation_timer = new timer (4000);
_ballCreation_timer.addEventListener (TimerEvent.TIMER, _onBallCreationTimer);
}
_ballCreation_timer. Start();
Function which create the ball based on clock
function _onBallCreationTimer (e:TimerEvent): void {}
_doCreateNewBall();
}
function _doCreateNewBall() {}
_ball_quickobject = sim.addCircle ({x: PHYSICS_SCALE * (960), y: PHYSICS_SCALE * (10), RADIUS: 0.5, draggable: false});
MAKE A LIST OF BALLS
_balls_array.push (_ball_quickobject);
}
This is the part where if the table (QuickObject) ball falls down and are destroyed
addEventListener (Event.ENTER_FRAME, _onEnterFrame);
DRAW EACH BALL FALLING OUT OF THE SCREEN
function _onEnterFrame (aEvent: Event): void {}
for each (var quickObject: QuickObject in _balls_array) {}
BALL FALLING OUT OF THE SCREEN?
If (quickObject.y / PHYSICS_SCALE > 1080) {}
_doHandleBallOffScreen (quickObject);
}
}
}
DESTROY THE BALL FALL OFF THE SCREEN IF
function _doHandleBallOffScreen (aQuickObject: QuickObject): void {}
DESTROY THE OBJECT
aQuickObject.destroy ();
REMOVE FROM THE CUSTOM TABLE
_balls_array.splice (_balls_array.indexOf (aQuickObject), 1);
}
check the length of _balls_array. If it is greater than 5, do not create another bullet:
If (! _ballCreation_timer) {}
_ballCreation_timer = new timer (4000);
_ballCreation_timer.addEventListener (IMER TimerEvent.T, _onBallCreationTimer);
}
_ballCreation_timer. Start();
Function which create the ball based on clock
function _onBallCreationTimer (e:TimerEvent): void {}
_doCreateNewBall();
}
function _doCreateNewBall() {}
If (_balls_array.length<>
_ball_quickobject = sim.addCircle ({x: PHYSICS_SCALE * (960), y: PHYSICS_SCALE * (10), RADIUS: 0.5, draggable: false});
MAKE A LIST OF BALLS
_balls_array.push (_ball_quickobject);
}
}
This is the part where if the table (QuickObject) ball falls down and are destroyed
addEventListener (Event.ENTER_FRAME, _onEnterFrame);
DRAW EACH BALL FALLING OUT OF THE SCREEN
function _onEnterFrame (aEvent: Event): void {}
for each (var quickObject: QuickObject in _balls_array) {}
BALL FALLING OUT OF THE SCREEN?
If (quickObject.y / PHYSICS_SCALE > 1080) {}
_doHandleBallOffScreen (quickObject);
}
}
}
DESTROY THE BALL FALL OFF THE SCREEN IF
function _doHandleBallOffScreen (aQuickObject: QuickObject): void {}
DESTROY THE OBJECT
aQuickObject.destroy ();
REMOVE FROM THE CUSTOM TABLE
_balls_array.splice (_balls_array.indexOf (aQuickObject), 1);
}
-
Hi guys,.
I made a game as the same site: http://www.Netent.com/games/table-games/Texas-Holdem-Pro-series/
Anyone know how to prevent the user opened and play the game on multiple windows browser both?
I used the command of flash to embed flash into a page aspx and connection to sql server
Someone help me, please.
p/s: Sorry, my English is not good
You can use localconnection.
-
How to detect the color pages in a PDF file?
I use a plug-in of Acrobat C++ read/modify a PDF file.
I need to get the total number of pages in the PDF file and the page numbers of the pages in color.
So far, I was able to get the total number of pages using PDDocGetNumPages() with no problems.
However, I can't find an API that lets me know if a particular page is color or not. Is there a way to do this?
Thanks in advance!
But what happens if there are RGB data which means black or grey (R == G == B), that means black or RGB?
There is a code sample in the SDK to browse content in the PDF file, and then you can get the color space and color of each object.
But you really need to do background research on the colors & spaces to achieve this properly.
From: Sachintha81 [email protected]<>[email protected]>
Reply-To: "[email protected]<>[email protected]> ' [email protected]<>[email protected]>" "
Date: Wednesday, February 8, 2012 16:57:10-0800
To: Leonard Rosenthol [email protected]<>[email protected]>
Topic: How to detect the color pages in a PDF file?
Re: How to detect the color pages in a PDF file?
created by Sachintha81http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - see the discussion complete onhttp://forums.adobe.com/message/4194889#4194889
-
How to pass the user/pass of OSB to a secure service
How to pass the user/pass of OSB to a secure servicehttp://download.Oracle.com/docs/CD/E13159_01/OSB/docs10gr3/consolehelp/serviceAccounts.html
Maybe you are looking for
-
I lost the icon that takes a URL and saves it as a bookmark (lost icon)
At the top right, I used to have an icon I want to click which automatically too the URL of what has been seen and place it in the bookmarks. I lost the two icons. How to make a comeback?
-
Bug with the donation page today
You have a bug with your fundraising page. I have selected $10 and transferred to Paypal to $3. I tried again and made sure to click twice on a $10. I got the same results. I thought you should know.
-
Installed a theme that did not work, now the default theme is bad too!
I tried "Modern tool for XP icons", but did not notice the part "for XP" until after I installed it, so I took off and I went back to the default value. Unfortunately, now the default theme will show all of the colors; It's just white symbols on the
-
can not paly DVD with digital copy, message: windows media security upgrade
I recently put a dvd with a copy digital in. He talling keeps me to upgrade my windows media security. When I click on the link on the web page to upgrade nothing happens and I can not even download digital dvd. any ideas. brand
-
How to send pictures from Windows to a mobile phone?
Help, please! I want to send pictures from my computer to a mobile phone (ANY phone). I use Windows XP (computer desktop) and Windows 7 (laptop).