Captivate 7 cmi.exit value to "suspend"

How do I get Captivate to send the cmi.exit value as "suspend" instead of "normal" to the LMS? I have the "Set exit to normal after completion" option unchecked in the LMS Advanced Settings dialogue box but that does not seem to work. Basically after a user has taken the course I need them to be able to review the quiz via the LMS but I do not want them to be able to review the quiz using the review feature in Captivate and have turned off the "review quiz" button as it shows the correct answers.
Thanks

1.  Create a button in Captivate and assign a javascript call to "MyExit()"
2.  Create a .js file called CourseExit.js.
3.  Place the following code into that file.
function MyExit()
  var SD = window.parent;
if (blnReachedEnd == false && confirm("Would you like to save your progress to resume later?")){
SCORM2004_CallSetValue("cmi.exit", "suspend");
SCORM2004_CallSetValue("adl.nav.request", "suspendAll");
  else{
SCORM2004_CallSetValue("cmi.exit", "");
SCORM2004_CallSetValue("adl.nav.request", "exitAll");
Unload(true);
4.  Place the CourseExit.js into the "assets/js/" in the published folder
5.  Add "<script language="JavaScript1.2" src="assets/js/CourseExit.js"></script>" to the html file that was output on the publish.
I was able to set this up on the set up files on the local hard disk but so all I had to do was create a button and add the "MyExit()" code to the button, but when the next update came out it reset the hard disk files.  So, I have just resorted to updating the output file as seen above.
Hope this helps.
Garrett

Similar Messages

  • Process exit value

    Hi,
    Does anyone know what exit value of 18 mean? I was calling Runtime.exec() to execute an external program and a call to a waitFor() method returned a value of 18. How do I find out what this means? I am running this under windows XP. The code normally works fine, in fact this was the first time that I saw it returning error code other than 0. This happened several times yesterday but running it today seems to be OK again... Any help will be greatly appreciated...

    thats a windows question. and its better answered by
    google.
    http://www.google.com/search?hl=en&q=windows+%22exit+c
    odes%22
    http://www.hiteksoftware.com/knowledge/articles/049.ht
    m
    18 There are no more files.Um, yeah. What he said.
    (Faster than I and a more useful answer. Bloody kids these days.)

  • Getting an exit value from a program called thru a shell script

    how do i get the correct exit value always from a program called thru a shell script
    the getExitValue of the process works fine someitmes but not always ...
    Ex: write a pgm which sleeps for 5 secs & returns with exit(100).try to invoke this thru a script & try to run this script from Runtime.getRuntime.exec(..)
    ...the exit value is not same as 100.(it works if the sleep is not given though !!)
    can nebody help??

    ive done that ...see the sample code for ex..
    public void execute()
                   try{
                             Process program=Runtime.getRuntime().exec(cmd);
                             printOutput(program.getInputStream());
                             try
                                  program.waitFor();
                             catch(InterruptedException e)
                                  System.out.println("Command Interrupted: " + e);
              System.out.println("Error status : "+program.exitValue());
                        catch(SecurityException e)
                             System.out.println("Error executing program "+e);
                        catch(IOException e)
                             System.out.println("Error executing program "+e);
    ....

  • Command exit value 1?

    The following piece of code produces an exit value 1:
    Process proc = rt.exec(cmd);
                    int exitVal = proc.waitFor();
                    System.out.println("ExitValue: " + exitVal);I know that an exit value 1 means it was unsuccessfull but does anyone know in better detail what that exit value means?
    I assume the problem is caused because I am not waiting long enough for the previous process to run, does anyone know a java command which will cause the program to wait for 20 seconds?
    Thanks.

    ... does anyone know a java command which willcause the program to wait for 20 seconds?
    Thread.sleep(20000);see the API documentation.Thanks for that.
    As for the errorlevels, my program is attemting to run java filename from dos, I have done this successfully elsewhere in the program but for this perticular one im getting the error.

  • Captivate 7 - The Exit Bug and a Solution

    Hey Everyone,
    I wanted to take a second and share some good information I found in regards to SCORM and the Exit functionality in Captivate 7. Below is the blog post that shows how to make the Adobe Exit functionality "SCORM Compliant" and solved my issues when uploading my project and getting them to exit. Hope this helps
    Captivate 7, Exit Bug and a Solution
    Several of our Inquisiq R3 users have alerted us to the fact that courses developed with Captivate 7 published to HTML5 and SWF do not close properly when using the “Exit” button, forcing the user instead to manually close the browser window by clicking the “X” in the upper-right corner of the browser window.
    Through our investigation into this issue, it appears that the process that Adobe has implemented when clicking the “Exit” button is to simply attempt to close the content window and rely on the LMS to capture and commit the session data. Nowhere did we see that the content was actually calling the “LMSFinish()” [SCORM 1.2] or “Terminate()” [SCORM 2004] methods in the LMS’s SCORM API to commit the lesson data to the LMS as required by the SCORM specification.
    Adobe uses their own defined function, “DoCPExit,” to close a lesson window.  This method contains a “window.close()” call and additional logic to “bubble up” the command through the frame parents (if they exist and also contain the “DoCPExit” method - presumably because they would also be Adobe-published content files within your package).
    There are several flaws to this approach.
    By not calling “LMSFinish()” or “Terminate(),” the content is, by definition, not SCORM conformant.  Part of the minimum requirements for conformance are that the content calls the initialization method “LMSInitialize()” in SCORM 1.2 or “Initialize()” in SCORM 2004 and the  termination method “LMSFinish()” in SCORM 1.2 or “Terminate()” in SCORM 2004. The LMS is not required to clean up the data left behind when the content fails to make this call. So if your LMS doesn’t take this additional step (of setting ‘LMSFinish’ or ‘Terminate’ if the lesson does not), your data will be completely lost…i.e. no record of you taking the lesson will be recorded.
    The call to close the browser window will fail if the LMS is running the content within a frame or iframe. Since the SCORM specification allows content to be launched in frames or iframes (in addition to new browser windows), lessons need to be able to accommodate this scenario. Even with the “bubble up” logic, once the call reaches the top most content window, and the next parent window in line is the LMS container page, the call will no longer be passed and a “window.close()” call will be fired within the framed page.  When this call is made, nothing will happen as a framed page cannot close the browser window using this command. Through our investigation, we’ve learned that at least 4 other well-known LMSs have experienced this particular issue.
    Ironically, the solution that we’ve discovered is not only SCORM conformant, but also very simple and follows what we would consider to be SCORM “best practices”.  The foundation and logic for the solution is already contained within the published Captivate files (and it is the same solution whether you publish to SCORM 1.2 or SCORM 2004).
    We simply modify the “DoCPExit” method that is contained within the “Utilities.js” file to call the “Finish()” method.  Just replace all the code appearing between the “{“and the “}” as you see here:
    function DoCPExit(){     Finish();
    The “Finish()” method that we have inserted is, as mentioned, already contained within the published Captivate files and contains the logic to properly set the exit parameters and correctly identify whether the content is SCORM 1.2 or SCORM 2004; it will therefore make a call to the correct close method (“LMSFinish()” or “Terminate()”) accordingly.  Once the LMS has received this command, it should take care of removing the content properly, leaving no need for any “bubble-up” logic or window close calls within the content code.
    Overall, if the lessons you develop with Captivate 7 work as expected and required in your LMS, there is no need to implement this change. However, if your lesson’s Exit button is not working as it should, and/or you are losing progress and status data when closing the lesson, the fix described here should resolve all those issues.
    The biggest issue here is that since we’re changing published code, the next time you update and publish that same Captivate project, you have to remember to change that published function code AGAIN, as Captivate will simply publish the default code.
    We have been in touch with the Captivate team to discuss this problem and they are investigating. We would hope a patch to address this flaw would be released in the near future
    All credit of this fix goes to http://blog.icslearninggroup.com/2013/10/captivate-7-exit-bug-and-solution.html

    Try clearing out your project cache (Preferences > General > Clear Cache) then republish using the option to Force Republish All Slides.
    If that doesn't resolve the issue, you may be seeing the early stages of project file corruption.  Check the suggestions in this post about troubleshooting issues where you may need to copy all slides to a new blank project shell to try and strip out corruption:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/basic-troubleshooting-tech niques

  • Catching System.Exit(value) in a unix script

    I am migrating a java application from Windows to Unix, where on the Unix environment it will be run under a batch scheduler.
    I am trying to figure out how to get Unix script 'visibility' to the contents of system.exit().
    At program completion, system.exit is called with either a 0 (all's cool) or -1 (this dog won't hunt).
    I cannot figure out how to get that value communicated back to the invoking script, which currently looks something like:
    cp=<classpath>
    rm -f /staging/*
    $JAVA_HOME/bin/java ........
    rc=$?
    <if 'rc' = 0>
    { :perform this }
    <if 'rc' = -1>
    { :perform this instead }
    Any suggestions?

    rc=$? suggests it's Bourne shell you're running the script with?
    if [ $rc .eq. 0 ]; then
    echo "Bingo!"
    else
    echo "Oh shit..."
    fi
    Better yet, do "man sh" from a unix command prompt -- it gives you the full scoop.

  • Over-writting Customer Exit Value

    Hi,
    I've a "customer exit" variable 'Z1', which is allowed "ready for input" as well. Z1 is based on 0FISCPER and I set the variable to current date using customer exit in I_STEP = 1.
    Based on the value contained in Z1, I calculate date ranges for two other customer exit variables 'Z2' and 'Z3' in I_STEP = 2, to make default criteria for report. And reports shows values of Z1, Z2, and Z3 in each column respectively.
    As Z1 is "ready for input", it allows user to enter value and change shows in Z1 column but Z2 and Z3 still being calculated on initial value of Z1.
    Please let me know how it is possible to over-write the initial value? Process flow would be: if user enters any value in Z1 it should ignore the initial values set by customer exit.
    Your urgent help would be highly appreciated.
    Regards,
    Shabbar

    Ali,
    You are on the right path. Calculate the default value of z1 in i_step = 1, and then calculate z2 and z3 in i_step =2. If the user enters the value , then z1 will have the user value.
    -Saket

  • System.exit(VALUE) and Windows 98?

    Has anyone got System.exit(integer) to return a value other than 0 under Windows 98?
    Regardless of what integer I enter as an exit code, java.exe always seems to return 0. This does not seem to be the case under Windows NT, where the correct exit code is passed back.
    Is anyone aware of this problem/found a workaround?

    I found the same behaviour of Java between NT 4.0 SP 4 and Windows 98.
    Are you sure you get the exit code right in the dos box?
    %ERRORLEVEL% is NT specific, I think.
    In normal DOS you can only ask e.g.:
    if ERRORLEVEL 3 goto three
    and this will jump to label
    :three
    if the exit code is >= 3 !!!
    Test your program by this bat file:
    java ...
    if %errorlevel 6 goto x6
    if %errorlevel 5 goto x5
    if %errorlevel 4 goto x4
    if %errorlevel 3 goto x3
    if %errorlevel 2 goto x2
    if %errorlevel 1 goto x1
    goto x0
    :x0
    echo was: 0
    goto end
    :x1
    echo was: 1
    goto end
    :x2
    echo was: 2
    goto end
    :x3
    echo was: 3
    goto end
    :x4
    echo was: 4
    goto end
    :x5
    echo was: 5
    goto end
    :x6
    echo was: 6
    goto end
    :end
    echo End.
    You see:
    7 or higher goes also to :x6

  • Send Captivate user variables and values to the LMS ?

    Hi all. has anyone got a clever way to send a bunch of Captivate user variables and their values to an LMS (Moodle) so that they end up recorded as part of the SCORM course results or do these need to be explicitly part of a Quiz ? I think that I can setup where I get these values from the Learner so that they take the form of a Quiz (even though there is not a right answser) and set the the LMS settings to record interactions and scores. But is there an easier way to send them via LMSSetValue or even using a widget ?
    Fergal

    You can do it, but it will definitely not be the easiest way to achieve the objective. The accessibility of your web form will determine what you can and can not do.
    The first issue would be populating the field of the form, and that can be achieved by actually re-generating the form programmatically and assigning a value to the html value tag for that field.
    The second issue of "click on the button" is not trivial. If you're in the windows environment you will have to get into intercepting windows messages from the message queues and get the handle of the web browser window and after finding all the relevant information that will change every time this process is performed, is in my opinion not worth the effort.
    I would approach this di
    fferently in looking at what you are trying to achieve in the first place and that is to do directly with the data what the form would've done.
    Forms will either send some e-mail to someone using the submitted data or submit information to a database or write it to a file. If you have a cgi script behind the form you can pass the information directly to the script rather, i.e call the scrip directly in the same way the form would've using your program and skip the form.
    If you can be specific about your objectives and give me details about the forms and detail on the web server type and the capabilities of handling various types of cgi scripts I can give you detailed advice and pointers towards achieving the solution.
    Questions you need to answer:
    What would the form do with the data? (mail, file, database etc.)
    How many fields do you need to submit?
    What type of web server are you running? (IIS, Apache etc.)
    Were is the form hosted, on the www
    or on an intranet?
    Is it accessible to you to change/add scrips to it?
    Hope this helps.
    Best regards
    Jattie van der Linde
    Engineering Manager, Software & Automation
    TEL Magnetic Solutions Ltd

  • Captivate 5 effect - exit top right

    I created a blank project, imported an image, and attempted to use the special effect of exiting to the top right of the slide. When I play the project, the image exits to the bottom right. I have tried the other effects and they enter and exit as they are described.
    I have also installed Captivate 5.5 to test it and it fails the same way.
    I have had several colleagues try this and all receive the same result. Would someone please test this to see if the same results are received?

    Hello,
    Just checked Exit, Fly Out to Top Right and it worked OK. Could you click on the small number (bottom right) of the object when the effect is applied and check the motion path. In my copy it looked like this screenshot and clearly goes out of the slide to the Top Right
    Or are you pointing to another effect?
    Lilybiri

  • Installation Error: Exit Value 204

    Hi,
    I am getting this error while going for the basic installation of webcenter. It appears during the framework installation.
    Error
    --> Process (index=1,uid=1900284854,pid=3380)
    failed to start a managed process after the maximum retry limit
    Log:
    E:\product\10.1.3.2.0\OracleAS_1\opmn\logs\\default_group~OC4J_WebCenter~default_group~1.log
    ExitValue: 204

    Hi,
    Can you give us some more information, like the contents of the mentioned logfile? This may give more insights.
    Jeroen van Veldhuizen

  • Resume on exit Captivate/Presenter

    Help wanted.
    Currently I am trying to set up E-learning courses with both Captivate 5 and Presenter 7 to be presented in a LMS (It's learning). Since I am rather new to this field I made some experimental projects in Scorm 1.2 format that I tested in the LMS. The test case for Presenter works fine in relation to reporting and resuming the lessons. However the test case (a different design) for Captivate gives me problems with both the reporting and the resume on exit.
    Evidently the most simple solution is to use Presenter only. However I have not been able to insert user interactive Flash content in the Presenter project. A feature that is possible in Captivate. For the courses I'm setting up this user interactive Flash content is necessary.
    I have been trying to find individual differences in the two different scorm packages. Tried to survey differences in the HTML and JS files but have not come to a working solution.
    Is there anybody out there, experiencing the same problems? Even better someone with a solution to my problem?
    TIA for any answer. 

    1) did not resume on the last viewed page:
    Is 'always send resume data' (or something like that) checked in the Preferences for the project?
    Technically, a lesson should set the 'cmi.exit' value to 'suspend' in order for an LMS to send back the 'lesson location'. Captivate 4 and previous did not do that, not sure if CP5 does. If a lesson does not set cmi.exit to suspend then, technically, the LMS should not return lesson location. Some LMS products enforce that, some do not. In our LMS, there's an option to 'always send resume data' and ignore the cmi.exit value for exactly that deficency in some authoring tools.
    2) did not report project  progress:
    That's a bit more loose - what do you expect to be reported as 'progress'. 'cmi.progress_measure' support is not always supported by an LMS and I doubt any version of CP reports that. However, CP will report a quiz percentage...and every LMS should support that. To see a quiz score percentage, you must have 'scored interactions' somewhere in the lesson for CP to evaluate responses and determine a score.
    3) no score;
    Same as above, regarding score/percentage.
    Just post to this forum or, better, then Captivate forum for future inquiries. Lots more folks to respond in these forums than just me alone!
    Erik

  • Captivate Resume Course - not at last slide

    Hi
    When a user exits our course in captivate and then resumes at a later time it asks if they want to continue where the left off however it always begins again at the start of the chapter in which they were in.  For example, if they were on slide 5 of chapter 4 it would start them again at slide 1 of chapter 4.
    Is this a setting that I need to change?
    Thanks,

    Hello,
    Welcome to Adobe Forums,
    Captivate should do this by default, unless you check the 'Never Send Resume Data' option chceked in the Quiz preferences section.
    However, if it does not, that is likely because your LMS is expecting the lesson to set the cmi.exit value to 'suspend'. Such a setting tells the LMS to send the last-session's data back to the CP lesson the next time it's launched so it can resume.
    You can also Go to Project > Skin Editor and tick the box there for Self-Paced Learning.
    That will enable local bookmarking that should work if the user is just playing the course modules from a local drive.  However, be aware that this setting may conflict with the Resume Data bookmarking that is sometimes activated (by leaving the Never Send Resume Data checkbox unticked) so as to use bookmarking with SCORM-compliant courses served from an LMS.
    Regards
    Himanshu

  • Presenter 5 and LMS

    We use both Adobe Captivate 4 and Presenter 5 with our LMS - Taleo. We only have intermittent problems with participants launching the captivate swf files from the standard Captivate HTM page. We can usually solve the issues on an individual basis. With Presenter, however, we are having significant issues with the content not loading. We use the SCORM.HTM file produced by presenter to launch the content (and we upload all of the files in the "package" created by presenter). Many (but not all) participants get a new browser window with nothing but a white screen and the word done in the lower corner. Can anyone tell me what is different about how these two HTM pages "load" content and why one will load the SWF file and the other will not? Is there some scripting missing?
    This was a problem previosly posted with no solution and I am having the exact same solution now. The problem "follows" the employee no matter what computer he is on. I have had him test the assignment on 4 different computers and yet he has the same issue consistantly. We have updated flash, adobe reader, cleared cache restore IE to defaults, and whatever else we can and still no solutions.
    Does ANYONE have any suggestions?
    Thanks!

    1) did not resume on the last viewed page:
    Is 'always send resume data' (or something like that) checked in the Preferences for the project?
    Technically, a lesson should set the 'cmi.exit' value to 'suspend' in order for an LMS to send back the 'lesson location'. Captivate 4 and previous did not do that, not sure if CP5 does. If a lesson does not set cmi.exit to suspend then, technically, the LMS should not return lesson location. Some LMS products enforce that, some do not. In our LMS, there's an option to 'always send resume data' and ignore the cmi.exit value for exactly that deficency in some authoring tools.
    2) did not report project  progress:
    That's a bit more loose - what do you expect to be reported as 'progress'. 'cmi.progress_measure' support is not always supported by an LMS and I doubt any version of CP reports that. However, CP will report a quiz percentage...and every LMS should support that. To see a quiz score percentage, you must have 'scored interactions' somewhere in the lesson for CP to evaluate responses and determine a score.
    3) no score;
    Same as above, regarding score/percentage.
    Just post to this forum or, better, then Captivate forum for future inquiries. Lots more folks to respond in these forums than just me alone!
    Erik

  • PeopleSoft ELM and Captivate

    Does anyone have experience with uploading Captivate project to PeopleSoft.  Our PeopleSoft admistrator is telling that PeopleSoft is not remembering where the Learner has left off.  I have ensured that in Project -> Advanced Interaction all of the buttons on reach slide are being reported on.  PeopleSoft is not remembering where the Learner has left off.
    Can anyone Help?
    Thanks,
    Bonnie

    You do NOT have 'Never send resume data' checked, right?
    One of Captivate's flaws is it doesn't set the cmi.exit parameter correctly. If it's meant to resume, it should set that parameter to 'suspend'. Technically, per SCORM, if the lesson doesn't set cmi.exit properly, the LMS should NOT give back resume data.... Few LMS products actually do this, so it's usually not a problem with Captivate...but if ELM is enforcing this and not giving the lesson back its suspend_data because the cmi.exit value isn't being set properly....it's really CP's fault....and unless there's a way to change that in the ELM LMS, there's probably nothing you can do about it (unless you can figure out how to make your CP lessons force the cmi.exit value to set correctly via custom code....?)
    I'm not guaranteeing this is the problem, but could be likely. I'm sure your ELM admin would like it to be ;-)
    Erik

Maybe you are looking for

  • Urgent: oracle.jbo.domain.Number Bug (continued I)

    Dear Shailesh and Raghu (JDeveloper Team): To catch your attention, I posted the topic here again: ------------------------------------------------------------------------------------------[original topic] We are developing a BC4J application for our

  • Content Server Check-in

    Dear All, Good day, I need help regarding content profiles for content server, I want to know if I can create a specific metadata filed related to specific area such as HR (empno, emp name, department, job title....etc), I don't want to make all the

  • Using table component,not binding

    Hi all, I've been searching info about using the table component , adding,deleting,etc programatically, not binding to a Database how the JSC tutorial works. The idea is simply: - add and remove rows when the user fills a textbox and push a button to

  • Time Machine deleting files on drive

    I have an external drive which had all of my photos stored on it. I then decided I would use this drive also for Time Machine. I have just gone to find my photo files and all that is on there is "bakups", I am so so hoping that I have not lost all my

  • Mail preview pane will not scroll down long messages.

    using mail 3.6 i use the preview pane to view all my messages. when attempting to scroll down a longer message, whether using the arrow keys, arrow buttons, or scroll manually, mail will "pop" the message back to the top. if i double click the messag