Flash/Javascript access of USER Variables

Hi all,
I've searched online many many times and have made many attempts in Flash and in Captivate 4, but to no avail, and I'm wracking my brain over it. By now I've almost given up on Captivate, since what has wasted so much time could have been done in a day or so using Flash to make the entire thing. I would like to avoid that though, since this is a University project, not a personal project.
I need to access USER created variables, both in Flash animations AND in Javascript (i.e. in the execute Javascript field under multiple actions). They need to be accessed this way since there's no default way to multiply variables or append strings of text to variables (things which as an experienced AS2 user I know should be very simple to do). Also, I want to be able to copy the contents of one (user) variable to another (system) variable later on (for LMS).
So say I have a user defined Captivate variable called 'userPath', and on a certain slide I want to multiply it by 5 in Flash or in Javascript (just an example).
How could I access it from Flash with AS2? (I've tried _root.userPath, _root.movie.userPath, no luck).
How could I access it from the Javascript? (I am comfortable with programming, but don't really use Javascript, so I may be having a problem with the notation).
Any help would be greatly appreciated, since I need to get this work done soon. Many thanks.

Lboro SB,
How familliar are you with AS3?  I would recommend altering the CaptivateMaintimeline.as file typically located at C:\Program Files\Adobe\Adobe Captivate 4\ActionScript 3.0.  You can write your custom functions in AS3 to do your multiplication or whatever and it will use this file to compile your Cp4 project.  Just make sure you're publishing your Cp4 project in AS3 in the project properties.  You could also add your function to the list of ExternalInterface.addCallback(... so that your function could be accessible from JavaScript.  Here's my custom function I've put in the CaptivateMaintimeline.as file:
/JBL: For External Interface setting any type of value
        public function jim_cpSetValue(variable:String, val):void
        //myTrace("cpSetValue variable1 " + variable + " ; val  " + val);
        var arr:Array = variable.split(".");
        var ref = this;
        for(var i=0; i < arr.length -1; i++)
            ref = ref[arr[i]];
        ref[ arr[arr.length -1] ] = val; // This works fine for numbers, booleans and strings
// JBL: adding callback to set variables in cp via JavaScript
ExternalInterface.addCallback("jim_cpSetValue", jim_cpSetValue);
If you want to do this in JavaScript, you need to get a reference to the Captivate main movie.  I do it like so:
    // Set objCaptivate in IE
    CaptivateObj = document.Captivate;
Then you can call your custom function
    //JBL:  Custom Function to set Captivate Vars via Javascript
    function setCaptivateVariable(myVariable, myValue)
        CaptivateObj.jim_cpSetValue(myVariable, myValue);
    //JBL:  Shortcut function for Getting values from Captivate SWF
    function getCaptivateUserVariable(n)
        return CaptivateObj.cpGetValue(n);
I also HIGHLY recommend a lightweight .js file by Philip Hutchison that can do much more located here.
Good Luck,
Jim Leichliter

Similar Messages

  • Issue with User Variable Due Shared Member Security Access

       Hi All,
    One of my client is using User variable in data form to define POV.
    Now if user has access to 2 member in the Dimension, he should able to see 2 member when he try to assign the value to this "user variable"
    but he can see some of the parent member name ,this parent name has only one child which is a shared member of the 2 base member for which he has access.
    For Example:
    Entity Dimension:
    E1 (user has access)
    E2
    E3(user has access)
    E4
    Alt_Entity
    Alt_Entity1E1 (sharedmember)
    Alt_Entity2E2 (sharedmember)
    Alt_Entity3E3 (sharedmember)
    Alt_Entity4E4 (sharedmember)
    User is able to see below members, when he try to assign value
    E1 (user has access)
    E3(user has access)
    Alt_Entity1
    Alt_Entity3
    Now if I add another member under this parent, than user are unable to see this parent member.
    For Example:
    Entity Dimension:
    E1 (user has access)
    E2
    E3(user has access)
    E4
    Alt_Entity
    Alt_Entity1
    E1 (sharedmember)
    E2 (sharedmember)
    Alt_Entity2E2 (sharedmember)
    Alt_Entity3
    E3 (sharedmember)
    E2 (sharedmember)
    Alt_Entity4E4 (sharedmember)
    User is able to see below members, when he try to assign value
    E1 (user has access)
    E3(user has access)
    Any idea?

    Sorry, but actually its the parent that needs tagging with "Never Share", not the level 0 member, so Alt_Entity1 and Alt_Entity2 etc, see Essbase DBA guide
    understanding Implied
    Sharing
    The shared member property defines a shared data relationship explicitly. Some
    members are shared even if you do not explicitly set them as shared. These
    members are said to be implied shared members.
    If you do not want a member to be shared implicitly, mark the parent as Never Share so
    that the data is duplicated, and is not shared. See Understanding Shared Members for an
    explanation of how shared members work.
    So in the example above
    Entity Dimension:
    E1 (user has access)
    E2
    E3(user has access)
    E4
    Alt_Entity
    Alt_Entity1 - Set to "Never Share"E1 (sharedmember)
    Alt_Entity2E2 (sharedmember)
    Alt_Entity3 - Set to "Never Share"E3 (sharedmember)
    Alt_Entity4E4 (sharedmember
    Thanks
    Anthony

  • Can JavaScript access JSP variable?

    Could we do this? Or, how could we have JavaScript access JSP variable?
    <%
    String fooBar = request.getParameter(......
    %>
    <script language="JavaScript">
    <!--
    if (fooBar  == ...) {
    -->
    </script>

    To access the variable in Javascript you'll have to
    write it out from the JSP. You'll need to do something
    like:
    <%
    String fooBar = request.getParameter(......
    %>
    <script language="JavaScript">
    <!--
    var fooBar = '<%=encodeQuotes(fooBar)%>';
    if (fooBar  == ...) {
    -->
    </script>You'll need to either make sure fooBar doesn't contain
    any quotes or write a function to replace each ' with
    \'.Thanks!
    That works perfectly, without encodeQuote() method in my current case.
    Thanks again. You ar a saviour.

  • Getting Flash form data as a variable?

    Hi,
    I really don't have any actionscript experience, so please
    bear with me!
    Is there anyway I can put an input box (like a form... you
    know) into my flash project and have the info entered in it stored
    as a variable? I need the user to be able to enter numbers and have
    the flash project accept them as variables.
    If I were doing this in Javascript, I would use parseint...
    something like: var n1=parseInt(n1.value);
    Now n1 is set to whatever number the user has put into the
    input box.
    I found that parseint also exists in actionscript, but it
    didn't seem to have the same usage. Is there any way I can do this?
    Or is it completely weird and impossible in Flash and I'm just
    being silly?
    Thanks

    Hi Freddy,
    If you know JS, then actionscript shouldn't be too hard for
    you to pick up.
    To achieve what you're asking, do the following:
    1. Place a textbox on the stage and in the property
    inspector, change the type to input text and give it an instance
    name of myText.
    2. Then, if you want to access the input data and manipulate
    it you can type var myVar = myText.text;
    This will create a string with the value myVar. If you want
    it to behave as a number, you could say myVar =
    Number(myText.text);
    Hope that gets you pointed in the right direction.
    Cheers,
    FlashTastic

  • Passing URL to user variable

    Hi there,
    I am currently doing a SCORM package which has to be multi language.
    The URL running the SCORM package defines www.myurl.com/?lang=EN or  ?lang=DE.
    Now I need the language value from the URl to jump inside captivate to the correct slides.
    I would do this using conditional actions.
    But to do so a user variable needs to be set with the language value from the URl.
    Does anyone know about an existing widget or any other way to fulfill this task.
    Widget has to be AS3 with Flash 9.
    (Flash 10 is not supported by the customer).
    Best wishes

    Moodle is multi-lingual.   There are hundreds of thousands of Moodle sites out there in all corners of the world.  How do they normally handle this multi-lingual course issue?  Do they use Groups, or Roles? I think there MUST be an easier way to accomplish your goal than going down the route that you have chosen.
    What you're doing is going to force you to use increasing levels of complexity, with more and more Advanced Actions, Variables, Widgets, or whatever.  It's going to become a nightmare to maintain all of that. Plus it will become an increasingly unworkable solution as soon as you get asked to add more languages.  You have double the download filesize now, what happens if you add a couple more languages one day?
    Can the users not simply select their site language preference in Moodle and use that in some way to filter the courses they have access to?  I would recommend you ask a Moodle developer about this as an option before investing too much time in your current solution.
    If it turns out Moodle customisation is impossible, then by all means try the Advanced Actions route.  But my gut feeling is that you're going to regret this one day.

  • Accessing a public variable between classes

    Hi there,
    I've got two classes running...one is a document class (EgoGame.as) and another is a class linked to several similar movie clips (Ball.as).
    I'm trying to access a public variable from Ball.as which has been declared in the doucment class EgoGame.as.
    When I run the test the outputs states the following...
    1120: Access of undefined property _ballPlaced.
    Here's my code.  What I'm trying to do is remove the event listeners from the Ball.as when the _ballPlaced variable is true, so that the user can't drag and drop the balls after they've been placed in a zone....any pointers greatly appreciated!
    Document Class
    EgoGame.as
    package
        import flash.display.MovieClip;
        import flash.display.DisplayObject;
        import flash.events.MouseEvent;
        import Ball;
        public class EgoGame extends MovieClip
            public var __zoneFull:Array = new Array(false, false, false);
            public var __ballPlaced:Array = new Array(false, false, false);
            public function EgoGame()
                ball0_mc.addEventListener(MouseEvent.MOUSE_DOWN, zoneEmpty);
                ball1_mc.addEventListener(MouseEvent.MOUSE_DOWN, zoneEmpty);
                ball2_mc.addEventListener(MouseEvent.MOUSE_DOWN, zoneEmpty);
                ball0_mc.addEventListener(MouseEvent.MOUSE_UP, zoneFill);
                ball2_mc.addEventListener(MouseEvent.MOUSE_UP, zoneFill);
                ball1_mc.addEventListener(MouseEvent.MOUSE_UP, zoneFill);
                ball0_mc.addEventListener(MouseEvent.MOUSE_UP, playMovie);
                ball1_mc.addEventListener(MouseEvent.MOUSE_UP, playMovie);
                ball2_mc.addEventListener(MouseEvent.MOUSE_UP, playMovie);
            private function zoneEmpty(event:MouseEvent):void
                if(event.target.hitTestObject(zone0_mc) && _zoneFull[0] == true)
                    _zoneFull[0] = false;
                    _ballPlaced[event.target.name.substring(4,5)] = false;
                else if(event.target.hitTestObject(zone1_mc) && _zoneFull[1] == true)
                    _zoneFull[1] = false;
                    _ballPlaced[event.target.name.substring(4,5)] = false;
                else if(event.target.hitTestObject(zone2_mc) && _zoneFull[2] == true)
                    _zoneFull[2] = false;
                    _ballPlaced[event.target.name.substring(4,5)] = false;
                else
                    event.target.x = event.target._startX;
                    event.target.y = event.target._startY;
                    _ballPlaced[event.target.name.substring(4,5)] = false;
            private function zoneFill(event:MouseEvent):void
                if(event.target.hitTestObject(zone0_mc) && _zoneFull[0] == false)
                    event.target.x = zone0_mc.x;
                    event.target.y = zone0_mc.y;
                    _zoneFull[0] = true;
                    _ballPlaced[event.target.name.substring(4,5)] = true;
                else if(event.target.hitTestObject(zone1_mc) && _zoneFull[1] == false)
                    event.target.x = zone1_mc.x;
                    event.target.y = zone1_mc.y;
                    _zoneFull[1] = true;
                    _ballPlaced[event.target.name.substring(4,5)] = true;
                else if(event.target.hitTestObject(zone2_mc) && _zoneFull[2] == false)
                    event.target.x = zone2_mc.x;
                    event.target.y = zone2_mc.y;
                    _zoneFull[2] = true;
                    _ballPlaced[event.target.name.substring(4,5)] = true;
                else
                    event.target.x = event.target._startX;
                    event.target.y = event.target._startY;
                    _ballPlaced[event.target.name.substring(4,5)] =false;
            private function playMovie(event:MouseEvent):void
                if (_ballPlaced[0] == true)
                    ball0_mc.gotoAndPlay(2);
                else
                    ball0_mc.gotoAndStop(1);
                if (_ballPlaced[1] == true)
                    ball1_mc.gotoAndPlay(2);
                else
                    ball1_mc.gotoAndStop(1);
                if (_ballPlaced[2] == true)
                    ball2_mc.gotoAndPlay(2);
                else
                    ball2_mc.gotoAndStop(1);
    Ball.as
    package
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        import flash.display.DisplayObject;
        import EgoGame;
        public class Ball extends MovieClip
            // public var _hitTarget:MovieClip;
            public var _startX:Number;
            public var _startY:Number;
            public function Ball()
                _startX = this.x;
                _startY = this.y;
                this.buttonMode = true;
                this.addEventListener(MouseEvent.MOUSE_DOWN, dragIt);
                this.addEventListener(MouseEvent.MOUSE_UP, dropIt);
            private function dragIt(event:MouseEvent):void
                this.startDrag();
            public function dropIt(event:MouseEvent):void
                this.stopDrag();
            public function lockBall(event:MouseEvent):void
                if(_ballPlaced[this.name.substring(4,5)] == true)
                    this.removeEventListener(MouseEvent.MOUSE_DOWN, dragIt);
                    this.removeEventListener(MouseEvent.MOUSE_UP, dropIt);

    every place you have a ball reference you can access the lockBall() method.  so, if ball0_mc is a Ball class member, you can use:
    ball0_mc.lockBall();

  • How do I access the DCJMS* variables in my response SOAP:Header ?

    Hi all,
    I have set up a sync / async Integration Process in XI
    This is initiated by a SAP R/3 transaction that calls a synchronous function to enter XI
    Once in the Bridge, a JMS receiver adapter sends out an asynchronous request message from XI to MQ
    A correlation allows the JMS sender adapter to return an asynchronous response message from MQ to XI back into my the Integration Process
    I have set up the JMS sender adapter configuration to return the DC (dynamic configuration) variables in the <SOAP:Header> of the XI response message along with the payload
    You can see that the DCJMS* variables are returned below
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Response
      -->
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30">
    - <SOAP:Header>
    + <SAP:Main xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" versionMajor="003" versionMinor="000" SOAP:mustUnderstand="1" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7">
    + <SAP:ReliableMessaging xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    + <SAP:HopList xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    + <SAP:RunTime xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    + <SAP:PerformanceHeader xmlns:SAP="http://sap.com/xi/XI/Message/30">
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSCorreleationID">40D982A0-B19D-11DB-9508-0002A5D5916B</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSTimestamp">1170297456940</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSMessageID">ID:414d5120514d4430312020202020202045c12b962001dd02</SAP:Record>
      </SAP:DynamicConfiguration>
    - <SAP:Diagnostic xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:TraceLevel>Information
    <b>Question</b>
    I want to access the DCJMS* variables but am not sure how to go about it as the
    variables exist in the <SOAP:Header>?
    I followed the SAP documentation to access adapter-specific attributes (refer to link http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm )
    I have used the following code to create a user-defined function for the accessing adapter specific attributes (similar to the link)
    public String Get_Msgid(Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
    (StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create
    ("http://sap.com/xi/XI/System/JMS","DCJMSMessageID");
    String jmsMsgID = conf.get(key);
    return jmsMsgID;
    <b>Question</b>
    Do I use message mapping to extract the DCJMS* variables?
    <b>Question</b>
    If so then which message is used for the source message so that I can access the <SOAP:Header>?  Eg do I use the response message type or is there a trick to accessing the SOAP:Header?
    <b>Question</b>
    Do I use the user-defined function (like above)?
    I performed the following steps
    •     Opened the message mapping in edit mode
    •     Created the user-defined function using the graphical editor
    •     Saved the message mapping
    •     I have not connected the user-defined function to any of the xml tags in either the source or target messages
    When I go to test the message mapping I am getting the following error
    Compilation process error : CreateProcess: null\bin\javac -J-Xmx256m @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/O1170817003886.txt @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/S1170817003886.txt error=2
    STACKTRACE:
    com.sap.aii.ib.core.mapping.exec.ExecuteException: Compilation process error : CreateProcess: null\bin\javac -J-Xmx256m @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/O1170817003886.txt @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/S1170817003886.txt error=2
    at  com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:207)
    at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:156)
    at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapService.java:361)
    at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCodeWithoutAndWithArchives(ServerMapService.java:301)
    at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:153)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    A thread in the SDN (Error while Activating Message Mapping, Posted: Jan 9, 2007 3:32 PM) suggests checking the java path on the XI machine
    This is JAVA_HOME=C:\j2sdk1.4.2_08 and seems ok
    <b>Question</b>
    Do you know why I would get the compilation error?
    Any assistance would be appreciated
    Regards,
    Mike

    Jin,
    My compilation issue has gone via a SAP recommendation to specify the JDK home directory in the instance profile
    Back to the mapping - I can now run my scenario
    <b>Source message</b>
    The response message has the following <SOAP:Header> from which I want to extract the DCJMSCorreleationID (note that it's misspelt)
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Response
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSCorreleationID">40D982A0-B19D-11DB-9508-0002A5D5916B</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSTimestamp">1170297456940</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSMessageID">ID:414d5120514d4430312020202020202045c12b962001dd02</SAP:Record>
      </SAP:DynamicConfiguration>
    <b>Grahpical mapping</b>
    LHS - Response message with occurrance 0..1 so it is not connected to my UDF
    UDF Get_Corrid with no inputs
    RHS - The UDF output is connected to the Acknowledgement msg tag <ACK>
    <b>UDF</b>
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
    (StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create
    ("http://sap.com/xi/XI/System/JMS","DCJMSCorreleationID");
    String Corrid = conf.get(key);
    return Corrid;
    <b>Target message</b>
    The idea is to copy the correlation id of the response message into the acknowledgement message.  But as you can see the result is NULL
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns2:AWB0020_MARKET_DATA_RESPONSE_ACK xmlns:ns2="http://awb.com.au/mq/tx/MarketData">
      <ACK>null</ACK>
      </ns2:AWB0020_MARKET_DATA_RESPONSE_ACK>
    Please advise
    Thanks Mike

  • I desperately need to access my User Library folder in Time Machine (Lion so = not visible).

    Hi. I installed Lion a few months ago and got a new external drive to back up Time Machine.
    Nobody told me the User Library would be made hidden in the new OS. I have been backing up regularly in the belief that all my work, settings and so on was safe.
    Yesterday my iMac (27" 2.8 Ghz Core it with 4 gib memory) suddenly went mad. Message saying finder had quit whilst trying to restore windows. Desktop was flashing, no icons clickable, no external disks readable. Could access some progs and terminal, but nothing else. Could not get into the history folder to trash various plists and so on as the folder is hidden and the alt Go wouldn't work. The Finder just wouldn't do anything.
    I have sorted it out BUT I have lost my address book entries, my browser booksmarks, my desktop shortcuts and my iCal entries. I need to access my User Library on my Time Machine. Is there a way?
    I cannot believe I have been religiously backing up my stuff but Apple has made it so I can't access my backup of one of the most important folders on my Time Machine???
    Is there anyway of getting into this from Terminal or something? I will never be able to get back all the bookmarks and stuff I've been researching for years. I have it backed up on two different hard drives, both of which have 'invisible' library folders. I have make the folder visible now, for future backups, but it's after the horse has bolted. I am furious, and just feel like bursting into tears because of all the time it's going to take me to get all my work back. I can't tell you how stupid this was, Apple.
    If someone could help I'd be really grateful. I've got older backups but they are so old they won't get back my recent stuff.
    Thanks.

    select Finder
    hole option key and select Go in the menu
    Select Library
    Enter Time Machine
    You should be seeing all the versions of you Library folder.

  • Can you submit a User Variable instead of the Captivate Quiz Score variable to an LMS?

    I am attempting to create two quizzes in a course that has branching.  I know that Captivate only allows for one quiz if you are using Question type slides, but I am using a simulation to check the knowledge of a process.  I want to report one of the simulation completions depending on which branch the user goes to (different branches for different products).  How or is it even possible to submit user variables in place of the Captivate Quiz Score variable, the time in the course variable, and the Pass or Fail status to an LMS?

    Sadly, I am using Captivate 5.5.  I was thinking it should be possible to use Javascript to be able to take a specific variable and submit it to the LMS in place of Captivate's Quiz variables.  I just don't know Javascript well enough to know how to do that.

  • Display selection of user variables later on in project - can't get advanced action to work

    Hi all,
    I'm working on a sales training with Captivate 5, based on PPT. I want to do the following, but can't figure out how to design the advanced actions to do it:
    The learner is asked to choose 1 of 3 products he wants to work with (ok, that's easy).
    For that product he's asked to provide 10 features in TEBs (so far so good, 10 user variables created for each feature).
    As a next step, he needs to choose the top 3 features with which he wants to work further. The chosen 3 display a check mark when the respective clickbox is clicked, when he chooses the 3rd, a 'done' button & a caption 'click here...' appear. Advanced actions working ok, see below what they look like. If there's an easier way to do that, please let me know - took me hours to get this to work!
    One issue I face is, that I don't know how I could allow the user to change his choice, i.e. 'un-check'. Currently, checked is checked - no way for the learner to change his mind.
    But even more importantly:
    I need to display the content of the 3 checked/selected variables at a later stage in the project. So, say the learner choses feature 2, 3 & 6 as the most important by checking the respective clickboxes behind the displayed variables (v_neo_f1 to f10) - how do I need to change my advanced action, so that I can generate variables v_neo_chosen1 - 3?
    As you see in the screenshots above, I've tried to do that by creating an additional variable for each of the 10 features and assigning the value 1 when it's checked. That way I could check later in the project, which of those variables has the value 1 - but I don't know how to link this variable (v_neo_f1_check) then to the variable for the feature in which the text I need to display is stored (v_neo_f1).
    This got me a major headache & hours of frustration already - can any of the guru's help me out here?
    If anybody is interesting in creating the necessary actions for me at a reasonable rate, please let me know. I'm bordering desperation.
    Happy new year,
    Anja

    I'm not sure I fully followed exactly what you are trying to do, but essentially what I got from your post is that its pretty complicated and you want to create new variables on the fly.
    For that sort of thing I would suggest that advanced actions may not be advanced enough for what you are trying to achieve and that you should go for a Flash Widget instead.
    For anybody getting started on widgets, I throughourly recommend the Widget Factory by the Widget King, which can be found at:
    http://www.infosemantics.com.au/widgetking/
    I also strongly recommend the following video:
    http://www.adobe.com/cfusion/event/index.cfm?event=register_no_session&id=1719643&loc=en_u s
    Alternatively, as Lilybiri suggests, there may already exist a widget that does what you want it to do.

  • Saving user variable data in XML file

    I am using Captivate 5.5. Can I save user variable data of several variables on an XML file ?

    Can be done with Javascript, have a look at the Javascript articles by Jim Leichliter, here is one link:
    Retrieve variables in Captivate
    Lilybiri

  • Accessing a user defined library - CLASSPATH

    Hi all
    First I will tell you what I have implmented, then I will discuss the problem.
    My PATH (user variables) is set to c:\Program Files\Java\jdk1.6.0\bin and everything works
    fine - I can compile and run from any directory.
    When I open a shell (cmd.exe) my current working directory is:
         C:\Documents and Settings\Paul Gain\Desktop>
    I have a file in the same directory called Test.java
    Here it is:
    import pack.ClassPathTest;
    class Test {
    public static void main(String[] args) {
    new ClassPathTest();
    The package "pack" resides at C:\pack
    There are two files within "pack" one is called ClassPathTest.java
    and the other is called ClasspathTest.class
    Here is the code:
    package pack;
    public class ClassPathTest {
    public ClassPathTest() {
    System.out.println("Hello Paul");
    Obviously this program is nonsense, However, I want to find out
    how to access a user defined library of classes that is in a seperate directory.
    When I compile from the desktop with the command: javac Test.java
    The compiler complains, here is the output:
    C:\Documents and Settings\Paul Gain\Desktop>javac Test.java
    Test.java:1: package pack does not exist
    import pack.ClassPathTest;
    ^
    Test.java:7: cannot find symbol
    symbol : class ClassPathTest
    location: class Test
    new ClassPathTest();
    ^
    2 errors
    If I cut and paste "pack" into the desktop directory everything works as expected.
    Because of this I believe the problem lies with the CLASSPATH of "pack".
    I have tried all sorts of variations of CLASSPATH but to no avail.
    for example under "system variables" in environment variables I have
    used the following:
    .;C:\pack
    Which says look in the current working directory first and then in pack. But
    that does not work (and yes I close the current shell and open a new one).
    Once the CLASSPATH is set .;C:\pack and I compile again the compiler
    moans and gives me this:
    C:\Documents and Settings\Paul Gain\Desktop>javac Test.java
    Test.java:1: package pack does not exist
    import pack.ClassPathTest;
    ^
    Test.java:7: cannot access ClassPathTest
    bad class file: C:\pack\ClassPathTest.class
    class file contains wrong class: pack.ClassPathTest
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    new ClassPathTest();
    ^
    2 errors
    Obviously I am doing something wrong, can somebody please help me as I do not wish
    to add my libraries in the same directory as my program. I have even tried to add c:\pack
    to the PATH but that does not work either. HELP!
    Regards
    Paul

    If you are currently in Desktop, you need your classpath to be:
    .;C:\The "pack" package lies in "C:\"
    If you are anywhere else, you need:
    "C:\Documents and Settings\Paul Gain\Desktop;C:\""Test" lies in the first part, and the "pack" package still lies in "C:\".

  • Accessing Managed Bean Variables in Entity Impl Class

    How can I access managed bean variables in the entity Impl class .
    While inserting a new record in DB , i want to set few entity properties values . The values of those properties are available in the managed bean .
    How can i access those values from Managed Bean and set them the entity Impl class to override the create method.
    Or is there any better recommended approaches ?
    Jdev - 11.1.1.5

    >
    While inserting a new record in DB , i want to set few entity properties values .
    >
    you can user CreateWithparams
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    http://andrejusb.blogspot.com/2011/02/createwithparams-operation-for-oracle.html

  • Accessing a JSTL variable in a JSP Scriptlet (need to replace string )

    I have
    <c:set var="myVar" value="..." />
    I need to replace single quotes and double quotes to be escaped because I pass them into javascript functions and set them as ID for div sections
    ... onclick ="func('${myVar}')" ..
    <div id="${myVar}">
    but if the string contains ' single quotes it messes up the javascript or double quotes messes up the ID portion of the HTML tag
    I know there is the JSTL function fn but I can't figure out how to do it properly in JSTL
    <c:set var="myVar"
    value="${fn:replace(myVar, "'", "\"")"/>
    But that gets tricky since the value portion is enclosed in quotes
    So I was thinking of using a Scriptlet part instead.

A: Accessing a JSTL variable in a JSP Scriptlet (need to replace string )

escaping quotes within quotes within quotes.... ARGH!
Recipe for a headache if ever there was one.
However you must be strong and resist the temptations of the dark side (Scriptlet code)
My suggestion for cleaning this up - write your own static function for escaping javascript strings.
public static String escapeJavascriptString(String s){
  return .......
}Then define the function in a tld:
<function>
    <description>
      Escapes a string for javascript purposes
    </description>
    <name>escapeJavascript</name>
    <function-class>com.mypackage.ELFunctions</function-class>
    <function-signature>java.lang.String escapeJavascript(java.lang.String)</function-signature>
    <example>
      <c:out value="${myfunc:escapeJavascript(name)}">
    </example>
  </function>Cheers,
evnafets

escaping quotes within quotes within quotes.... ARGH!
Recipe for a headache if ever there was one.
However you must be strong and resist the temptations of the dark side (Scriptlet code)
My suggestion for cleaning this up - write your own static function for escaping javascript strings.
public static String escapeJavascriptString(String s){
  return .......
}Then define the function in a tld:
<function>
    <description>
      Escapes a string for javascript purposes
    </description>
    <name>escapeJavascript</name>
    <function-class>com.mypackage.ELFunctions</function-class>
    <function-signature>java.lang.String escapeJavascript(java.lang.String)</function-signature>
    <example>
      <c:out value="${myfunc:escapeJavascript(name)}">
    </example>
  </function>Cheers,
evnafets

  • Accessing database package variables from Forms

    I have a database package that populates a table of values, i.e.
    type t_route_list is table of rt_route.RTR_ID%type;
    route_list t_route_list
    route_list gets populated by a package function and I want to access route_list in the Form.
    While I can access other package variables by writing a function that returns the variable, Forms doesnt seem to like functions that return a user defined datatype as above. I have also tried using a procedure with an OUT param instead of a function but it also fails with same error.
    i.e.
    declare
    v_route_list pkg_bulk_route_replace.t_route_list;
    begin
    pkg_bulk_route_replace.init;
    pkg_bulk_route_replace.get_route_list(v_route_list);
    message(v_route_list(1));
    end;
    This will not compile, but removing the index (1) from the last line makes it compile but crash with ORA-0600.
    The code above with message replaced with dbms_out.put_line works fine on TOAD.
    So my question is......
    Can my database package return a plsql table to a form and if so, how?!

    Actually I've got this to work now!
    Thde main culprit appears to be a difference in the version of sql or pl/sql used on forms (version 5) and the database (8.1.7).
    I had defined my table as a nested table. By redefining this as a indexed table, simply by adding on 'index by binary_integer' on my server package, I am suddenly able to access the elements of the table on my form. Fortunately this did not break the server code either - the table was populated using bulk collect and that still works.
    Still got a bit of coding to do, but things are looking up now.

  • Maybe you are looking for

    • Can we put INDEXES on Views if not Is there any way to make it Index bas

      Hi I am running a query in which there are several views involved in the join condition Can we put INDEXES on Views in ORACLE 9i if not Is there any way to make it Index based views beacuse the result that i am getting is very slow and is eating like

    • Insert in Java via Microsoft Access

      Hello People I need insert into DataBase datas with app in Java and DataBase Microsoft Access. How insert in Microsoft Access with app Java? Witch the Syntax of the SQL for Microsoft Access with app Java? Thanks Richard Java/Oracle Programmer

    • Finding and deleting duplicate files

      I apologize in advance if I didn't search effectively enough, but having found no discussion of my problem, here it is: Is there a way to find, select and delete duplicate files on my hard drive? I know they exist, and would like to see them listed s

    • Sales Lead & Contact Management

      Hi Masters,       Can any one suggest any important  topics must cover while preparing for Sales Lead & Contact Management. OR suggest Important topics in sales lead and contact management. Regards, Varun.

    • E-Recruiting - job title in job posting

      Hi All, When a job requisition is posted what job title is displayed in the posting is it the Job Title in the Job details section while creating requisition or the Job Posting Header while creating the job posting. Thanks