Trouble with Resetting Variables

Hello,
I have created a series of 5 questions with two possible answers - correct and incorrect. I have created a variable for each, RunCorrect and RunIncorrect and have set them with a value of 0. Additionally I created a 3rd variable called EarnedShield. When the user clicks the correct option, RunCorrect is assigned 1 with an expression of RunCorrect = RunCorrect + 1 and EarnedShield is assigned 1. If they click the incorrect option, RunIncorrect is assigned 1. On the following screen, if RunCorrect is great than or equal to 1, a badge is displayed. If RunIncorrect is equal to 1, then a "sorry" message is displayed and if EarnedCorrect is equal to 1 then a "congratulations" message is displayed. When the user click the Next button, RunIncorrect and EarnedShield are Assigned 0 to "reset".  This allow me to display a badge for each correct answer and no badge for an incorrect answer.
This works perfectly the first time through the series of questions. However, I need for the user to be able to Try Again after they have been through all 5 questions. Knowing I need to reset the variables, I created an Advanced Action to "reset" them to 0 with Assign RunCorrect with 0, Assign RunIncorrect with 0, and Assign Earned Shield with 0. This is triggered when the user clicks the Try Again button.
However, the variable do not reset.
Below is the actual advanced action I am using to "reset" the variable - executed on click of Try Again button. PS, I have also tried to execute this advance action (minus the Jump to Slide) on Enter of the first slide in the series of question. No luck.
Any help would be appreciated.
I am using version 6.0.1.240.
Thank you,
Susan

When debugging issues with variable values sometimes the only way to see what is going on is to set up text captions that display a readout of the current variable values at any given slide.  You can add these captions to Master Slides if using them.  Or just add them to the starting slides and set to display for Rest Of Project.  Either way, you need to be able to see what the variables are set to at any moment.  Then you may find that what you thought was working isn't, and what you thought wasn't working is.

Similar Messages

  • I am having trouble with resetting my ipad mini. I have been having it on reset for 2 hours already and its still on the same spot and not moving anywhere. How long does it usually take to restore settings?

    Anyone having same issue as mines please help me put. I am having trouble with resetting my ipad mini. I have been having it on reset for 2 hours already and its still on the same spot and not moving anywhere. How long does it usually take to restore settings? And how can i exot put of ot from restoring anymore?

    This is how you Reset  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    Are you trying to do a Restore?
    Restoring iOS software
    http://support.apple.com/kb/ht1414
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
    If you can’t update or restore your iOS device
    http://support.apple.com/kb/ht1808
     Cheers, Tom

  • Trouble with session variables

    Hello, I am a user of cf for a number of years, but only
    lately as of last week have I had the opportunity to work with CF
    8.... wow the changes are quite intimidating. But none the less
    press on is my thought, so now my trouble. Thing I did was to start
    using application.cfc vs application.cfm, as it would appear that
    is how things have come to pass. So I looked around and found this
    code to set session management:
    <cfcomponent output="false" hint="Handles application
    level events.">
    <!--- Set up the application. --->
    <cfset THIS.Name = "AppCFC" />
    <cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 60,
    0 ) />
    <cfset THIS.SessionManagement = true />
    <cfset THIS.SetClientCookies = false />
    <CFSET request.dsn = "wlaw" />
    </cfcomponent>
    My problem is that while I can define a session variable on a
    page that is not under the SSL cert, my session vars become
    undefined once I land on a page under SSL.
    Am I missing something? I dont recall this being a problem in
    the past. All help is appreciated.
    as to setting the var, it is done on an index page which
    calls another page in a different directory, but under the same
    server,.
    <cfset session.ref="foo">
    the only changes are that the result page or action page if
    you prefer is now under the ssl and the var becomes undefined.
    thank you in advance
    Mike Dooly

    is the object being put in session context serializable.. Also in
              other to avoid any generated classes issues delete all the classes
              whcih weblogic generates as part of deploying the application. That
              should atleast mitigate one explanation for your problem.
              Hope this helps
              ~a
              [email protected] (Gabriel Ornelas De Luna) wrote in message news:<[email protected]>...
              > Hello everyone,
              > I'm currently working with WL 6.1 and I'm having trouble with the
              > persistence of some session variables which are initially created
              > correctly on the server side, and they get lost (null) once the Web
              > clients need to access its value.
              > This is the error which is being written on a log file:
              >
              > <May 13, 2003 3:05:09 PM EDT> <Error> <HTTP Session> <Could not
              > deserialize session data
              > java.io.NotSerializableException:
              >
              > Things were woriking perfectly, but suddenly after bouncing the server
              > instance several times, in order to pick up the latest changes in my
              > classes, I started to get this error once the server tries to load the
              > jsp.
              >
              > JSP Code:
              > <%
              > Integer businessID = (Integer) session.getAttribute("business_id" );
              > Util.isCapitolBusiness(businessID.intValue())
              > %>
              >
              > I appreciate your help.
              > Regards.
              > g.
              

  • Trouble with resetting iPad 2 to factory setting without a passcode

    Hello,
    My mother passed away and I'm trying to reset her iPad2 to factory settings without a passcode so I can give it to my grandmother to use.
    I've got iTunes open and the iPad is in recovery mode. However, when I click "Restore iPad", it prompts me to open a file on my laptop. Not sure what it's looking for...
    Any idea what I'm doing wrong?
    Thanks!

    The following instructions from iOS: Forgot passcode or device disabled may help:
    Also, be aware that if Activation Lock is enabled, recovery mode will not disable that. iCloud: Activation Lock
    Use recovery mode
    Follow these steps if you never synced your device with iTunes, if you don't have Find My iPhone set up, or if you can't get to your own computer. You'll need to put your device in recovery mode, which will erase the device and its passcode. Then you'll restore your device as new or from a backup.
    Disconnect all cables from your device.
    Turn off your device.
    Press and hold the Home button. While holding the Home button, connect your device to iTunes. If your device doesn't turn on automatically, turn it on.
    Continue holding the Home button until you see the Connect to iTunes screen.
    iTunes will alert you that it has detected a device in recovery mode.
    Click OK, then restore the device.

  • Having trouble with using variables in functions and after functions..

    Morning,
    I have simplified this, as it represents the core of what’s I obviously don't know how to do. 
    Problem:
    Say I populate that variable by reading in a list if IP addresses from file, finding the line that matches the hostname and place that string into the $IPAddress variable for use later throughout the script.   I did not run into a significant problem
    until I decided to convert the routine of looking up the IP address and populating the variable into a function.   As soon as I made it a function, and called that function, the $IPAddress variable only had the data in it until the function completed. 
    Once the function had done its work, and had placed the data into the variable, I expected that “new” data to be available after the function had completed..in that variable.  But it’s like the $IPAddress variable in the main script is a totally
    different data then the variable with the same name that’s used within the function. 
    So I think this demonstrates some of what’s kicking my butt.. 
    $IPAddress = "This is the wrong data”
    Function TestFunction () 
    $IPAddress  #call to display the contents of the variable at the start of the function. 
    $IPAddress = Read-Host -Prompt "Please enter the text ‘Goober’" 
    $IPAddress   #call to display the contents of the variable at the end of the function. 
    TestFunction
    $IPAddress ​
    The output I get is: 
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    This is the wrong data
    Huh? 
    I had expected:
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    Goober
    What good is the repeatability of a function if it’s output is lost? 

    THis seems to work.. IS there any reason NOT to do this?
    $Global:IPAddress= "This is the wrong data” #"
    Function TestFunction{
        Write-Host $IPAddress-fore green
          $host.ui.RawUI.FlushInputBuffer()
         $Global:IPAddress =
    Read-Host -Prompt
    "Please enter the text ‘Goober’"
        return$Global:IPAddress
    TestFunction
    return$Global:IPAddress

  • Trouble with evaluating variable

    I'm having a problem using a variable and evaluating it in a package and created a simple example to see what was happening.
    1. Created a project variable; type = numeric
    2. Created a package with a couple of steps:
    a. First step sets the variable to zero.
    b. Next step increments it by 1.
    c. Next step evaluates whether the variable is greater than zero.
    d. Final step sends me one email message if value > 0; if not it sends me a different message.
    When I execute the above package everything works as I would expect. The value of the variable at the end is 1 and I get the email I'm expecting.
    I then moved the step that increments the variable (2b) into its own package. I then replaced step 2b with a step to execute the scenario which updates the variable. Now when I run the package I can see that the value of the variable at the end is still 1; however, the process now takes the branch in 2d for when the variable is NOT greater than zero.
    Is this just how ODI works or am I missing something? Can you not set a variable in one scenario and then evaluate it from the called scenario? Is it a scope thing? In my example the interfaces/packages/scenarios/viarables are all in the same project.
    Thanks.

    Actually, each odi SESSION keeps its own variable values.
    So, when you execute a child-scenario, you must pass the value of the variable from master package to child scenario.
    To do that, you must :
    1) enter the name of the variable in the tab called "additionnal variables" of the step
    2) put the variable in the child package in DECLARE mode

  • Trouble with private variables

    I have an XML parser running inside a GUI. my problem is that I have the actual parse command inside the actionPerformed method, so that when the user specifies their search conditions, those entities that match those conditions will be the only ones returned from the parse. My problem is that although I have the first thing happening when you hit the search button is to grab the contents of the search fields, the first thing that happens is the XML file is parsed, resulting in a NullPointerException when the parser tries to compare data with the search conditions, which is says are not set. I've already made the strings that will contain the data class-wide variables, but that didn't work. I have found that the variables are set inside the actionPerformed function, but once control leaves that function to the parser, they're no longer set, as if they have been wiped out of scope. any suggestions??

    okay, It is a map with a rubber-banding box for selecting latitiude-longitude coordinates. I have, inside the actionPerformed method, a utility that copies the values inside the textfields into String variables. these variables are declared as private members of the class that both of these methods belong to. I have it set up so that it is supposed to pull the value of the textfields into the strings BEFORE it parses the XML file. I even have the parsing of the XML file inside a finally clause and the setting of the variables in the try, so it's supposed to pull in those variables first no matter what, and it still refuses to get the values.

  • Trouble with float variables

    Hello!
    I'm taking my first java class, and having some trouble. Our assignment is to "change your program so the variables you used to represent the x & y coordinates are declared as the float data type and change their default values to floats. Use the cast operator in your program so your program compiles and the washing maching displays on the screen."
    But, when I changed the variables from "int xval=150" to floats, it won't compile. Anybody have any thoughts? Here's my code:
    public class applet1 extends Applet {
    public void paint ( Graphics g ) {
    float xval=150.0f;
    float yval=150.0f;
    g.drawString ("Pete", 10, 10 );
    g.drawString ("Assignment3 September 18, 2002", 10, 25 );
    g.setColor(Color.white);
    g.fillRect(xval - 150,yval - 150,350,350);
    g.setColor(Color.black);
    g.drawRect(xval-150,yval - 150,350,350);
    g.drawLine(xval - 150,yval - 120,xval + 200,yval - 120);
    g.fillOval(xval,yval - 145,20,20);
    g.fillOval(xval - 105,yval - 145,20,20);
    g.fillOval(xval + 100,yval - 145,20,20);
    g.setColor(Color.lightGray);
    g.fillOval(xval - 100,yval - 100,250,250);
    g.setColor(Color.black);
    g.drawOval(xval - 100,yval - 100,250,250);
    g.setColor(Color.white);
    g.fillOval(xval - 90,yval - 90,230,230);
    g.setColor(Color.black);
    g.drawOval(xval - 90,yval - 90,230,230);
    g.setColor(Color.gray);
    g.fillRect(xval + 170,yval - 110,15,25);
    g.setColor(Color.black);
    g.drawRect(xval + 170,yval - 110,15,25);
    g.drawString ("Whirlpool", xval - 10, yval - 105 );

    You can't use floats when the method requires ints; cast is needed.

  • Trouble with date variables

    I have an Oracle Source database and a SQL Server Target database. I need to do the following:
    1. Get Max Date from target SQL Server table and assign to a variable
    2. Get Max Date from source Oracle table and assign to a variable
    3. Create a filter on Oracle source table that includes the statement "Prod_Date >= #Target_Max_Date - #Source_Max_Date"
    Variables are Global and are of type "date". My test using one or both variables returne the error: "ORA-00911: invalid character". I know if I write a sub-query to test this in TOAD it works (ie: where Prod_Date <= (select max(Prod_Date)...."
    Prod_Date is obviously type "Date".
    Suggestions anyone?

    Where in operator do I check the format of the date?
    Also, I have tried using the following formatting:
    Prod_Date >= Prod_Date - ('#FDC_WELL_PROD_EST_Max_Date' - '#Well_Prod_Daily_Max_Date') - 45
    Result: ORA-01722: invalid number
    A date is a number, so any ideas why the variable is being considered a number?
    and
    Prod_Date >= Prod_Date - (TO_DATE('#FDC_WELL_PROD_EST_Max_Date','DDMMYYYY') - TO_DATE('#Well_Prod_Daily_Max_Date','DDMMYYYY')) - 45
    Result: ORA=-01858: a non-numeric character was found where a numeric was expected.
    In this scenario, it would seem we are trying to convert a date to a date?
    Appreciate your responses.
    Edited by: Becker on Jul 24, 2009 7:13 AM

  • Trouble with Environmental Variables

    I am having a heck of a time setting the path varialble for J2skd1.4.0. I am using XP home edition and this is the path %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;c:\j2sdk1.4.0\bin. Is that correct? Thanks in advance for the assistance. I should say that I have rebooted after attempting to update the path, and the java text files are in the same root directory as j2sdk1.4.

    What happens when I try to run javac is that I get the message: 'javac' is not recognized as an internal or external command, operable program or batch file. I have not set the classpath yet, but in the past the program seemed to work without it.

  • A little bit of help with Bind variables please

    Hi,
    I am having a bit of trouble with bind variables I have been looking at the Dev guide and the forum to try and achieve this and it is still not happening for me, could anybody please help or point me in the right direction:
    I have created a simple PersonVO with the basic query:
    Select distinct full_name from xxml_people where person_id = :1
    In the PersonVOImpl.java I have added the method:
    public void initQuery(String personId)
    Number person = null;
    try
    person = new Number(personId);
    catch
    (Exception e){}
    setWhereClauseParam(1,person);
    executeQuery();
    Then in the PersonAM I have added the method:
    public void initPersonQuery(String personId)
    getPersonVO1().initQuery(personId);
    I then call this method in my processRequest section of my page controller:
    PersonAMImpl am = (PersonAMImpl) pageContext.getRootApplicationModule();
    String personId = "581";
    am.initPersonQuery(personId);
    When I try and run this I get the error:
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT distinct full_name from xxml_absence_calendar where person_id = :1
    java.sql.SQLException: ORA-01006: bind variable does not exist
    Am I binding the variables correctly? Or am I making some stupid mistake?
    I am ultimately looking to create a messageChoice where the logged in user will see a list of all organisations underneath him and the one level above. I plan to do this by passing the User’s Organisation name into a VO query using the organisation as a Bind Variable. I think once I have worked out how to bind variables this should be straight forward.
    Many Thanks

    Even though the parameter binding values may be same, you should never use the positional param more than once. So always go for the format
    select distinct full_name from xxml_people where supervisor_id = :1
    UNION
    select distinct full_name from xxml_people where person_id = :2
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Hi FuzzyDunlopIsMe,
    Welcome to the Support Communities!
    It's possible that resetting your password multiple times has triggered this security.  Click on the link below for assistance with your Apple ID Account:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Here is some additional information regarding your Apple ID:
    Apple ID: 'This Apple ID has been disabled for security reasons' alert appears
    http://support.apple.com/kb/ts2446
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Click on My Apple ID to access and edit your account.
    Cheers,
    - Judy

  • HT3180 Anyone having trouble with Netflix not showing up in the internet menu?  I am trying to do a reset, but it says it can't download latest updates try again later.

    Anyone having trouble with Netflix not showing up on the Internet Menu?  I have tried to do a reset and then restore, but it says that "the latest update download cannot be done at this time, try again later"

    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Open iTunes.
    Select your Apple TV in the Source list, and then click Restore.

  • I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • Having trouble with the security questions for iTunes.  Tried to reset them, but the mail from Apple never comes . . .

    Having trouble with the security questions for iTunes.  Tried to reset them, but the mail from Apple never comes . . .

    You need to ask Apple to reset your security questions; ways of doing so include clicking here and picking a method for your country, and filling out and submitting this form.
    (96290)

Maybe you are looking for

  • Issue with LaunchDaemon After Upgrade to 10.7.2

    I've installed PostgreSQL from source, which has been working great ever since Leopard. I've just now run into an issue after the 10.7.2 upgrade where the LaunchDaemon fails to start PostgreSQL. Here's the contents of the LaunchDaemon: https://gist.g

  • How to and the proper way of Scheduling

    Hi Everyone, I looking forward to put on scheduling for some files that I have uploaded and I wanted to confirm before doing if it is alright what I am planning to do. I am basing my scheduling on: http://www.oracle.com/webfolder/technetwork/tutorial

  • Adobe Premiere Elements 10 kann kein neues Projekt anlegen. Es stürzt sofort ab.

    Adobe Premiere Elements 10 konnte erfolgreich installiert werden. Doch beim anlegen eines neuen Projektes kann zwar noch der Name eingegeben werden, aber wenn bei „Speichern in:" auf „Durchsuchen" geklickt wird, öffnet sich ein Fenster: „Adobe Premie

  • Mac Pro GeForce GT120 Unable to select 1680 x 1050 resolution

    Hi all - I've got a brand new Mac Pro with current OS on it. It has a Geforce GT120 video card, and I've hooked up an NEC 203wxm monitor using a Mini Display Port to VGA adaptor. Now, I can't select the native resolution of the display (1680 x 1050)

  • Default doc type for ME59n

    Hi All, I want a doc type to come by default in ME59n how to make this setting? I have tried in SPRO>MM>Purchasing>define default values for doc type but its not possible there for ME59n. Or putting in the other way how does the system takes document