Query Help. Seems easy but complicated for me
Hey guys im trying to setup my application to check weather or not a user has an account made in my database.
The login uses a different authentication method then the application. As the login pulls from our intranet office database and the app uses users in a local apex db.
I need a query that will check after auth if the user has a account stored in apex db if so then the user will be redirected to page 4, if not then the user will be directed to page 7.
QUERY IM ATTEMPTING WITH NO RESULT
select count(*) from odf_user where login_name = :APP_USER.
if count(*) > 0 then (
wwv_flow_custom_auth_std.login( P_FLOW_PAGE => :APP_ID||':4');
else
www_flow_custom_auth_std.login( P_FLOW_PAGE => :APP_ID||':7');
endif;
Heres the code
declare
l_count NUMBER;
begin
select count(*) into l_count from odf_user where upper(login_name) = upper(:P101_USERNAME);
if l_count > 0 then
wwv_flow_custom_auth_std.login(
P_UNAME => v('P101_USERNAME'),
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':4'
else
wwv_flow_custom_auth_std.login(
P_UNAME => v('P101_USERNAME'),
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':7'
end if;
end;
Similar Messages
-
import java.awt.*;
import java.applet.*;
/*<applet code="First" width=100 height=100>
</applet>*/
public class First extends Applet {
/*public void init()
public void paint(Graphics g)
setBackground(Color.black);
setForeground(Color.green);
g.drawString("annn",1,10);
g.setColor(Color.red);
g.drawString("annn",10,20);
setForeground(Color.orange);
g.drawString("annn",1,30);
The problem is that when i run the above applet the output keeps fluctuating as if the paint method is being called again and again..
why is the same text being painted again and again.......It's an issue of double buffering, it sounds like... (flickering?)
See:
[http://javaboutique.internet.com/tutorials/Step/Chapter4/DoubleBuffering.html]
You can probably most easily solve this by using swing instead of awt. Use JApplet, JPanels, etc. from javax.swing
import javax.swing.*;
/*<applet code="First" width=100 height=100>
</applet>*/
public class First extends JApplet {
/*public void init()
public void paint(Graphics g)
setBackground(Color.black);
setForeground(Color.green);
g.drawString("annn",1,10);
g.setColor(Color.red);
g.drawString("annn",10,20);
setForeground(Color.orange);
g.drawString("annn",1,30);
}Edited by: MichaelDGagnon on Dec 16, 2008 12:55 PM -
How do I add my Smart Contacts (on my Mac), to my iPhone? The Smart Contacts facility makes searching for a Contact so much easier, but this facility does not seem to be available on my iPhone.
Any suggestions?How do I add my Smart Contacts (on my Mac), to my iPhone? The Smart Contacts facility makes searching for a Contact so much easier, but this facility does not seem to be available on my iPhone.
Any suggestions? -
I have a Macbook and I left it unplugged. It started up slowly when I plugged it in again, but it seemed fine. Once it started charging I shut it down so it would be easier, but now it will not go past the grey screen with the apple. What do I do?
I have Snow leopard on my computer, and I tried to do a hard restart as an article suggested, but it did not work. I also tried cleaning out the PRAM.
The only things I did last night:
-cleaned the history of Firefox out, including cookies
-let it unplugged all night
-plugged it back in the morning, it took a long time to figure itself out, but eventually the time was correct and I got on the internet for a bit
-shutdown the computer since I was going out and thought it would help the computer charge
-came back, tried to turn it on, and found that it would not go past the grey screen the apple on it and the spinning wheel even though I left it for 20 minutes or more
-tried turning it off and on to no availBefore doing a reinstall, which may not be needed at this point,
Try using Disk Utility to do a Disk Repair, as shown in this link, while booted up on your install disk.
You could have some directory corruption. Let us know what errors Disk Repair reports and if DU was able to repair them. This could just be a start in repairs and you may need a better utility to finish the job.
Then Repair Permissions.
No need to report any Permissions errors........we all get them.
DALE -
Just updated my iPhone 4 from IOS 6.1.3 to 7.1.2, I know I am behind the times, but I got there eventually! All seems well but I have one specific problem and hope someone can offer a helpful suggestion.
On opening the app "Find my iPhone" I add my password and sign in, to be greeted with a screen that says;
"Update Find My iPhone. A new version of Find My iPhone is available from the App. Store. You must install the update to continue using the app. Update now"
On hitting the "Update now" button I'm taken to the relevant page on the App Store, to be told that I cannot update as it needs IOS8 to be able to continue and as my iPhone is only a 4 cannot install IOS8.
I'm left going around in circles. The only thing would be to delete the app, but looks like I could not re-install the version I would need. Any body have any thoughts or suggestions? (Apart from updating my phone, I have a few months left on the contract!)
Thanks in advance.Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
Anything else I could try, or am I doomed!
All of your help is much appreciated, thanks -
I just bought the new HDMI cord for the IPad, it works good but a small potion of the TOP and the BOTTOM is cut off. It doesn't seem to do it for movies(although I can't really tell. My monitor is a 23 IN' acer s series. I just installed the drivers for my monitor with no change. I think I have a CD somewhere for my monitor maybe it has some kind of program in there that can help me. I can post a picture if I need to. Thanks
No work around that I know of.
Apple Feedback http://www.apple.com/feedback/ -
I dropped my mac pro. The disc drive plays but will not record. medium drive error. How hard is it to replace the drive my self. i see screws on the bottom. Could I just order a new internal drive and replace it? Or is it too complicated for the average person? Would be cheaper to buy an external drive than to replace internal one? Any advice is appreciated
How certain are you the superdrive ONLY is at fault?
That depends on your skill level, if you grew up tearing things apart and putting them together, its absurd how easy it is.
For some however its too daunting. On a general skill level for the "average" person its about a 3 out of 10 in difficulty.
Can you order same? yes. -
I have a Lexmark X1185, but I do not have the driver CD that came along with it. I have a 15" MacBook Pro (Late 2011) and I cannot seem to find drivers for OSX Lion.. Where can I find the drivers? Thank you for the help!
Have you looked on Lexmark's support site?
http://support.lexmark.com/index?page=content&id=OS23&locale=en&userlocale=EN_US -
My ipad has been connecting to internet/email quite happily until the last few days, it just seems to be searching for my network, the ipod has picked this up. Help
JohnThanks James
This has solved the problem. What I can't get my head roud is the ipod worked fine but the ipad didn't? any way thanks again.
John -
i have apples new ipad but my video quality is rubbish and does not seem 1080p but compared to my fujifilm camera the 1080p video is brilliant! Please help..
Try your iPad with some of these demo clips; go for the 1080p trailer.
http://www.h264info.com/clips.html -
Hi, no matter what setting I change, I am having the same problem.
I invite people to an event I create on iCal, but in the invitation message received the invitees, the event seems to be scheduled for one hour earlier. E.g, I create the event for 14:00 GMT, yet the invitation message says 13:00 GMT. We are in the same time zone with the other people receiving the message. And I have my iCal settings as well as iCloud settings set to GMT.
Can you please help me? I'm really frustrated!What exactly are you doing and what version are you using with OS X 10.8?
-
I’ve tried to update my i-Tunes version after the site suggested I should following my i-Pad Air being plugged into it for the first time. The update seemed successful but the program would not open at all despite switching off the PC and re-starting several times. I then tried wiping the original software from the computer and re-downloading from scratch. Each time I tried the download failed with a message saying “Service “Apple Mobile Device” failed to start. Verify that you have sufficient privileges to start system services” At this stage, the only way forward was to “abort” the download. This I have done now four times and the same thing happens. When I did finally manage to get an i-Tunes shortcut on my desktop, the program wouldn’t open saying: “i-Tunes was not installed correctly. Please re-install i-Tunes. Error 7 (Windows error 193)” Any ideas to resolve this?
Try the following user tip:
Troubleshooting issues with iTunes for Windows updates -
My phone is not showing up in itunes. I want to sync it. I have a MAC and I have restarted the phone, it's charged, I have the most current version of itunes. What do I do now? It says to reinstall itunes if you have windows but not for mac. Help!
With your phone plugged in, open Image Capture and see if the iPhone shows up. If not, you are having a sync problem. If it shows up in Image Capture, but not iTunes, I'd delete iTunes and reinstall it.
-
I buy for mac app but not for the iPad, so how do I reinstall a program that has already purchased? I need help because I bought the imovie'11 but when he opened it only brought 8 movie trailer templates instead of the 15 it says on the program. How do I solve this problem? Once paid for a program incomplete. I also liked that the AppStore itself had a button to reinstall programs already bought, because it is very hard to understand how to do this in the store, only option is to install and hide purchase, and how do I reinstall, attention'm talking about reinstalling a computer mac, not an ipad or iphone.
Thank you.Prodesigntools.com , go ahead and download the software from there and use your serial number to serialize it.
-
I have a new Ipad and when I try to buy an app it asks for my questions! I dont remember them so I press the button that send me an email to reset them. Ive sent it various times but it doesnt arrive. please help I need this app for school!!!
See Kappy's great User Tips.
See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
Rescue email address and how to reset Apple ID security questions
http://support.apple.com/kb/HT5312
Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
Cheers, Tom
Maybe you are looking for
-
Table name where query variables stored
Hi All, can any one please tell me in which data base table all the custom query variables are stored???
-
I am reading about Zhiqun's Java Card book, and I wonder about the relationship between a package and an applet. Am I right in saying: 1. An applet comprises one or several packages 2. A package only belongs to one applet 3. One package is one group
-
Hi All, I have a xml document that flows through 3 systems(assume workstations) one after another similar to UNIX pipes i.e the output of one system is fed as input to the next system. There is some legacy Java code that sits on each of the systems(w
-
My I Pad is disabled because I lost the password. How do I reset it
-
I installed final cut pro on my macbook pro. If I buy a new macbook pro I can move it?
I want to buy a new macbook pro. I currently have a macbook pro in 2009. Buying a new Macwill lose all installed programs and regularly bought from Apple? For example, Final Cut ProX, Kynote, ect