Pass the data XML Captivate through a Widget

Hi all

I use widgetfactory API to create my setup.

I have a flash file Widget that reads the XML data and passes the variables in Captivate.

However, I can not set the text box with the variable that I analyzed the XML data.  Any suggestions are appreciated!

////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

package

{

widgetfactory Import. StaticWidget;

Import widgetfactory.events.WidgetEvent;

com.adobe.captivate.events import. *;

com.adobe.captivate.widgets import. *;

import flash.events. *;

import flash.display. *;

flash.net import. *;

public class load_lang extends StaticWidget

{

override protected function enterRuntime (): void

{

var myRoot:MovieClip = MovieClip (root);

var mainmov:MovieClip = MovieClip (myRoot.parent.root);

mainmov.text_00 = "This works very well.";

var myXML:XML;

var myLoader:URLLoader = new URLLoader();

myLoader.load (new URLRequest ("languages.xml"));

myLoader.addEventListener (Event.COMPLETE, processXML);

function processXML(e:Event):void {}

myXML = new XML (e.target.data);

var myRoot:MovieClip = MovieClip (root);

var mainmov:MovieClip = MovieClip (myRoot.parent.root);

mainmov.text_01 = myXML.slide [0] .textbox [1]; It does NOT work

}

}

}

}

////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

Hi osbornsm,

Try the above suggestion of Jim, but if this does not work then what probably is the widget is trying to load the languages.xml but can't find it. You will need to make sure that it is placed in the output directory of the Captivate file published to operate. Even in this case, you will not be able to make it work when previewing the movie.

Probably a better way to go about this would be the XML file into your SWF widget. In this way the widget won't need to load. This is how you would integrate it:

package

{

public class load_lang extends StaticWidget

{

[Embed ("path-to-file/languages.xml", mimeType = "application/octet-stream")]

private var BinaryData: Class;

override protected function enterRuntime (): void

{

var byteArray:ByteArray = new BinaryData();

var myXML:XML = new XML (byteArray.readUTFBytes (byteArray.length));

Continue to the processXML() code

}

}

}

Tags: Adobe Captivate

Similar Questions

  • Can I export the data (XML) using Acrobat Standard DC?

    I am currently using Adobe Acrobat XI which is allow me to export XML data from tools > forms > form additional Options > export data. I know this feature is also available in Acrobat Standard DC?

    Hi jack65464326,

    Yes, you can export the data (XML) using Acrobat Standard DC, refer to this KB document for help Acrobat help. Collection and management of the PDF to form data.

    Kind regards

    Nicos

  • Passing the data change to Subvi through reference: always newest lack input value

    Hello world

    I'm having a problem that I can not find the solution. I searched the forum and google, but I couldn't find an explanation. I hope you can help!

    In the attached draft, there is the "main.vi", which I use to control an industrial manufacturin mashine. On the façade, I have a group called "manual control". Whenever I have change a value in the cluster, an event is triggered to run the case 'hands-on' in the 'Wirbelschicht_main.vi' [called 'FBC (control of fluidized bed)' in the pattern-block main.vi]. In this case, the data in the cluster are updated via a reference. The order run "Manual control" case is placed in a queue.

    When I change the value of, for example, "InAirTempSet" from 0 to 5, then from 5 to 9, I would expect numbers in the Subvi update in the same way (first from 0 to 5 and with the next click 5 to 9). What I see is that the update process in the subviis always one not behind. Which means, I change the value from 0 to 5 in the main.vi and nothing happens. Then I change the number of 9 and 5 in the Subvi, 5 is received. Only when I change the number in the main.vi again, the 9 is passed to the Subvi.

    What is the reason for this and how can I fix?

    Thank you!

    Qbach

    It is the expected behavior. You read the reference control value at the same time waiting for the order to the queue. This means that once the queue ("hands-on") command is received, the value has been already read a long time ago.

    To avoid race conditions, transmit the data using the queue instead of read it asynchronuously with nodes of property. You are running in a race condition here, because that's exactly what your code tells the application to do!

    Norbert

  • I can pass complex data using wddx through a URL?

    I would like to pass complex structures through the URL. I know that this can be done using hidden fields in forms, but sometimes, I need to transfer data from a file that is not a form. I have problems to do this work. I have a very simple file that sets up a structure, using wddx serializes and then tries to pass the serialized structure of a hyperlink. The file called structure is deserialized and try to access it. I get an error message:

    Error analysis of the WDDX packet to line - 1, column - 1. Premature end of file...
    on the line of deserialization. I know that things are serialized/disable-serialized correctly because if I serialize and deserialize then in the same file (without going to another file via a URL), I can access it.

    Is it possible to send WDDX packets to another PCM file via the URL?

    Here's my simplified code:


    dsp_testPage.cfm
    -------------------------

    < cfset related StructNew () = >
    < cfset relatives.field1 = "Dad" >
    < cfset relatives.field2 = 'Mother' >
    < cfset relatives.field3 = 'Sister' >
    < cfset relatives.field4 = 'Brother' >


    < cfwddx action = "cfml2wddx" input = output "" #relatives # "="wddxRelatives">"

    < br >
    < a href="./index.cfm?fuseaction=test & family = #wddxRelatives #" > click here < /a > "
    ------------------------------------------------------------------------------------------ --------------------------

    Then I have another page called index.cfm (I use fusebox) that looks like this:

    < html >
    < head > < / head >
    < body marginheight = "0" topmargin = "0" marginWidth = "0" leftmargin = rightmargin "0" = "0" bgcolor = "#FFFFFF" >

    < name = "cfparam attributes.fuseaction" default = "Home" > "
    < cfswitch expression = "#attributes.fuseaction #" >
    < cfcase value = "Home" >
    "< cfinclude template="./dsp_DISPLAY/dsp_TESTPage.cfm ">
    < / cfcase >
    < cfcase value = "test" >
    < cfwddx input = "" #attributes.relatives # "action ="WDDX2CFML"output ="sous%">"
    < cfoutput >
    < br > inside Test < br > < br >
    Field1 = #localAppData.field1 # < br >
    Field2 = #localAppData.field2 # < br >
    field3 = #localAppData.field3 # < br >
    Field4 = #localAppData.field4 # < br >
    < / cfoutput >
    < / cfcase >
    < / cfswitch >
    < / body >
    < / html >

    Really stupid mistake. In the file where I create the href link, I need to put it inside a so that the variable is passed in the URL. It works great now that I have the Accuracy.

    I will continue to investigate with JSON, but I really need for my application is independent (able to work when Javascript is disabled) JavaScript so it may not be the best option for me.

    Thank you.

  • How to pass the IDS of lookup through weblink to the narrative report

    Hi all

    How to pass the ID lookup instead of the value in the choice list via the Web link that able to read this list of choice and based on the id id, he should go the narrative report dynamically (reports are named with the lookup id).

    Is is possible. ?
    How to get there. ?

    Thanks in advance...!


    concerning
    sowm

    Hi sowm,.
    What I understand, that values exist in analytics and not their IDs.Hence, you cannot display the ID in the reports. An alternative would be if your data integration team can fill a field with distinctive signs of the back-end database.

    PS: My apologies for late reply.

  • Why can't pass the data on applications for some?

    I had this problem for months and I can't activate the data for all the apps I actually use. So now I can't all I can't even see where the nearest ice cream store is at Kansas or download the latest music in iTunes or even to get the news. iOS 9 or up idk. Why???!?!?!?!!!?!??

    Is there a Restriction on the cellular data settings change? Settings/general/Restrictions.

  • How to pass the date range as in URL filter go

    Hello

    I am trying to build a Url go that has two filters, date range & text. I built the url below, but he continues to throw an error. The url is not from the date max and the app starts following error:

    Error: Status: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 46048] Month DateTime value 0 0000-00-00 is off limits. (HY000)

    Go to Url: https:companyUrl? GB & Options = rfd & Path = / shared/CompanyID/link & P0 = 2 & P1 = eq & P2=CustomObject4.%22Indexed%20Pick%201%22 & P3 = Leasing & bet = P4 & P5 = ""-CustomObject4 Custom Attributes '. " ZDate_26 & P6 = 2 + Date % 20'2014-08-01'+ day % 20'2014-12-31'


    Please suggest.

    Thank you
    Kiran.

    It seems that you convert the data type of char to date in the URL, I don't think that this is possible.
    Your code is like
    & P6 = 2 + Date % 20'2014-08-01'+ day % 20'2014-12-31'

    It suppose to be & P6 = 2 + 2014-08-01 + 2014-12-31

    I suggest doing the formatting for this filed using column properties and try.

    Hope this help, pls mark if yes ;)

  • Pass the data store VM 1-2

    What is the way easiest and safest to move a stored under Data Store 1 above to Data Store 2 virtual machine?

    Thank you.

    As long as the host can access the two data store, you can either use the CLI if you are uncomfortable or that you use the VI Client.

    For the VI Client, you would just connect directly to the host and click on the summary for the host tab. You see your data store to the right, double click on the data store that currently contains the virtual machine that you want to move and make sure that it is turned off. You can right click on your VM directory and you have an option to move and simply select the data store that you want to go to.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    http://Twitter.com/lamw

  • Problem with &amp; quot; To access the data XML &amp; quot; Tutorial

    I was going through the tutorial on the XML data for access to the (well written I must add) there was a little bug inside, due to an invalid assumption, and it takes the selectedIndex property of the grid, and it assumes it is the same as that of the XML language, which is not the case. Here is the link:

    http://www.Adobe.com/devnet/flex/QuickStart/accessing_xml_data/

    I understand that this tutorial is the XML "to get to the" not necessarily communicate with DataGrid. I have the same problem and I'm not coming up with a nice way to solve this problem, when you double-click a row in a data grid, you can detect his 'id' / number/child-entry (or the unique property of this entry).

    I appreciate your comments.

    ML.

    I don't want to analyze this example. Are you asking how to get an id or some other value, when you select a row in a datagrid?

    When you select an item in the list-based control, properety selectedItem control contains a reference to the dataProvider of element for the selected item. You can get goods that are present in this object:
    var sId: String = myDataGrid.selectedItem.myIDProperty;

    If I misunderstood, Please rephrase your question.

    Tracy

  • CD is not compatible with XP, why? I can't pass the data information of my new HP with Vista professional in my other, older __Dell computers using XP iperating system. It makes the CD a bit useless.

    I don't understand why I can't pass data as a file in Quicken to my new HP computer using the CD of my old Dell computer with the XP operating system.  I have to use thumb devices to transfer data.  What is a reason that they cannot be compatible.

    Read the section on using disks of different CD players or format to ISO for older computers

    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD

    If your computer is equipped with a CD or DVD burner, you can copy files to a recordable disc. This process is called burning a disc. By default, Windows Burns discs in the active file system format, but you can also choose to burn discs in ISO image format.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://Windows.Microsoft.com/en-us/Windows-Vista/disc-burning-frequently-asked-questions

    Why are there two different ways to format a disc?

    You can choose between the formats of live file system and mastered during the creation of a new recordable disc because each of these formats is used for different purposes. The default choice is the active file system because it is a more convenient way to create a disc. When you use a Live file system disc, files are copied to the disk immediately. When you use the ISO image format, the files are stored in a "transit zone" until you decide to burn the disc.

    When you use the system format active files with rewritable discs, such as CD - RW and DVD - RW, you can also erase unwanted files from a disc to recover space, which is not possible with mastered discs. On the other hand, mastered discs are more compatible with older computers, previous versions of Windows, and other devices such as CD and DVD players. For more information, see which CD or DVD format should I use?

    See you soon.

    Mick Murphy - Microsoft partner

  • How to generate the dates in order through functions

    first to see the code example
    create or replace function FNC_GET_DATE(p_businessdate varchar2) return date
    as
    v_date date;
    begin
    
    v_Date := to_date(p_businessdate,'mm/dd/yyyy') +10;
    
    return v_date;
    end;
    Now I mean this function in a loop for N times and the first output of the function must be the entrance for the second call

    Assuming that the initial value of p_businessdate be 01/01/2012 the output of the function should be 11/01/2012.

    Now exit 11/01/2012 must be sent as input for the FNC_GET_DATE function, then the output should be 21/01/2012.

    Now exit 21/01/2012 must be sent as input for the FNC_GET_DATE function, then the output should be 31/01/2012.

    Assuming that the number of iterations to 4 outputs (here the value of N) should be something like this:
    01/01/2012
    01/11/2012
    01/21/2012
    01/31/2012
    For this we need a function that has p_busdate and no_of_itereations as input parameter and the retrun type can be a sysrefcursor as shown below, once more:


    01/01/2012
    11/01/2012
    21/01/2012
    31/01/2012

    Please notify.

    Here's a basic idea.

    I used a nested function to simulate the 'other' function, you need to call. I also didn't care to do things like manipulate strings and convert to date, but you get the idea.

    create or replace function f_get_some_dates
    (
          p_starting_date   date
       ,  p_how_many_dates  number
    )
    return sys_refcursor
    as
       l_date_list    sys.odcidatelist  default sys.odcidatelist();
       l_current_date date  := p_starting_date;
       l_ref_cursor   sys_refcursor;
    
       function f_add_days
       (
          p_date   date
       )
       return date
       is
       begin
          return p_date + 10;
       end f_add_days;
    begin
    
       for loop_idx in 1 .. p_how_many_dates
       loop
          l_current_date := f_add_days(l_current_date);
          l_date_list.extend;
          l_date_list(l_date_list.count)   := l_current_date;
       end loop;
    
       open l_ref_cursor for
       select *
       from table(cast(l_date_list as sys.odcidatelist))
       order by column_value asc;
    
       return l_ref_cursor;
    
    end f_get_some_dates;
    /
    
    ME_TUBBZ?variable rc refcursor;
    ME_TUBBZ?exec :rc := f_get_some_dates(trunc(sysdate, 'dd'), 2);
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.01
    ME_TUBBZ?print :rc
    
    COLUMN_VALUE
    --------------------
    08-JUL-2012 00 00:00
    18-JUL-2012 00 00:00
    
    2 rows selected.
    
    Elapsed: 00:00:00.00
    ME_TUBBZ?exec :rc := f_get_some_dates(trunc(sysdate, 'dd'), 4);
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.00
    ME_TUBBZ?print :rc
    
    COLUMN_VALUE
    --------------------
    08-JUL-2012 00 00:00
    18-JUL-2012 00 00:00
    28-JUL-2012 00 00:00
    07-AUG-2012 00 00:00
    
    4 rows selected.
    
    Elapsed: 00:00:00.00
    ME_TUBBZ?
    

    See you soon,.

  • Pass the authentication for applications through sqlplus scheme?

    Hello

    We want to change the schema of authentication for applications through sqlplus.

    Is it possible to do it with

    () www_flow_api.set_flow_authentication
    p_flow_id in the number default null,
    p_authentication in varchar2 default null);?

    Or will encounter us problems with this statement? Unfortunately, nothing is documented on this procedure!

    Thanks for any help!

    But does it work?

    Experience would give you the answer that is not.

    What is done, when I press the "make current" - button in the Application Builder? Is it the same?

    Not the same, no.

    The URL that is current when you are on the page with the button "Make Current" you tells the application and the page that does the job (4000:822). You can see that this page means when it is submitted by the consideration of this application and the page by using the f4000.sql file from distribution either by reading the code in the file, either by installing this application in your own workspace as an application ID different and using Report Builder to review the page works.

    How do you secure it, that is, who would be able to run the script?

    Scott

  • How can I pass the data to the comment system...

    With comments Win XP and linux with samba installed host I get the folder with the command

    S:
    name of the folder addr\Shred getway

    Win 7 does not work with this command...

    How can I do?

    Thank you very much.

    NET use s:

    = Send 'Assignment' to 911 for only $999999,99! =

  • Passing the Captivate Variables to Embedded SWFs.

    Does anyone know how to pass a variable of Captivate to an embedded swf? I will elaborate on our situation for clarity. Finally, we Captivate allows you to create Scorm packages for use in Moodle. In this particular case, we have a Captivate project where we have several slides. On each slide, we want to import a swf created in Flash. Now, this Flash swf is configured to analyze an external XML file, determine which slide containing the swf on and then read the correct video for this slide. This file has a list of video sites (URL) and is organized by slides. The question we are hung up is how to pass the variable of Captivate (cpInfoCurrentSlide) for the current slide to the embedded swf. Someone saw?

    S

    Of course you can do it.

    Here is a list of all the variables: http://www.cpguru.com/2009/04/28/system-variables-in-captivate-4-%e2%80%93-a-complete-list /

    I'm not aware of any written documentation, but it is just like when you take a variable.

    Example:

    _root.rdcmndNextSlide = 1; will send your project to the next page.

    / Michael

    Visit my Captivate blog with tips & tricks, tutorials and widgets.

  • Values of read/write of Captivate in a Widget

    Hello

    I have read the forums that talk about the reading and writing of the variable of Captivate your Flash widget and find a complete list of these variables. I tried several ways to 'find' and use these variables, following different examples I found, but so far none have worked. My main interest is by registering a score instead of correct/incorrect just for a Flash of LMS Captivate/Connect interaction and attempted to write the score to the variable cpQuizInfoPointsscored . I used a variety along the lines of:

    _root.cpQuizInfoPointsscored = result;

    But with different paths (find examples on the web), including _root., varHand., _parent, etc..

    I also tried using the cpSetValue function

    cpSetValue ("cpQuizInfoPointsscored", score);

    According to me, Miss me really a kind of crucial contextual information about to use these variables. Any help is very appreciated.

    (I use the code of the basic model for widgets of quiz, btw).

    So I think I'm finally as understand this, if there is an easier way to get a partial score on interaction in the LMS, it'll do for now!

    -Kurtis

    The LMS UMConnect is based on the standard? If it is based on all the standards that is supported by captivate so if you try to write to LMS of the widget so it is great chance of your course is screwed up because of the conflict between the values submitted by you (your widget) and captivate SWF. If its based on any other standard then probably you can give it a go, but be careful, you will have all the things on your part are clean code. that is all the data required by the LMS must come from your widget, which I think is the case.

    As I know there is no way to write to LMS for a widget without screwing up the course.

    P.S. If find you a solution please post in this thread.

Maybe you are looking for

  • Photos shown do not

    Last week, I bought a Apple Watch. It is under 2.1. My iPhone 6 is running iOS 9.2.1. Apple Watch has been configured to display the last 100 photos in my favorite album. He showed stains about 30 70 or so, with the last appearing as grey areas. Equi

  • Strange noise on my Satellite L50-B-NV

    Hi all I have a Toshiba L-50 b-1-NV and the case constantly makes a strange noise, as if the load continuously. Sounds like something streaks, I think it's the hard drive, but I'm not sure, because the computer is relatively new (I got it 1 month). A

  • HP envy m6-1125dx: HP ENVY M6-1125dx update map wifi Help!

    Hi, I am a customer who, using HP product, I have a laptop HP ENVY M6-1125DX model, I have a wifi card name "Ralink RT5390R 802.11bgn wifi adapter", and I wonder if my laptop is able to switch to wifi adapter 802.11ac? ". Please give me a specific na

  • Turn on, turn off the power?

    Lately, whenever I turn it on, it stops immediately. Not because he's dead, he's just. Every time. Finally, he stays on after all the 7th time I do this. Sometimes it refreshes the media, then cut. Also, it is not lit / light up when I plug it into m

  • 3D with GTX 650Ti graphics issue

    I have problems with the 3d graphics on my Dell XPS. This is very bad, there are several ghost images.  A ghost is red; a green; and maybe another.  It is not usable as is.   I use MS Flight Sim X, and Civilization IV & I installed Civ V.  They all h