password to re-defined, random question selection

I am currently editing a form that allows users to re - set their password should they forget it. Currently, they are required to answer a security question (they have already chosen and answered) in order to reset. NOW, they will have to meet one of the THREE questions that will be chosen randomly from those that they have answered previously (in a separate form, I just finished).

Question: Is there a built-in form that can perform this random selection of a table (e.g., security_table.question_1, security_table.question_2, security_table.question_3, etc.)?

Thanks in advance for your suggestions...

Mark,
There is not a built-in random number in forms, but you can use the DBMS_RANDOM package to generate a random number between and including the two values. With this random number, you can then select the question random your table. For example:

/* This will generate a random number between 1 and 3 - including 1 and 3 */
SELECT round(dbms_random.value(1, 3))
FROM dual;

One way to implement random selection would create a procedure with THE values for the question and answer database. For example:

CREATE or REPLACE PROCEDURE get_security_question_F (p_user_id IN VARCHAR2, p_question OUT VARCHAR2, p_answer OUT VARCAHR2) IS
   vQuery   VARCHAR2(1000);
   vQuestion  VARCHAR2(500);
   vAnswer   VARCHAR2(500);
   nRandom  NUMBER;
BEGIN
   BEGIN
      SELECT round(dbms_random.value(1,3))
         INTO nRandom
         FROM dual;
   END;
   vQuery := 'SELECT question_'||nRandom||', answer_'||nRandom||' FROM security_table WHERE user_id = :1';
  EXECUTE IMMEDIATE vQuery USING p_emp_id RETURNING INTO vQuestion, vAnswer;

EXCEPTION
   WHEN NO_DATA_FOUND THEN
   vQuestion := NULL;
   vAnswer := NULL;
END;

Now you can simply call the procedure of forms to get the security question and answer.

I hope this helps.
Craig...

-If my response or response from another is useful answers your question, please check the response accordingly. Thank you!

Tags: Oracle Development

Similar Questions

  • The title of the TOC for the random question slides

    I want to create a quiz that randomly pulls a pool of questions.  I think I know how to do that (rightly), but when I do, the table of contents is only show (title "Slide") the name/title of the question slide to chance itself, which is not really give any useful information.  I wonder if there is a way to show rather the title of the question which is selected (and present) of the random question slide.  This, in my opinion, would be much more useful to users taking the quiz.  Is there a known way to get there?  Thank you!

    Capture.PNG

    Project files cannot be attached to these messages in the forum.

    Lilybiri has already answered your question.  The table of contents only shows the name of the random Question slide and can't give you the name of the slide of the random quiz question slide that is picked up from the Question pool when running dynamically.

    Essentially the Random Question slide is just a placeholder.

    However, I think that your idea of being able to have the selected slide display its name in the table of contents if you wish has some merit.  Then I suggest that you connect to an enhancement with Adobe for this request.  You never know...

  • vmdir. Password is not defined abandonment installation

    Hello

    I want to install unit in an ESXi host vCenter - 6.0.0.

    I downloaded "VMware-VCSA-all - 6.0.0 - 3634788.iso" and extract it, then in vSphere Client-> file-> deploy OVF Templeta-> select the file "VMware-VCSA-all-6.0.0-3634788\vcsa\vmware-vcsa" and start it. Install it to correct the virtual machine.

    In the console, I have this message:

    Root password is not set.

    vmdir. Password is not defined abandonment installation

    I press F2 and set a new password for root. Now, I have this message: "vmdir.password is not defined abandonment installation.

    I restart the vCenter and same message: "vmdir.password is not defined abandonment of installation" and I can access the web interface of https://192.168.1.10/

    How could I solve this problem? It is the first time installation vCenter in v6.

    I appreciate your help.

    Kind regards.

    Hello

    First of all, you need to install ESXi on either of the ESXi host and deploy vCenter device on the ESXi host.

    Please refer below Post for installation of Unit 6 vCenter, once your vCenter is ready for use, you can apply the license.

    https://www.virtuallyboring.com/vCenter-server-appliance-6-0-a-fresh-install/

  • Captivate 5 quiz - random question pool

    I use Captivat 5 quiz with 17 questions in a Question pool to be randomized, if I wan the quiz for showing 10 of the 17 questions randomly, how can be done?  Help, please!

    Hello

    You can add 20 question to your question and then go into ' Quiz > Question Slide > select at random 'Question' and type '10' in the text box.» Select your pool of the Question and it will insert 10 random questions from the question pool you have created.

    Kind regards

    MILIN

  • Random questions

    Can you do a question randomized after that it was created as a regular matter?

    I mean that the entire purpose of the pools in question must deliver random questions.  As long as you have more than one question in a question pool, it will never deliver random questions.

    So by moving the questions in a pool, you do not change the operation of the pool. You simply configure these questions to be available for selection when any slide question randomized in your project is set to shoot this pool questions.

    If you have a question randomized into your project slide, to shoot a question to the group, he will choose one of the questions in this pool to display.  If there is another question randomized in the same quiz put slide out of a pool, he will choose another question.  Captivate will not repeat the same question.

  • Convert to the Question pool random questions?

    We update a course, we developed the year last (before Captivate 3). This year we want to apply 'Question pool random questions' Captivate 3 in this course. Is there a way to create the pool of question (s) in this existing quiz, and then add the year issues last to them without entering again each question in the Question Pool Manager?

    Thanks for the tips!

    Hi Jan

    Sure thing. Simply convert the project from version 1 or 2 at a draft of version 3. Then set a Question Pool. Once you have done that, switch to the storyboard table display. Select the question slides you want to add to the pool and right-click. You should be presented with an option to add the slide selected in the pool.

    Once you have moved the question to a pool slides, you would then insert slides of Random pointing to the pool.

    See you soon... Rick

  • BlackBerry App Blackberry ID forgot password and answer the security question

    Hi, I have a Curve 9360 and I forgot the password for my Blackberry. Not enough, I also forgotten the answer to my security question. Is it possible to reset my password without answering the security question?

    royalkarin wrote:
    But when I try to login, I get the following error "enter the username associated with the smartphone.

    You will need for security wipe the device first.

    How to change BlackBerry smart phone associated with a BlackBerry Internet Service account

    I know that you use the same email address, but it's actually a new BlackBerryID.

  • 6 - Random question slides after restarting lesson of Captivate

    Hi all

    We have a project that includes several random Question slides.  After the failure, we restart the project again.  When the learner reach the Quiz, they are presented with the same questions. Is there a way to force the randomisations again?

    TIA - Vijay

    When you say "restart the project again" Summers - you referring to the revival of the entire module, or just take the Quiz on the Quiz results slide?

    If only resume the quiz on the button on the slide of questionnaire results, all you see are the same questions.  For a chance to see different random questions, you must raise all of the module.

  • Pre-test: random question bypass

    Hello

    We were asked to do pre for a course, but with random questions to stop collusion

    Is there a work around?

    Renovator rgds

    Is not possible out of the box with the functionality of pre-test now available. In previous versions, I used question slides custom for this questions that I created using standard objects, where the score has not added to the total of the Quiz but stored in a user variable. But you have no question randomly either, so no possible. Don't see a workaround solution, unless you do not have to report to an LMS. Any questions at random, you have to use the normal question slides. It is possible to keep the score of the 'test' in a separate user variable, making decisions as branching based on this variable, create a slide of score as well for the pre-test and test but what a statement to an LMS that all quiz slides will be considered part of a Quiz and the score will be the total of all the slides in quiz score.

    Lilybiri

  • Not able to change the password by using the query. Select APPS.fnd_web_sec

    Not able to change the password by using the query.
    Select APPS.fnd_web_sec.change_password ('username', 'password') 'RES' double;

    Can someone tell why and what privileges and subsidies have flexibility to the user non-apps while it can change the password using fnd_web_sec.change_password.



    Concerning

    the information above does not solve my problem, I get the message

    Because you do not have permission on all objects that are referenced by the API (see below).

    Select FND_WEB_SEC. CHANGE_PASSWORD ('MARSHAD', 'mohammad @123') "RES" of the double

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    ORA-06512: at the 'APPS '. FND_CORE_LOG', line 25

    ORA-06512: at the 'APPS '. FND_CORE_LOG', line 432

    ORA-06512: at the 'APPS '. FND_PROFILE', line 110

    ORA-06512: at the 'APPS '. FND_SSO_MANAGER", line 227

    ORA-06512: at the 'APPS '. FND_WEB_SEC', line 1425

    ORA-06512: at line 1...

    can you please list me what are the grants and other Jules Destrooper I should give to a user so that he can change password.

    I don't have the list of objects and you should get yourself by consulting the site code and eTRM API.

    by changing the DDT in the user non-apps after the grant, will, it may be able to change the password.please tell this syntax is correct or not.
    Select applications. FND_WEB_SEC. CHANGE_PASSWORD ('user', 'pwd') "RES" of the double

    What is the point of using 'FND_WEB_SEC. CHANGE_PASSWORD' and not FNDCPASS or FND_USER_PKG API?

    Thank you
    Hussein

  • Connection with random questions

    Captivate newbie here...

    I am creating a Jeopardy-style quiz in Captivate 3 using random questions that are contained in separate categories for each category of question. The game board is on slide 2, and it has 20 transparent buttons with the 'jump to slide' actions, pointing to a question slide randomly. Random question slides have a "submit" button and a back button, which I intend to provoke a jump behind the game board. The branching tree shows an arrow (black) navigation on slide 2 to each slide of the question and each question slide shows "go to slide 2" actions for success and failure.

    I had hoped that the jump to the game board would be automatic after the user answers the question, but it is not. The previous button on each slide should be used to return to the game board, but sometimes it takes the user to the previous slides, with their questions already answered, and the user must hit the back button several times to return to the game board.

    I used the game Jeopardy downloadable example from this site as a source of inspiration, but it is not really a quiz. In this document, the user enters no answer; Instead, the answer is presented by a rollover.

    So I guess the question is, can use you navigation with random question slides?

    Hi ImagineerBill and welcome to our community

    As you have seen, Captivate is not too bright allowing slides to Question which will be presented in an order any. I know this probably sounds contrary to the work of slides question how randomly. But listen to me please.

    Captivate normally moves from slide to slide in a linear way. This introduces a problem if you want to branch back to a quiz.

    The answer to your real question of ' can you branch from Random Questions ', is that you can. But you should consider how the branch will operate and how this may affect the rating.

    We see a similar problem broke out when you want to have a common slide with many links that can be launched. Often, the person is anxious as the original slide is up to, visited slide is marked somehow as having been opened. And as you have seen, this is exactly how the Jeopardy game. It works by exploiting a bug/feature/callit you want with Captivate. This is the characteristic of a blade retaining the moused State when you have a bearing on it which is associated with a box click object. Because the slide is presenting the reversal as if you were still positioning the mouse over it, it shows the destination has been visited.

    To be honest, I don't know that there is a solution for what you are looking for. Unless you could build the random slides as a series to answer in a specific order, but the random question presents until exhaust you the pool.

    See you soon... Rick

  • Where is the ESXi local password length policy defined? (n00b question)

    How you can view or modify the rules of complexity of password for local accounts of ESXi?

    Thank you

    p.

    Hey pavel - has,

    Here is a KB article that gives you all the information you need about changing password rules in ESXi.

  • Firefox asks me if I want to save a password even though I have this selected setting

    Firefox asks me if I want to save a password even though I have this parameter selected; I even deleted the passwords thinking that might help and I went back to the site, connected, and he asked me to save him. I even downloaded a Firefox another, 9.0.1, and it won't always ask me. What is the solution?

    Thank you very much; It works now!

  • Satellite A210: Random Questions after several blue screens

    This morning at the College, I started my laptop (satellite A210)
    After entering the password started... after 5 seconds, I got a blue screen SHORT (3 seconds)... This can happen 5 times...
    then I was really p * ssed - I booted in safe mode... do you have a system recovery (in German "systemwiederherstellung")
    After doing that my laptop has begun... but now begins the horor

    1 Explorer.exe crash so that start up - so I have to start explorer.exe mauel with the Task Manager
    2. with this also sidebar, bar SCROLLING-option AND the menu upwards on the screen... you know... the one you get with the pointer on... then it appears and you can select things like brightness, volume or energysafeoptions...
    3. opening a folder takes almost 1 minute to show its files... (totally slow!)

    I ran TuneUp2008, O & O Defrag 10-Prof. and also ESET NOD32 Antivirus with the new definition (found nothing).

    ... Yes... what to do now? ... I don't know how to start programs from the point 2. and 3. ! Please tell me how!

    Yours sincerely Nico

    What should do?
    Take the recovery CD in the CD/DVD drive and try to restore the operating system from the Toshiba Recovery CD.
    After reinstalling the laptop should run correctly if it is not a hardware problem is possible.

  • Power management & random question sleep/put into hibernation

    Hello people!

    First of all, I'm an administrator COMPUTER experienced, and I've owned 6 Thinkpads over the years... the machine in question is today a Thinkpad W530 (K1000M, 16 GB RAM, 240 GB SSD Intel, Windows 7 x 64, latest drivers and BIOS).

    I had a weird problem where out of no where, and while on battery, the computer will go to the default mode ' uh oh, battery runs out, record everything! Aka, if Hibernate is enabled, the computer will be in hibernation. If I disable Hibernate in Windows, then the computer go to sleep. So the problem is same, and for other symptoms can present as "hibernate without warning" instead of "sleep without warning.

    In any case, this occurs sporadically and often at times that bothers. The first few times, I didn't know what has increased, but I looked into it a little further now.

    Immediately after this forced sporadic "sleep" / "hibernate" happens, I checked the event log:

    "

    The system to sleep.

    Reason to sleep: battery

    "

    Now, obviously, this is no good. I was a little confused the first time I saw that as the power manager, or the built-in Windows gauge showed low battery. And after that I take for sleep/hibernate mode, the battery is still fine.

    Today, however, I only found a major clue. This time, instead of simply jumping to a sleep/hibernate event, I got a low battery critical Windows popup warning first, and looking at the Windows battery meter was shown left 7%, even if Lenovo Power Manager gauge showed a little more than 50% left. Almost immediately after, he does it is sleep and I wake him up once again, and of course, as always, the battery level returns to normal.

    If long story short, it's a pretty serious battery level report bug somewhere in the drivers of power? Or is it a bad battery? (And if that were the case, why only Windows reports the State of the intermittent dangerously low battery, Lenovo Power Manager no?)

    Just curious for some feedback, otherwise, I'll have to start RMAing parts, or even the entire machine. Of course, having Windows sometimes think that the battery is not about to die is not acceptable. Imagine if I was doing something critical and decides the computer "uh oh, battery low time.» close it as soon as possible! ».

    Yes. Define your event of critical battery doing nothing. It is a workaround, but it is not too bad workaround.

Maybe you are looking for

  • El Capitan Mac not mirrored with Apple TV 4

    When I try to reflect my Mac my tv screen just goes black and nothing is displayed. Even in the menu bar on my Mac it says air play to 'Apple TV' but I get no display options like I should see if I like mirror, or use a desktop separated, any of thes

  • Wert EditBox Variable sofort aktualisieren

    ICH habe mir einen little dialogue is zur Achsendefinition. Den Wert, den ich in ubergebe 'EditBox4' Einträge - also z.B. die ich '20' - an eine Uservariable, deren Namen ich in dem Reiter 'Einstellungen' unter 'Variable' registered habe. DAS works b

  • Sometimes my computer shutsdown with the ati2dvag what's this error?

    The computer crashes upward says closing file causing is ati2dvag. Anyone know what it is and how to fix it?

  • Need drivers for Compaq CQ58-d52SI Notebook PC Windows 7 64

    Hello Someone who can help me find drivers for my laptop PC portable Compaq CQ58-d52SI? I need for Windows 7 64 bit... Thank you!

  • Rocket + overloaded

    I copied files to Fuze + and probably some system files corrupted. I can't use it anymore! I turn on and display the "Loading" message... ", but after a few seconds, it restarts. Help me please!