Varification Number Generation and showing it as popup

I want to show a popup of varification number when user inserts a form.
let say there are 3 fields in a form, first two are visible and can have any info. third one is hidden and it generates auto numbers, first i need that it must generate some random numbers upon each submission of form. Second i want this randam generated number to be shown to the user as popup and tells user that it is his/her verification number. and in future if he/she wants to check what they entered, they will be able to fetch with that verification number.
Any help will be appriciated
Thanks in Advance
Mazahir Abbas

If its hidden you don't need to prefetch it as users don't get to see it. You can assign it from the Submit PLSQL process itself and set that hidden item(say P100_VERIFICATION_NUMBER) with the value.
Then add an onload Javascript that displays the message when the hidden item not null(so that it runs only after submit process)
alert(' Your Verification Number is :'+ $v('P100_VERIFICATION_NUMBER') );You can also do that directly from the PLSQL process
BEGIN
  --process
  :P100_VERIFICATION_NUMBER := <new verification number>;
  htp.p('<script>');
  htp.p('alert("Your Verification Number is :'||:P100_VERIFICATION_NUMBER||'")');
  htp.p('</script>');
END;Random numbers needn't be unique and might not be good idea in the long run. You should be using sequences in these situations. However if you want it to generate random values you can use
FLOOR(DBMS_RANDOM.value(0,1)*99999999999999999999) generating a 20 digit random no.

Similar Messages

  • Catching browser close event and showing my own popup

    Hi,
    I want to show my own warning popup on browser close event. Kindly help me with the solution.
    Thanks a lot in advance.
    Lavanya.

    Lavanya,
    I don't think you could show a ADF Popup during the onload event. Instead, you could use javascript's confirm method to prompt the user to choose what they want to do and perform that operation accordingly.
    Ex :
    jspx code
       <af:document id="d1" onunload="performUnloadEvent" clientComponent="true">
                <af:resource type="javascript">
                  // For Mozilla and Firefox
                  if(window.addEventListener){
                  window.addEventListener('beforeunload', function (event) {
                    showConfirm();
                  // For IE
                  else if(window.attachEvent){
                       window.attachEvent('onbeforeunload', function (event) {
                    showConfirm();
                  function showConfirm(){
                          var eventSource = AdfPage.PAGE.findComponentByAbsoluteId('d1');
                          var sel = confirm("Are you sure you want to exit?");
                        if(sel==true){
                            alert('Perform OK Operation');
                            var x = AdfCustomEvent.queue(eventSource, "handleOnUnload", {result : 'ok'},false);
                            var y = 0;
                        else {
                        alert('Perform Cancel Operation');
                         var x = AdfCustomEvent.queue(eventSource, "handleOnUnload", {result : 'cancel'},false);
                         var y = 0;
                </af:resource>
                <af:serverListener type="handleOnUnload" method="#{UnloadHandler.onUnloadHandler}"/>
                <af:form id="f1" clientComponent="true">
                </af:form>
            </af:document>onUnloadHandler method in bean
        public void onUnloadHandler(ClientEvent clientEvent) {
            System.out.println("Unload Event fired..");
            String outcome = clientEvent.getParameters().get("result").toString();
            if(outcome.equalsIgnoreCase("ok")){
                System.out.println("Outcome is OK ");
                // Perform some operation like Commit;
            else if(outcome.equalsIgnoreCase("cancel")){
                System.out.println("Outcome is Cancel ");
                // Perform some cleanup operation like Rollback;
        }-Arun

  • How do you implement serial number generation and/or paypal integration?

    Hi,
    perhaps this question is a bit of topic. But have you ever thought about this point or even better do you have an solution for this?
    Rgds - Wilko

    The only ways to find a serial number without having the iPhone are by looking at the iTunes backup or on the packaging. If you don't still have the box and you didn't make a backup in iTunes or it doesn't show the serial number - see:
    http://support.apple.com/kb/HT4061
    then I know of no way you'll be able to get the serial. It will not be shown in your iTunes Store nor in iCloud.
    Regards.

  • Automatic employee number generation

    Hi,
    When installing Oracle HR, we had choosed manual employee number generation and then we changed to the automatical mode. Now, we need to return back the the manual mode.
    I ask if there tips to do that?
    best regards,
    Mourad.

    Pl see MOS Doc 452044.1 (Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr)
    HTH
    Srini

  • Regarding Number Generation

    Hi Experts,
    I am SAP MDM Consultant and have recently come across this issue pertaining to number generation,need your expert guidance to solve it.
    Problem Definition : In our landscape Number generation takes places through a BAPI function call to ECC system,This data is then filled in the form and then on submission data gets saved in MDM.Later the same gets syndicated to ECC after enrichment and approvals.Recently in dev system we have encountered Duplicate Vendor number in MDM system.MDM is not generating number,its the BAPI call from ECC which does this.I think some previously used numbers must have be released for use and the same has been used by BAPI.
    So,can you please guide what can be reasons of inconsistent number generations and which methods are used to release the same unused numbers for use?
    Quick help will be appreciated.
    Thanks,
    Ravi

    .I think some previously used numbers must have be released for use and the same has been used by BAPI.
    SAP has no process to release old numbers,
    There is a function module to get the next number: 'NUMBER_GET_NEXT'
    It just uses the  the number range number and the number range object and reads then the next number from the number range table NRIV.
    Usually you cannot create duplicates, SAP ends in a dump.
    So I guess your problem is created by either resetting the number range in ERP production system manually, or somebody transported the intervals from DEV to PROD system despite of the endless warnings, which obviously has then the lower current number as you usually have not as much materials in a DEV system like in a PROD system.
    It can already be years ago that a number range was resetted, and you are just approaching  numbers that are already used.
    You have to analyze the numbers in MARA table  and compare it with the number range intervals and their current number.

  • I just got the new ipod touch (5th generation) and it will show up on my computer but it will not show up on itunes and it won't connect. Please help!

    I just got the new ipod touch (5th generation) and it will show up on my computer but it will not show up on itunes and it won't connect. Please help!

    See:
    iOS: Device not recognized in iTunes for Windows
    You need iTunes version 10.7

  • I cannot send or receive SMS text messages and my number is not showing up in the 'Recieve At' location..how do I fix this?

    I just bought and activated a new Iphone 4s and I cannot send or receive normal SMS text messages. Also, my number is not showing up in the "receive at" location. Any help??

    Settings > General > Reset > Reset Network Settings
    Beyond that... since you state you've tried all "recommended fixes" have you actually restored as new and not from your backup?

  • TS1363 Hi, I just got an iPod Nano 1st generation and I plugged it into my computer and open iTunes but it never showed up in iTunes. So then I updated my iTunes to the latest version but it still didn't show up so is there a way you all can help me A.S.A

    Hi, I just got an iPod Nano 1st generation and I plugged it into my computer and open iTunes but it never showed up in iTunes. So then I updated my iTunes to the latest version but it still didn't show up so is there a way you all can help me A.S.AP.

    Error 1611
    This error typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service.

  • So i have an apple ipod touch 1st generation and it is not charging! It shows the charging sign but its taking a really long time to charge. Ive had it charging for at least 3 hours and it still says under 20% so can someone help me figure this out??

    So i have an apple ipod touch 1st generation and it is not charging! It shows the charging sign but its taking a really long time to charge. Ive had it charging for at least 3 hours and it still says under 20% so can someone help me figure this out??

    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

  • When I create a text message from my contact on my iphone 5, the contacts mobile number appears and not there name.  But when they respond to my text, is shows up as a new text message with there name.  How do I fix this?

    When I create a text message from my contact on my iphone 5, the contacts mobile number appears and not there name.  But when they respond to my text, is shows up as a new text message with there name.  How do I fix this?

    Double click the home button and swipe up the messages app to stop it, then open the app again. This pretty much completely stops the process and freshly opens it again, resolving problems at times. I have had this happen before as well on my iPad, I get a banner, check messages, and nothing new is there.
    If that doesn't work, close the app like suggested above, but then restart the phone by holding down the home and lock button for 10-15 seconds until the apple logo appears.

  • I have the ipod touch 4th generation and the screen is white, i was going to charge it and it turned white. I have tried to reset it but the apple logo will not show up and it will not turn on! i just got it for christmas... can you please help?

    i have the ipod touch 4th generation and the screen is white, i was going to charge it and it turned white. I have tried to reset it but the apple logo will not show up and it will not turn on! i just got it for christmas... can you please help?

    The way I did it was I got the free app sync:stream from the App Store and then added my ipod to my ps3's Bluetooth devices. Then went to audio settings and set output and input to 'Skaggs iPod' you then open the app and it will be listed under music as a media service. You then go to all tracks and click copy (press triangle) it will then begin to copy all of your songs onto your ps3 via Bluetooth. I haven't tried but I assume the same can be done with photos. I hope this was helpful reply if you have any questions :) good luck

  • HT1386 My iphone wont sync and shows an error number (13019)... What does this mean???

    My iphone wont sync and shows an error number (13019)... What does this mean???

    http://support.apple.com/kb/TS2830

  • I am paying for adobe creative cloud monthly but it just said my trial is up and i need to enter a serial number but the number won't show up anywhere.

    I am paying for adobe creative cloud monthly but it just said my trial is up and i need to enter a serial number but the number won't show up anywhere.

    Sent from my iPhone
    Begin forwarded message:
    From: John T Smith <[email protected]>
    Date: December 6, 2014 at 12:45:42 PM EST
    To: Giuliana Bono <[email protected]>
    Subject:  I am paying for adobe creative cloud monthly but it just said my trial is up and i need to enter a serial number but the number won't show up anywhere.
    Reply-To: [email protected]
    I am paying for adobe creative cloud monthly but it just said my trial is up and i need to enter a serial number but the number won't show up anywhere.
    created by John T Smith in Adobe Creative Cloud - View the full discussion
    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/6991257#6991257 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/6991257#6991257
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Creative Cloud by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Third generation ipod shows incorrect language and settings menu not avail.

    My thirty gig., third generation, Ipod shows the German language and the "settings" menu is not available to change the language back to English.Any help you can provide will be greatly appreciated. Thanks.

    I finally found that "settings" menu by trial and error and I was able to change the language back to english. It was a royal pita lol.

  • My number has been showing up as calling people while in my possession and sometimes off.  How does this happen?  How do I stop it?

    My number has been showing up as calling people while in my possession and sometimes off.  How does this happen?  How do I stop it?
    I've tried to contact facebook support and been trying to get on live chat for hours to no avail.  Please help me stop annoying people.

    A month ago I received a spoofed call at 6A - obviously I was not happy. Came from 000-0000000 as I recall.
    Tonight I had two irate people call me minutes apart saying I called them - I was eating dinner with my wife with my phone turned off in our eye-sight.
    I cannot believe that we allow spoofing software and spoof cards these days, with only a crime if someone asks for money or does some similar fraudulent activity.

Maybe you are looking for

  • Creation of Custom Report in BI based on MM datasources.

    Hi, I have a requirement wherein all the mentioned below fields needs to be in one report. PO #: PO Date: PO Amount: PO Period: GR #: GR Date: GR Amount: GR Period: Invoice #: Invoice Date: Invoice Amount: Invoice Period: Payment Due Date Plant Mater

  • Can I import old MacProject files into something more modern?

    I have some MacProject files which were created on an older Mac under OS7. Under older OSX I could still open those files in the Classic environment. That option has obviously now gone having upgraded Mac and OS to 10.4.8 I have copies of the older M

  • ITune 9.1.1 " iPhone cannot by synced "

    Today I downloaded the new iTune 9.1.1 and since I cannot anymore synchronize the photos to my iPhone 3G. The message is "the iPhone cannot by synced. The required file cannot be found." I hope somebody can help me. Thanks in advance

  • Control Break problem (using format option in the report)

    I am trying to create control break on one of my reports. I am grouping query by 3 columns and I am trying to create control break but one of the column is not available for the control break (is not listed there). Any Idea why this my happen? Edited

  • Volume of junk mail getting through

    In the last few days it appears there's a good deal more obvious junk mail getting through the Mail app's filtering process. Is there something I can do, or has something changed in the software? I checked, and my prefs are set correctly to filter ju