Where is tutorials.zip file and completedx.mxml?

Hello,
I am going through all of the lessons in the
Flex2_Getting_Started.PDF file, and on page 191 where is begins
talking about Data Services and the Data Management Service, the
manual clearly references a tutorials.zip file containing
completed1.mxml and completed2.mxml. I seem to be unable to find
any of these files. Can someone please send them to me so that I
can continue learning Flex2? Please e-mail them to
[email protected]
Many thanks,
-Ken

For some reason, the link to the download is broken. I'll get
it fixed. For now, here are the files:
completed1.mxml
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
height="100%" width="100%"
creationComplete="initApp();">
<mx:Script>
<![CDATA[
import mx.data.DataService;
import mx.data.events.*;
import mx.rpc.AsyncToken;
import mx.rpc.events.*;
import mx.messaging.events.*;
import mx.utils.ObjectProxy;
public var noteObj:Object = new Object();
public var getToken:AsyncToken;
private var ds:DataService;
[Bindable]
public var noteProxy:ObjectProxy;
private function initApp():void
ds = new DataService("notes");
ds.addEventListener(ResultEvent.RESULT, resultHandler);
ds.autoCommit = false;
noteObj.noteId = 1;
noteObj.noteText = "Type your notes here and share them with
other clients!";
getToken = ds.getItem(noteObj, noteObj);
public function resultHandler(event:ResultEvent):void
if (event.token == getToken)
noteProxy = ObjectProxy(event.result);
]]>
</mx:Script>
<mx:Binding source="log.text"
destination="noteProxy.noteText"/>
<mx:TextArea id="log" width="100%" height="100%"
text="{noteProxy.noteText}"/>
<mx:Button label="Send" click="ds.commit();"/>
</mx:Application>
completed2.mxml
<?xml version="1.0" ?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="initApp()">
<mx:Script>
<![CDATA[
import mx.data.DataService;
import mx.collections.ArrayCollection;
import samples.contact.*;
public var ds:DataService;
[Bindable]
public var contacts:ArrayCollection;
public var contact:Contact;
public function initApp():void
contacts = new ArrayCollection();
ds = new DataService("contact");
ds.fill(contacts);
]]>
</mx:Script>
<mx:DataGrid id="dg" dataProvider="{contacts}"
editable="true">
<mx:columns>
<mx:DataGridColumn dataField="contactId" headerText="Id"
editable="false"/>
<mx:DataGridColumn dataField="firstName"
headerText="First Name"/>
<mx:DataGridColumn dataField="lastName" headerText="Last
Name"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
contact.as
package samples.contact
//These imports should be unnecessary in the final release
import mx.data.IManaged;
import mx.data.utils.Managed;
import mx.core.mx_internal;
[Managed]
[RemoteClass(alias="samples.contact.Contact")]
public class Contact
public var contactId:int;
public var firstName:String = "";
public var lastName:String = "";
public var address:String = "";
public var city:String = "";
public var state:String = "";
public var zip:String = "";
public var phone:String = "";

Similar Messages

  • Read encrpted zip file and ftp unzip file

    Hi,
    I have a situation,where i need to read 3 zip files, which are encrpted, and each zip file may have lot of images and text files. all i want to do is, read these 3 zip files and unzip + ftp to another directory. No mapping is involved. if the three files are not there, it should error out.
    I have some ideas, but thought if any of you have better ideas.
    Thanks
    Pandari

    Hi Pandari
    File adapter
    module to zip and unzip
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    <b>Check this weblog:</b>
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Check this out !
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework%3Fpage%3Dlast%26x-order%3Ddate%26x-showcontent%3Doff
    also
    https://service.sap.com/sap/support/notes/965256
    Check this weblog on how to zip the file using XI:
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    PayloadZip Bean
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework%3Fpage%3Dlast%26x-order%3Ddate%26x-showcontent%3Doff
    Through command line
    Check case 2 in this blog
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    or ref plsz go tru it,
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Check this weblog on this from stefan:
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    http://help.sap.com/saphelp_nw70/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    XI/PI: Command line sample functions -> go through case 2
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Create encrypted ZIP files
    Thanks!!!

  • Extension for creating a zip file and unzipping it

    Iam totally new to Dreamweaver and the extensions. So please
    help me with this.
    Assuming i have a .zip file and it contains some html pages
    along with css and gifs.
    The req is to have an Import option, which given this zip
    file, can unzip its contents. The user can work on these html
    pages. When the user finishes working on them, I need an export
    button so that we can package the entire stuff back into a zip
    file.
    How can i implement this ?
    Is there any extension that is available for this ?
    Eagerly looking forward to some useful answers...
    Thanks in advance,
    Ganesh

    There used to be one .. I'm not sure if that was in DMX time
    or DMX 2004
    time .. that, when installed, allowed you to select files
    from the site
    folder or the whole thing and create a zip from them. I don't
    remember what
    it was called or who created it .. but it might be on one of
    my archived
    disks or zips .. I'll try to check it out later today.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Ganesh Ram" <[email protected]> wrote in
    message
    news:engarc$d62$[email protected]..
    > Iam totally new to Dreamweaver and the extensions. So
    please help me with
    > this.
    >
    > Assuming i have a .zip file and it contains some html
    pages along with css
    > and
    > gifs.
    > The req is to have an Import option, which given this
    zip file, can unzip
    > its
    > contents. The user can work on these html pages. When
    the user finishes
    > working on them, I need an export button so that we can
    package the entire
    > stuff back into a zip file.
    >
    > How can i implement this ?
    > Is there any extension that is available for this ?
    >
    > Eagerly looking forward to some useful answers...
    >
    > Thanks in advance,
    > Ganesh
    >
    >

  • How to set password for a zip file and should be checked when reading that

    Hi friends,
    how to set password for a zip file and should be checked when reading that file???
    thanks.
    Praveen Reddy.J

    Heyy man, i think, u did not get my problem.
    all i have to do is:
    i have to create a zip file, and we should secure it with password when creating. and whenever the user wants to open that zip file he should provide correct passowrd otherwise he could not read that file. So, we should check for that also.
    Tanks for reply.

  • Converting html file into zip file and send email attaching zip file

    Hi Experts,
    I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
    So, Now i need to compress the data for less than 7MB.
    I decided to convert HTML File into ZIP File.
    Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
    Correct answer rewarded,
    Thanks & Regards,
    N. HARISH KUMAR

    Hi Experts,
    *// HTML_TAB converting into ZIP File
       DATA  : zip_tool TYPE REF TO cl_abap_zip,
               filename TYPE string ,
               filename_zip TYPE string .
       DATA  : t_data_tab TYPE TABLE OF x255,
               bin_size TYPE i,
               buffer_x TYPE xstring,
               buffer_zip TYPE xstring.
    filename = text-007.                                                                          "'HTML_TAB
    *describe the attachment
       DESCRIBE TABLE html_tab LINES tab_lines.
       bin_size = tab_lines * 255.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length = bin_size
         IMPORTING
           buffer       = buffer_x
         TABLES
           binary_tab   = html_tab.
       IF sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    *create zip tool
       CREATE OBJECT zip_tool.
    *add binary file
       CALL METHOD zip_tool->add
         EXPORTING
           name    = 'FSSAI_MAIL.HTML'
           content = buffer_x.
    *get binary ZIP file
       CALL METHOD zip_tool->save
         RECEIVING
           zip = buffer_zip.
       CLEAR: t_data_tab[],bin_size.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer        = buffer_zip
         IMPORTING
           output_length = bin_size
         TABLES
           binary_tab    = html_tab.
    Thanks & Regards,
    N. HARISH KUMAR

  • Ive gotten a zip file and i have no idea how to open it and view images

    ive gotten a zip file and i have no idea how to open it and view images?

    Double-click it in the Finder.
    (107691)

  • Have an i pad mini and have started an online course. Documents sent via Dropbox and need to know best app to buy to enable me to use documents offline. Documents include zip files and powerpoint. cheers

    i have an ipad mini and have started online course.documents sent to Dropbox. Mixture of word documents, zip files and powerpoint. Need to be able to use documents offline. any suggestions on suitable app that would enable me to transfer documents and work with them off line?

    Depends on what you mean by "work with them offline". If you mean store the documents so you can access them if not connected to the internet, you already have it: DropBox.you can download files from the cloud an use them offline. You will need an app to handle the zip files: I use File Manager, but there are others. File Manager also intergrates with dropbox, Google Drive, and iCloud. If you only need to read them, these apps will take care of that for you.
    As for editing, there are a few options. All have their limitations.
    Some possible apps to look at:
    Pages, Numbers (Apple)
    Document (by Savy soda)
    document 2 go
    Quickoffice
    CloudOn
    Smart Office
    Make sure to read botht he descriptions and the reveiws carefully

  • Name zip file and zipped file in File Receiver

    Dear experts,
    I have a "RFC to File"-scenario. So I have a File Receiver and the received XML needs to be zipped. I have a XSLT mapping that hands over a dynamic file name to the File Receiver. Now when I use the PayloadZipBean my resulting ZIP-file gets the dynamic name. But the zipped XML gets the name "untitled.xml". But I also want the zipped file to get the dynamic name!
    I had a look at Stefan Grube's blog /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    and also at the WIKI http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    Do you know if there is any way I can avoid writing my own adapter module? I would like to stay with SAP standard modules!
    If not, will the module described in that WIKI also work with a File Receiver instead of a Mail Receiver? (I think it should)
    Thank you for any ideas and best regards,
    Peter

    Hello Amit, Hello Abhishek Salvi,
    Thank you again for your advice and the links to the NWDS. I downloaded it and everything went well until the deployment.
    I followed How-to-Guide: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true
    Then I got the error: The DOCTYPE declaration in the ejb-jar.xml deployment descriptor is missing.
    I looked at thread: The DOCTYPE declaration in the ejb-jar.xml deployment descriptor is missing
    I am using PI 7.0, JDK version 1.4.12.
    My local JDK Version 1.5.0_22, NWDS 7.1.
    Could the JDK version on the server be a problem? Or NWDS 7.1 and PI 7.0?
    I used all the libraries mentioned on this page under PI 7.0:
    http://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
    When I create the Enterprise Bean I have to specify "Component and Local Interfaces", e.g. "com.sap.aii.af.lib.mp....."
    But in my PI system I cannot find JAR files with the name "aii.af.lib.mp..."
    Could that be the problem?
    Do I have to specify different "Component and Local Interfaces" when creating the Enterprise Bean?
    Thank you again for any help!
    Best regards,
    Peter
    Edited by: Peter Wallner on Apr 21, 2011 10:13 AM

  • Rename the zip file and send it using the Receiver Mail Adapter

    Hi,
    We have a custom module that will create multiple attachments. The result is then passed to the PayloadZipBean, which zips as per required.
    When we output this to a file adapter, we provide the file name as say "zippedfile.zip" the result is as expected.
    For example, if the custom module created 3 attachments with the names as file1.txt, file2.txt and file3.txt, the zip file zippedfile.zip, will contain 3 files as file1.txt, file2.txt and file3.txt.
    The issue that we are facing is when we use the mail adapter, the zip file is getting renamed to file1.txt.zip i.e to say that it takes the name of the main payload from the custom module (file1.txt)
    TextPayload txtpayload = message.getDocument();
    txtpayload.setContentType("text/plain");
    txtpayload.setName("file1.txt");
    moduleData.setPrincipalData(message);
    We tried using the MessageTransformbean but it doesn't seem to change the name of the file.
    Not sure where we are going wrong. Is it that the output of the payloadzipbean cannot be used and altered by MessageTransformbean?
    Is there any alternative as to rename the name of zipfiles and use it in the mail adapter?
    Appreciate any help on this regard.
    Regards,
    Shabz

    Solved.
    use Transform.ContentDisposition - attachment;filename="youfilename"
    Do read the mail adapter FAQ.
    The parameter can vary for different mail client.

  • .ZIP files and the ZipFile object

    Dove into java.util.zip this weekend and was most unhappy with the docs. Fortunately, searching these forums I was able to make some progress, but am still confused about the ZipFile class.
    I was able to open a FileInputStream, hand it to a ZipInputStream and read a .ZIP file. I was not able to read the .ZIP opening it as a ZipFile (I got the ZipEntries and the header info, but couldn't unzip the data).
    I was able to write a .ZIP with the reverse but was concerned that the ZipFile isn't even documented as supporting file writing. Is the ZipFile a useful thing in some way I haven't discovered, or should I just forget about it?

    this is a simple test for copying a zip file
    java ZipDemo c:\myZip.zip d:\testdir
    import java.util.zip.*;
    import java.io.*;
    import java.util.*;
    class ZipDemo
         public static void main(String [] arg) throws Exception
              ZipFile src = new ZipFile(arg[0]);
              File tgt = new File(arg[1]);     
              if(!tgt.isDirectory())
                   System.out.println(tgt+" is not found, or not a directory");
              for(Enumeration e = src.entries(); e.hasMoreElements(); )
                   ZipEntry ze = (ZipEntry) e.nextElement();
                   File target = new File(tgt, ze.getName());
                   try {
                        target.getParentFile().mkdirs();
                   }catch(NullPointerException npe){} // ignore case where file has no parent
                   if(!ze.isDirectory())
                        copy(src.getInputStream(ze), target);
         static byte [] buffer = new byte [16384];
         public static void copy(InputStream in, File target) throws IOException
              FileOutputStream out = new FileOutputStream(target);
              int bytesRead;
              while((bytesRead=in.read(buffer))>0)
                   out.write(buffer,0,bytesRead);
              out.close();
              in.close();     
    }

  • When I try to download Firefox for Windows, it unzips the file and says it cannot find 7-Zip file and stops download

    I have windows 7 on a desktop. I had firefox before which worked fine then I attached a router to my computer that may have been defective and may have damaged the computer. I took the router off. Firefox suddenly reverted back to the start up page of when you are new to firefox, e.g. here's how it works, and stopped loading my normal home page. Even though I entered the tabs I wanted for my startup home page every time I shut down my computer it went back to the beginning thinking I had only just loaded it. I did lots of system diagnostics but nothing appeared to be wrong with my computer so I uninstalled Firefox, restarted, then downloaded it again. When I download it, it says run or save and I choose run. Then it extracts the file and a message comes up that says "7-Zip. Cannot find file. Then nothing more happens. No files are downloaded to my computer and it's as though I never tried to download it.

    SAVE the installer to your hard drive (do not use the "Run" option); save it to your Desktop so that you can find it. When the download is complete, close whatever browser you have open, click or double-click the file you downloaded and see if it installs without a problem.
    The downloader is a self-extracting archive and should not need or use 7-zip. I have 7-zip installed on my system and it does not interfere with nor is it used in the Firefox install process. Hopefully, you have not set the downloading of .exe files to be associated with 7-zip.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • To upload the ZIP file and get the filenames available in ZIP file in ABAP

    Hi Experts,
    For my requirement, file from legacy comes as ZIP file with number of files in that.
    Please provide one code sample to upload the ZIP file from local workstation and get the filenames available in ZIP file to check few filename validation checks for the available files in report program.
    Thanks in Advance,
    Regards,
    Basani

    1. Copy the ZIP file into App server
    2. Call function
      call function 'RFC_REMOTE_PIPE'
        destination 'SERVER_EXEC'
        exporting
          command = command  " Unzip command gunzip /path & file
          read = 'X'
        tables
          pipedata = std_lines
    then you can read the files and can validate the file names

  • PI FTP get zip file and want to unzip with origin filenames

    Hello everybody,
    we get zip files from ftp and want to unzip this file in one target directory (file adapter). May be, there are more than one file in the zip file, for example test1.txt,test2.txt,test3.txt and zip file name is zipexample.zip. With adapter parameters it is possible to use the name of the zip file, but I've no idea to get the origin filenames (test1.txt, ...).
    I don't want to use the OS Commands to do this.
    I know that's not realy an workitem for PI.
    Is there anyone, who has an idea. Thanks
    Kind regards - Jochen

    Hi,
    Try out this blog
    Working with the PayloadZipBean module of the XI Adapter Framework
    regards,
    venkat.

  • File Adapter to read Zip file and send it as input to another webservice

    Hi,
    I have the below requirement:
    1. A service will generate 3 attachments and place it in a particular directory.
    2. SOA service has to pick those 3 files and send those files as input to another custom application which will email.
    Design :
    1. First SOA will create an archive file of those 3 attachements and then file adapter will poll for that zip file in that location and send that file as a whole to the custom application.
    Query:
    Now my question, is the above design feasible? If so, how to configure the file adapter to pass the file as input to that custom application?
    Kindly do the needful
    Thanks,
    Priya

    You can accomplish this via java embedding activity...Create a java embedding, which will create a zip file.. this java code is easy to implement..
    You can also do away with un-necessary polling file adapter.. and you can use "Synchronous File Read" operation of File Adapter.. For Sync Read, you'll have to pass the zip file name, which you can easily fetch from java embedding activity..
    Let me know, if this doesn't work.

  • Zip files and Adobe Acrobat files

    Hello all,
    I have a couple of kinda distinct questions that I wanted to ask. I hope I've chosen the right sub-forum to post them in. My questions are
    1) when I try to unzip a .zip file in my Documents folder I get the following error message
    "Archive Utility - unable to unarchive "CdnEnergy.zip" into "Documents". (Error 1 - Operation not permitted.)"
    ditto if I move it to the Desktop and try there. This doesn't seem to be a 'space' problem as my computer is very new and I haven't loaded it up with lots of stuff. I have unzipped this file before (admittedly not on a Mac).
    2) How can I set Adobe Acrobat to be the default application for .pdf files so that when I click on a pdf file it's opened by Adobe Reader rather than the Mac Viewer? I know I can select Adobe with a Ctrl+click, but can I set it so that it's always the default?
    Thanks very much for your help,
    Eoghan

    Welcome to the Discussions!
    The first problem is not obvious, but I would suggest using Disk Utility to repair permissions. Also, you could download the free Stuffit Expander to have an alternate unzip program.
    The second problem is easy. In the Finder, select a pdf file and then select File->Get Info. In the window that appears, select the Acrobat as the Open With application and select the option to always use this application.
    bd

Maybe you are looking for

  • How can i add songs from my itunes library to my iphone's ipod

    basically the songs in my  itunes library will not sync or how do i do it to them on my iphones ipod

  • Where did the iTunes COM SDK go?

    I was going to go download the iTunes COM SDK, originally at http://developer.apple.com/sdk/, but it appears that when you click on the link to get it, it redirects you to the ADC site... which doesn't have the iTunes COM SDK anywhere in there. Does

  • Error in installing sun java directory server

    dear , i am trying to install sun java directiry server from sun java enterprise server using command line ( ./installer ), but this error reported to me when i issue the installer command . # ./installer Error occurred during initialization of VM ja

  • WebLogic Portal 10.3 cannot initialize graphical installation in Debian 6.0

    Hello everyone. I have a problem with installing WebLogic Portal (and WebLogic Server also) with graphic mode in Debian 6.0 Squeeze. I've installed normally in Ubuntu 10.04 amd64 (openjdk-6 amd64), and everything works nice. But when I tried to insta

  • List of Sales Orders

    Hai all, 1. I want to know the list of sales orders that are billed and the list of sales order that are rejected? 2. How to block a sales order totally(Shall we have to reject each item or is there any provison at the header level So that I can reje