Listbox with XML Question.

I went through Lee Brimelow's XML video playlist tutorial,
and I wanted to add a feature. I wanted to add a graphic on the
stage that would change along with the video when a selection was
made from the listbox. Getting the first graphic to appear was the
easy part, but getting the graphic to change when the video is
selected is giving me problems. Can anyone could point me in the
right direction, apparently I am making some sort of conceptual
error. Thanks!

I tried that. It doesn't change the pic. It keeps the pic
from the onLoad function.
But we are getting close. At least I am not getting
"undefined" in the output window anymore...

Similar Messages

  • Merging data with LiveCycle questions

    I have LiveCycle Designer 8.0 and I didn't find a forum for it so just point me in the right direction if this is not the place.
    I have a couple of questions with merging data with Livecycle PDFS
    1. XDP is the file format for merging data with LiveCycle created PDFs (FDF was with Acrobat)? if not, what is the format?
    2. We want different colors of the same PDF without actually making the different PDFS, is there a way we can do this through the merging the data?  For example: In the XDP file, we specify the color of the border of a rectangle.  When the PDF merges with the data, will the PDF be able to change the border of the rectangle with the specified color?
    3. Can a picture (a specific size) be merged in the PDF?
    Thanks!

    1. XDP is the file format for merging data with LiveCycle created PDFs (FDF was with Acrobat)? if not, what is the format?
    An XDP file is simply an XML file that packages a PDF file in XML, along with XML form and template data. Data can be merged from generic .xml or the XML version of FDF called XFDF.
    2. We want different colors of the same PDF without actually making the different PDFS, is there a way we can do this through the merging the data?  For example: In the XDP file, we specify the color of the border of a rectangle.  When the PDF merges with the data, will the PDF be able to change the border of the rectangle with the specified color?
    Yes. Consider a field called 'firstName'. I can add a script to the form:ready event that checks the value of the data merged with the field and changes the border edge color to red if the data is not equal to 'Steve'.
    // customer.page1.firstName::ready:form - (JavaScript, client)
    if (this.rawValue != "Steve") {
         this.border.edge.color.value = "255,0,0";
    3. Can a picture (a specific size) be merged in the PDF?
    Yes.
    Steve

  • XmlDataProvider .... is gone completely in my Xaml file. Why? How many different ways to deal with xml data source through WPF

    I followed a procedure described in a book.
    1. insert "Inventory.xml" file to a project "WpfXmlDataBinding" .
    2. add the XML data source through the data panel of "blend for 2013", named it "InventoryXmlDataStore" and store it in the current document.
    3. dragged and droppped the nodes from the Data panel onto the artboard.
    Then I checked my Xaml file against the one provided by the book
    Xaml file by the book:
    <Window.Resources>
    <!-- This part is missing in my xaml file --><XmlDataProvider x:Key="InventoryDataSource"
    Source="\Inventory.xml"
    d:IsDataSource="True"/>
    <!-- This part is missing in my xaml file -->
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid>
    <ListBox HorizontalAlignment="Left"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="89,65,0,77" Width="200"/>
    </Grid>
    my Xaml file:
    <Window x:Class="WpfXmlDataBinding.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="922" Width="874">
    <Window.Resources>
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource InventoryXmlDataStore}}">
    <ListBox HorizontalAlignment="Left" Height="370"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="65,55,0,0" VerticalAlignment="Top" Width="270"/>     
        </Grid>
    </Window>
    All looks quite the same except the <XmlDataProvider ....> part under <Window.Resources>, which is gone completely in my Xaml file.
    1, Why?
    2, How many different ways to deal with xml data source through WPF?
    Thanks, guys.
    (ps My "WpfXmlDataBinding" runs without problem through.)

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • [Table access] RFC with XML

    Hi everyone,
    The idea is to be able to read/write a table in the backend system (would it be R/3 or BW) from the Visual Composer.
    In a first attempt, I managed to do it by creating 2 RFCs: one for reading the table, another for modifying it. It works quite well.
    <u>Problem</u>
    1) Let's say I want to do it for a large number of tables: Do I have to build as much RFCs as there are tables ?
       In other words: Is there a way to do it generically ?
       <i>-> I did it in BSP but it is much simple since we can use reference (TYPE REF TO DATA)</i>
    <u>Bad idea</u>
    1) Concatenate all fields in a string
    -> Read: a lot of actions have to be performed to display the string in the tableview
    -> Write: ok as long as there is only string fields but as soon as there is something else, it a nightmare
    <u>Good Idea ?</u>
    1) Let's use XML to wrap fields up. It will be quick and easy by using CALL TRANSFORMATION on the backend
    <b>Question: How do we transform our XML to fit into the VC tableview ?</b>
    Thanks in advance.
    Best regards,
    Guillaume

    Hi Guillaume,
    I had the same problem a few months ago. There is no way to use a generic structure in VC. A workaround was my solution. I added a structure in SE11 with several strings. Each string for a column with values. This is not the best solution, but another isn't possible atm.
    XML is an alternative, but I never read something about using it in VC with tables. I think there is also the problem with the generic structure. At designtime VC doesn't know the structure of the XML file. When you use queries you can use define/test data service -> execute -> generate for each model.
    If somebody knows, if it is possible with XML, please give us a hint. I hope Mario will read this thread.
    Best Regards,
    Marcel

  • What is with the little blue box with the question mark.

    what is with the little blue box with the question mark?

    See '''''cor-el's''''' answer to that question here (only the portion down to the line break): http://support.mozilla.com/en-US/questions/781372?s=resend+&as=s
    <br />
    <br />
    '''Other issues needing your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.<br />
    <br />
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    **7 updates behind
    **'''''Security update version 1.6.0_24 released 2011-02-10'''''
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Generating layout with xml

    Hi,
    I want to make a graphical user interface with xml.
    Is that possible?
    For example:
    <?xml version="1.0" encoding="UTF-8" ?>
    <JMenubar>
    <JMenu name="Program">
    <JMenuItem name="Connect" method="Connect()" />
    </JMenu>
    </JMenubar>
    I automatically want to create these menu.
    But this xml could be more extended, and then the layout must also made automatically.
    The problem is, that you don't know how many JMenu's en JMenuItems there are.
    Anyone has an idea how to work with this?

    One way to do this is just to use XMLEncode & XMLDecode, so a nice example for you, to run this, first
    java Test -c test.xml
    It will ask some questions, fill 'em in.
    then
    java Test -l test.xml
    and it'll create a frame based on the XML file created by step one.
    import java.beans.*;
    import javax.swing.*;
    import java.io.*;
    class Test {
        public static void main(String argv[] ) throws Throwable{
         String file = "default.xml";
         JFrame frame;
         if( argv.length > 1 && argv[1] != null ) {
             file = argv[1];
         if( argv[0] != null && argv[0].equals( "-l" ) ) {
                    XMLDecoder d = new XMLDecoder
                     ( new BufferedInputStream
                    ( new FileInputStream( file ) ) );
                 frame = ( JFrame ) d.readObject();
                 frame.pack();
                 frame.show();
                 return;
         if( argv[0] != null && argv[0].equals( "-c" ) ) {
             System.out.println( "Frames Title:" );
             BufferedReader in = new BufferedReader
                ( new InputStreamReader ( System.in ) );
             String title = in.readLine();
             frame = new JFrame( title );
             frame.setDefaultCloseOperation( frame.EXIT_ON_CLOSE );
             System.out.println( "utton or [L]abel" );     
         String bOrl = in.readLine();
         System.out.println( "Objects Title: " );     
         title = in.readLine();
         bOrl = bOrl.toUpperCase();
         JComponent obj;
         if( bOrl.startsWith( "B" ) ) {
              obj = new JButton( title );
         } else {
              obj = new JLabel( title );
         frame.getContentPane().add( obj );
         System.out.println( "Number Of Menus" );
         String noS = in.readLine();
         int no = Integer.parseInt( noS );
         JMenuBar bobTheMenu = new JMenuBar();
         JMenu menu = new JMenu( "File" );
         bobTheMenu.add( menu );
         frame.setJMenuBar( bobTheMenu );
         for(int counter = 0; counter < no; counter++ ) {
              System.out.println( "MenuItem " + counter + " title: " );
              title = in.readLine();
              menu.add( new JMenuItem( title ) );
         System.out.println( "Saving" );
         XMLEncoder e = new XMLEncoder
         ( new BufferedOutputStream
         ( new FileOutputStream( file )));
         e.writeObject( frame );
         e.close();

  • HTTP POST Request with XML file in

    Hi @ all,
    I would like to send an HTTP Request with an XML File in the body to an SAP System
    I have the target URL and the a XML File.
    Now the question is. Is it possible to use something like the HTTP_POST FuBa to send an url post request with an xml file?
    If yes can anybody give me a hint?
    I have a php script which exactly do this coding. But to integrate it all in one system it is necessary to transform it into ABAP and call it there.
    // compose url and request and call send function
    function test($productID, $categoryID) {
         // create url
         $PIhost = "XXX.wdf.sap.corp";
         $PIport = "50080";
         $PIurl = "/sap/xi/adapter_plain";
         $PIurl .= "?sap-client=800";
         $PIurl .= "&service=XXX";
         $PIurl .= "&namespace=XXX";
         $PIurl .= "&interface=Frontend_Interface";
         $PIurl .= "&qos=EO";
         $PIurl .= "&sap-user=XXX";
         $PIurl .= "&sap-password=XXX";
         // create xml
         $request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
         $request .="<n1:FrontendInbound_MessageType xmlns:n1=\"http://crmpiebay.com\">\n";
         $request .= "\t<FrontendInbound>\n";
         $request .= "\t\t<ProductName/>\n";
         $request .= "\t\t<ProductCategory>".$categoryID."</ProductCategory>\n";
         $request .= "\t\t<ProductID>".$productID."</ProductID>\n";
         $request .= "\t\t<MessageID/>\n";
         $request .= "\t</FrontendInbound>\n";
         $request .= "</n1:FrontendInbound_MessageType>";
         // send http request
         postToHost($PIhost, $PIport, $PIurl, $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]."/".$_SERVER["PHP_SELF"], $request);
    // send post request to PI server
    function postToHost($host, $port, $path, $referer, $data_to_send) {
      $fp = fsockopen($host, $port);
      if($fp) {
           $res="";
           fputs($fp, "POST $path HTTP/1.1\r\n");
           fputs($fp, "Host: $host\r\n");
           fputs($fp, "Referer: $referer\r\n");
           fputs($fp, "Content-type: text/plain\r\n");
           fputs($fp, "Content-length: ". strlen($data_to_send) ."\r\n");
           fputs($fp, "Connection: close\r\n\r\n");
           fputs($fp, $data_to_send);
           while(!feof($fp)) {
               $res .= fgets($fp, 128);
           fclose($fp);
           return $res;
    Would be great if anybody could give me a hint how to solve such a HTTP Post request with XML body data.
    Thanks in advance.
    Chris
    Edited by: Christian Kuehne on Feb 26, 2009 4:32 PM

    hi friend could you please share your solution regarding this query if u got it already?

  • Generate Adobe Interactive Form with XML Schema-Based Interface

    Hi,
    I need to generate a adobe Interactive but with XML Schema-Based Interface, i have one example but with ABAP Dictionary-Based Interface.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams       = fp_outputparams
    * EXCEPTIONS
    *   CANCEL                = 1
    *   USAGE_ERROR           = 2
    *   SYSTEM_ERROR          = 3
    *   INTERNAL_ERROR        = 4
    *   OTHERS                = 5
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = 'ZMMDM_CL'
      IMPORTING
        e_funcname = fm_name.
    But when i call the next function for print i need the docxml parameter and i don't know how to get it
    fm_name
    CALL FUNCTION fm_name
      EXPORTING
       /1BCDWB/DOCPARAMS        = fp_docparams
    *    /1bcdwb/docxml           =
    * IMPORTING
    *   /1BCDWB/FORMOUTPUT       =
    * EXCEPTIONS
    *   USAGE_ERROR              = 1
    *   SYSTEM_ERROR             = 2
    *   INTERNAL_ERROR           = 3
    *   OTHERS                   = 4

    1) this questions was asked many times before, you didn´t search for a second
    2) I am not aware of any standard solution
    3) custom solution: use XSLT transformation ID to get XML from the filled DDIC structure and use string operations to add the header and footer to create a valid XML.
    Regards Otto

  • Create .folio overlays with XML

    Hi,
    because I could not find anything about this topic, I wanted to ask this question here.
    Is it possible to create overlays for .folio files with XML data?
    I know there are special tags for images or tables, but how about overlays?
    Best regards,
    schmunk
    PS: I also asked the same question here: http://forums.adobe.com/message/3683200

    The current folio file format is an extension of XML laid over compressed image files.
    There hasn't been much documentation on the scripting extendibility, but i have seen some good examples of CSS and HTML5 content.  Unfortunately HTML5 and XML haven't been playing nice.  We have loaded things like XML galleries (built with HTML and xml) from our own server and just placed them inside a HTML overlay (not a webview overlay). You could probably also do this with a "local html file" just make all the assets are there to grab.  Using HTML overlays has been the current workaround for things like streaming video from an outside source.  
    You can also create entire articles from an HTML document, i havent tested that function myself so i can't comment too much on it (and the documentation is vague at best)
    As far as loading XML data directly into the overlay creator-- I dont see how you could do that and not interfere with Overlay creator's own XML process.
    Best solution... trail and error.

  • Documaker- Using Lookup with xml

    I am not able to use the lookup Rule to read the data from xml/table file.
    Requirement - I want to read xml for company number, after that I want to go to table file and append the company number to the field name and fetch the data from table and display on the section.
    I have done following setup -
    1. In fsisys.ini, I have following entry -
    TblFile = DEFLIB\tblfile.dat
    2. In DEFLIB\tblfile.dat, , I have following entry -
    TABLE\ADDRESS.DAT
    3. In afgjob_batch.jdt, I have following -
    ;CreateGlbVar;1;TblLstH,PVOID;
    ;LoadTblFiles;1;;
    I am getting blank and data is not fetched from the table, though not getting any errors.
    Please advice the properties that should be set for the variable so that it fetches the data correctly.

    This describes part of the setup for the table file(s) you are trying to use, but does not include enough information to glimmer why it might not be working for you.
    My first guess is that you have forgotten to define the Table Index value on the field in the rule definition area. Depending upon whether you using the XDD, this is either done in the section (FAP) in the Rule section of the field properties or in the XDD source field definition in the Rule section.
    The Table Index value determines which row of your Table file defines that actual table to search. So, if you only have one table, I suggest you set that value = 1.
    Next, it is important to realize that the field's Rule "data" property defines not only the search mask to look up the table "key" from the main extract, this also defines the search mask to use in the associated look up table. This definition requires spaces to separate the search mask from the data offset, from the table key search mask and finally the table data offset and length.
    Offset,SearchMask offset,data offsetTable offsetTable,tableData
    So, if your xPath search mask for the XML contains a space, and you are not using an XDD token with a question (?MyXDDFieldName), this space in your xPath is probably throwing off the rest of the interpretation.

  • Help with xml and getNextHighestDepth

    I have a thumbnail gallery that is called in with xml- On
    stage is a movieClip that covers the entire thumbnail area with the
    alpha set to 0. what I'm trying to do is onRelease- have that mc
    brought to the front and it's alpha state tween to 100- i've not
    much experience using 'getNextHighestDepth' so I'm assuming
    something is wrong here... if anyone can help I'd really appreciate
    it!
    Thanks!

    i think you want something along the lines of :
    stageFade_mc.swapDepths(theMovieOnTopAtTheMoment);
    Note that only dynamically created movies have depths. So if
    either of the movieclips in question are just sitting in your
    timeline you cant swap their depths.
    In that case you either need to duplicateMovieClip() or just
    set things _visible property where apropriate.
    good luck
    jon

  • Populating ComboBox with XML data

    Hi there,
    Probably the most basic question, but I'm having a hard time with this...
    Trying to populate the ComboBox with XML data as a dataProvider.
    Here is the code snippet:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="vertical"
                    creationComplete="baseDataRequest.send()">
        <mx:Script>
            <![CDATA[
                import mx.collections.XMLListCollection;
                import mx.rpc.events.ResultEvent;
                [Bindable]
                private var baseDataXML:XML;
                private function baseResultHandler(event:ResultEvent):void
                    baseDataXML = event.result.node.child as XML;
            ]]>
        </mx:Script>
        <mx:HTTPService id="baseDataRequest"
                        useProxy="false"
                        resultFormat="e4x"
                        result="baseResultHandler(event)"
                        url="XML_URL"/>
        <mx:ComboBox id="comboDemo"
                     width="390"
                     dataProvider="{baseDataXML}"
                     labelField="NodeName"/>
    </mx:Application>
    And that returns nothing, basically. I know the XML is being pulled, because if I do this:
    baseDataXML = event.result as XML;
    then I just see a single item in my ComboBox, with full XML content.
    How do I populate the ComboBox with XML contents?
    XML example:
    <root>
        <node>          <child>Child1</child>
              <child>Child2</child>
         </node>
    </root>
    Question: how do I populate the ComboBox with XML data nodes? I need <child> content to be the labelField of each combo box item...
    Thanks!
    K

         <mx:Script>
              <![CDATA[
                   var baseDataXML:XML = <root><node><child>Child1</child><child>Child2</child></node></root>;
              ]]>
         </mx:Script>
         <mx:ComboBox id="comboDemo"
                     width="390"
                     dataProvider="{baseDataXML.node.child}"
                     labelField="NodeName"/>
    Don't do:
    baseDataXML = event.result.node.child as XML;
    Instead just do:
    baseDataXML = XML(event.result);
    And in your combo:
    dataProvider="{baseDataXML.node.child}"

  • Stumped with XML

    I know this is a really basic question. But for some reason I
    am not figuring it out. I have created a dynamic text field that I
    am loading XML into. Now I have it working so it can be traced. But
    I can't figure out how to get the XML to load into my text field.
    Below is the code for my XML.
    If someone could help or point me to a tutorial I would
    appreciate the help.
    Thanks,
    Khester

    Great, glad to hear it worked! :)
    AS3's XML model uses the E4X method to deal with XML, which
    makes it pretty easy to access the actual text values for a field.
    I could try to give you a bunch of incomplete examples, but the way
    I learned about it was reading through the section "Working with
    XML" in the Programming ActionScript 3.0 section of the Flash help.
    If you don't have the help files, you can check it out at the Adobe
    site at
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7ff5.html
    I know it can be tedious to read this kind of thing, but
    honestly reading through this helped me get a great handle on how
    to deal with XML in ActionScript, and I feel it would be very much
    worth your time to check out. Good luck!

  • How to link oracle with xml

    i want to know the coding to link oracle with xml.tq.

    You're going to need to expand a little on this question, since I'm not quite sure what you mean by "link". What kind of problem are you trying to solve, so we can help... Thanks.
    If you're just starting out with Oracle and XML, a book like Building Oracle XML Applications or the Oracle XML Handbook might be the right place to start, in addition to our own online documentation at http://download.oracle.com/otndoc/oracle9i/901_doc/index.htm

  • Updating with XML datafiles from Database or Applications Server

    Our Environment: One database server running 10g with multiple application servers.
    My Question: Am I correct in saying that if you want to update a database with XML files using a bfilename and a directory object, that the physical data files must always reside on the Database server?
    Thanks and kind regards
    Adrian

    Thank you very much for the reply.
    Our systems all operate under Unix and I was wondering whether you or anyone else knows if anyone has successfully tried to use 'soft links' to span the file systems to other machines.
    There's obviously a performance downside, but what we are trying to accomplish is leaving all 'data files' on our individual application servers.
    Thanks again
    Adrian

Maybe you are looking for