MAXL Import Database (and export data?)

I have an import database MAXL command that is working great (sql account and password substituted).  The rule file has a SQL connection to our ERP. 
MAXL> import database PLANNING.DetView data connect as sql_account identified by "Password" using rules_file "'\\\oceanus-d13\\Oracle\\Middleware\\user_projects\\epmsystem3\\EssbaseServer\\essbaseserver1\\app\\PLANNING\\DetView\\NLIncur.rul'" on error write to "'G:\\DB_Process\\DetView_Process\\errors\\DetView_NLIncur_data_load.mxl.err'";
We are going to run this on a nightly basis and our requirement is to have a historical record of what was "pulled" from our ERP (even if it didn't make it in to Hyperion).
Here are the options that I've thought of:
Have a separate SSIS package use the same SQL to dump the data out of the ERP database into a flat file.  The downside to this is that I'm using subvars from Essbase that don't exist in SQL.  So I'd have to write the SQL in a different way potentially causing discrepancies.
A separate Data Export of what was loaded.  The downside here is that it doesn't have the errors that never made it in.
I can't find another option in the import database command to spool the output of the SQL to a file. 
Does anybody have thoughts on how to do this or are there other ways to achieve what I'm trying to do?
Thanks-
Cameron McClurg

The SQL run via the load rule understands my subvars.  The load rule SQL looks like this:
select...
WHERE
  AND (('1' = '&IncSpanYr' --IF THE PERIODS SPAN YEARS
  AND (('12' = '&CurMoNm' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
  AND ((A.FISCAL_YEAR = '&CurYrNm' AND A.ACCOUNTING_PERIOD IN ('&PriMoNm', '&CurMoNm'))
This turns into:
WHERE
  AND (('1' = '1' --IF THE PERIODS SPAN YEARS
  AND (('12' = '12' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
  AND ((A.FISCAL_YEAR = '2014' AND A.ACCOUNTING_PERIOD IN ('2', '3'))
My issue is getting a dump of all that data that the SQL is pulling.  I don't see a way to do that in the import database command.  A separate job on the SQL side (like SSIS) could pull the data, but can't access the subvars easily.  Does that make sense?  Or did I misunderstand your suggestion?
Thanks-
Cameron

Similar Messages

  • Importing and Exporting Data with a Clob datatype with HTML DB

    I would like to know what to do and what to be aware of when Importing and Exporting data with a Clob Datatype with HTML DB?

    Colin - what kind of import/export operation would that be, which pages are you referring to?
    Scott

  • Problem with Import and Export Data Wizard

    Downloaded and installed SQL Server Express 2008 R2 today because I want to explore how Access interacts with SQL Server (using my home computer). I'm using Access 2010 (under Windows 7), so the 2008 version of SQL Server Express seemed to be the version
    to use.
    After a couple of false starts, installation appeared to go okay. After the installation. My Start menu listed Microsoft SQL Server 2008 and Microsoft SQL Server 2008 R2. The latter listed Import and Export Data (64-bit). When I clicked that, the first Import
    and Export Data Wizard page was displayed. I wasn't ready at that time to explore the wizard, so I closed it. An hour or so later I again attempted to open the Import and Export Data wizard. This time, the wizard didn't open. Instead this error message was
    displayed: "The SSIS Runtime object could not be created. Verify that DTS.dll is available and registered."
    I found DTS.dll on my computer at C:\Program Files\Microsoft SQL Server\100\DTS\Binn, so the file is available, but don't know whether it is registered.
    How can I correct this problem?

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

  • Import master and transaction data

    Hallo,
    I need the information, how I can import master and transaction data.
    I fellow the introductions from SAP.Help (see Link), but the Programm UPB_DATA_IMPORT
    is failed. (See point 3 in Link):
    http://help.sap.com/saphelp_nw04/helpdata/en/7a/6d313f8815d036e10000000a114084/frameset.htm
    If I want to try point 3. The error massage.
    “Program UPB_DATA_IMPORT does not exist Message no. DS017”
    will result.
    What I can do? Who can me say why I haven’t the Programm UPB_DATA_IMPORT?
    What is wrong?
    Please help me.I need Data to make a demo planning
    thanks

    Hi,
    There is a set of objects in business content (check under SAP DEMO in business content). You can activate some or all of these demo objects (for example demo cubes).
    There are programs which you can then execute to create the datafiles which can then be loaded to these demo cubes.
    " Start report RSO_BC_FILES_IN_BDS (Transaction SE 38), specify the required (Demo) InfoObject/InfoCube and choose the "Start BDN" button. The system will display all (generally one) CSV files which were supplied with the InfoObject/InfoCube. You can either export this CSV file into a local directory or you can write it directly onto the application server. For loading, proceed as described under section 1. " --- from OSS note 370397

  • I have followed "Importing favorites and other data from Internet Explorer" but although I've worked through the dtages and it says it has worked, the expected internet explorer folder does not appear in bookmarks

    I have installed Firefox today, and like the look of and the speed. But I have an extensive set of foldersin my IE Favorites and remebered passwords I don't want to have to reimput.
    I have now tried twice folowing "Importing favorites and other data from Internet Explorer " which seemed to go smoothly, once with IE open and the other with it closed, and closed down my PC between each attempted installation. Any ideas?

    It usually works better if you export the Favorites in IE to an HTML file and import that file in the Firefox Bookmarks Manager.
    * Export the favorites in IE to an HTML file (bookmarks.html): File > Import and Export
    * Import the HTML file in Firefox: Bookmarks > Organize Bookmarks > Import & Backup > Import HTML: From File
    See also http://kb.mozillazine.org/Import_bookmarks ("Import from another browser" and "Import from file")

  • Saving data in a database and publishing data to multiple clients

    Hi there.  I'm using a bunch of Compact FieldPoint modules to read out a few hundred voltages, temperatures, currents, etc.  I acquire this data at about 1 Hz (pretty slow).  I would like to record this data to some sort of database on a cpu (running LV 8.0, connected to the FieldPoint mods), and serve the data to multiple (between 10 and 50) clients over the net, each running a compiled stand-alone "data grabber and viewer" application (which I'll have to write of course).  I'd like these external clients to basically be able to pick a certain variable from the database, and plot it for the last week (or something like that).  Presumably the standalone client would send some database query to the server.  The server would then send the data to the client, and the standalone client would receive the data and plot it as the user sees fit.  My question is how to implement this database?  Should I use the LabView "Database" Add-On to create a database to store the data? Is it better to just store the data as binary and write my own data fetching routine to handle queries?  How can I write this database to disk for permanent storage? Could this database be accessible outside of LabView?
    Any help on this would be appreciated.  Thanks!
    Jesse Wodin
    Post Doctoral Researcher
    Stanford Linear Accelerator Center
    650-504-2512

    Hi Jesse,
      The Citadel database is not a relational database.  It's highly optimized for storing lower-rate (non-waveform) channel-by-channel, or "trace" measurement data.  Another option you can consider is using DSC and Citadel on the server then writing a utility to export the data from Citdael to an SQL database.  --That would solve the problem of having to write a logger application from scratch.  You would only have to write the relatively simple application to export the data from Citadel and import it into a relational database.
      You could accomplish this two ways.  First, DSC includes a set of VIs that will retrieve historical data from Ciatdel.  You could use LabVIEW to parse this data and write it to a table in a relational database.  Second, Citadel actually includes a locally accessible ODBC interface.  (You can query Citadel using an SQL query from the local computer).  You could query Citadel using this interface, then write the result to a table in a relational database.
      To view Citadel in its native format or query a Citadel database using ODBC from a remote comptuer that comptuer would need to have a licensed DSC RTS installed.
    ~~

  • Import database and schema

    I have a Oracle 10.2. I need to import database to this db. I've got database dmp file. Before this import, what do I need to do?
    I believe I need to create a database
    Do I need to create tablespaces that should be same with the original database? something else I need to do before I import?
    Please advise
    S.

    imp help=yes
    Import: Release 10.2.0.1.0 - Production on Wed Mar 31 15:57:20 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    You can let Import prompt you for parameters by entering the IMP
    command followed by your username/password:
         Example: IMP SCOTT/TIGER
    Or, you can control how Import runs by entering the IMP command followed
    by various arguments. To specify parameters, you use keywords:
         Format:  IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
         Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
                   or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    USERID must be the first parameter on the command line.
    Keyword  Description (Default)       Keyword      Description (Default)
    USERID   username/password           FULL         import entire file (N)
    BUFFER   size of data buffer         FROMUSER     list of owner usernames
    FILE     input files (EXPDAT.DMP)    TOUSER       list of usernames
    SHOW     just list file contents (N) TABLES       list of table names
    IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
    GRANTS   import grants (Y)           INCTYPE      incremental import type
    INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
    ROWS     import data rows (Y)        PARFILE      parameter filename
    LOG      log file of screen output   CONSTRAINTS  import constraints (Y)
    DESTROY                overwrite tablespace data file (N)
    INDEXFILE              write table/index info to specified file
    SKIP_UNUSABLE_INDEXES  skip maintenance of unusable indexes (N)
    FEEDBACK               display progress every x rows(0)
    TOID_NOVALIDATE        skip validation of specified type ids
    FILESIZE               maximum size of each dump file
    STATISTICS             import precomputed statistics (always)
    RESUMABLE              suspend when a space related error is encountered(N)
    RESUMABLE_NAME         text string used to identify resumable statement
    RESUMABLE_TIMEOUT      wait time for RESUMABLE
    COMPILE                compile procedures, packages, and functions (Y)
    STREAMS_CONFIGURATION  import streams general metadata (Y)
    STREAMS_INSTANTIATION  import streams instantiation metadata (N)
    VOLSIZE                number of bytes in file on each volume of a file on tape
    The following keywords only apply to transportable tablespaces
    TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
    TABLESPACES tablespaces to be transported into database
    DATAFILES datafiles to be transported into database
    TTS_OWNERS users that own data in the transportable tablespace set
    Import terminated successfully without warnings.
    SHOW just list file contents (N)

  • Import, edit, and export QuickTime document: wise? how to maintain quality?

    Can iMovie HD 6.0.3 be used to import a reasonably-high-quality QuickTime file (Apple Graphics compression), edit it, and export to Quicktime, all resulting in a QuickTime file with the same clarity as the original?
    I have a quicktime file that captures a demonstration on my desktop. It was recorded with SnapZ Pro (with movie option) into this format: Apple Graphics, 889 x 500, 256, IMA 4:1, Mono, 22.050 kHz. (Note: I got 889x500 when I constrained SnapZ to a 16x9 format.)
    I need to clip out sections, rerecord some of the audio, insert snippets of replacement video (re-recorded). I have Quicktime 7.1.3 Pro, but I had this idea it would be easier to do this editing with IMovie HD 6.0.3.
    My problem is that everything I export has noticeably worse quality than the original source. I have tried all sorts of projects (DV, HDV, MPEG-4, ISight). I've tried exports at full quality, lower quality, various expert settings.
    For example:
    - Create a DV-Widescreen project.
    - Import the movie. What I see on the screen is slightly smaller (in both dimensions) than the QuickTime Player shows me, and quite noticeably blurrier.
    - Picking Expert export, I use Compression: Graphics, Depth: Color, Quality: Best, key frame rate 24, Dimensions 889x500, Scale: Letterbox.
    - The QuickTime file displays as the right size, with a tiny black border for letterboxing, and with crummy quality (text has shadows, making it worse than just blurry.) All this despite being 30MB from a 3.2MB original.
    Quite likely, I'm using the wrong tool. I don't have a camcorder - I don't even have a TV - so I don't know any of the jargon. What would be the right tool for this task? Stick to Quicktime Pro?
    MacBook   Mac OS X (10.4.8)  

    How would Final Cut Express work for editing quicktime as above?
    same answer:
    FCE handles dv/NTSC/PAL only ...-
    for sure, you can import "any format/res" ...- with loss of quality, if import doesn't fit standards...- and: FCE is the "more mightier" tool, means, you can easiely arrange two/many videos in one picture, arrange them, position them ...-
    if you want to stay with your original settings, you have to use QTpro (less convenient) or FCP (less cheap) ...

  • Importing Contacts and Calendar Data

    Hi there
    I use a 5G 80gb Ipod on my Windows Computer and various Ipod programs to try to import the Contacts and Calendar Data from Microsoft Outlook and then use the data contained on Ipod is there any way that I can do the same from BT Yahoo Mail, Email folders please as I don't use Microsoft Outlook. Many thanks for any information or help you can give me on this.
    Kind regards

    Note: An upcoming release of BlackBerry Link will support full two-way synchronization.
    please to way sync  now

  • How to import sms and mms data from 6600 to N73

    Hi to all, I'm trying to import all my old data on my nokia 6600, to my new N73 ME, fw rel V 3.0368.0.0.30, because I don't like the idea to lose all my sms and mms from the old phone. I encountered a lot of problems. First thing, the transfer apps only leaves to import via bluetooth and so on data like contacts and multimedia. So I tried to copy from dir mail of the mmc of Nokia 6600 to the dir mail2 under hidden folder Private on the mini sd of my new N73. What happens? In the first moment it seems all ok, because when I switch under sms to memory cards, the N73 read all the sms like they were on phone. But first of all, it doesn't see the mms, it see only the title, but when I open them it gives me error. This doesn't happens with sms, that are all ok. The problem is that when I turn off the phone, it doesn't turn on anymore, it hangs until I've to remove the mini SD. After many tries, I've understood that maybe the problem is with the file index in mail2 folder. Someone has any idea or have tried to import sms and mms from his old Nokia phone to the new N73 and so could help me? Thanks.

    have u actually tried to connect the 6600 with the latest PC suite to see what happens?
    if that fails, maybe have a look at the Oxygen Phone Manager software and see if they offer a free trial. i know i used to use OPM before nokia updated there PC suite to work with my 3230Message Edited by rich_enduro on 02-Jan-2007
    06:30 PM
    Nexu 5

  • Can we connect Mapview to multidimensional database and retrieve data

    I have zero knowledge on MapViewer and hence I am curious to know, if we can connect MapViewer to multidimensional database(Like Essbase etc...) and retrieve data from them ???

    Currently, MapViewer needs a conection to an Oracle Database where MapViewer metadata is stored. You may be able to access external spatial data if there is a java implementation of an interface to access external native data. MapViewer provides a spatial provider implementation for shapefiles. For other data, including from external databases, you may be able to access them if a java class implements the spatial provider interface class. Mapviewer Users Guide has some notes about implementing a external spatial provider.

  • Load RData and export data.frame

    Hi
    I've been carefully following the related "Using RData in Azure ML" post, but I still cannot extract and export the data.frame with an R script module.
    My RData file (called FINAL_REF.RData) was locally zipped and loaded as a .zip file to my workspace
    I've connected the zip file (called FINAL_REF.zip) to the 3rd port of the R script module
    Knowing that my data.frame (named "FINAL_REF") is the only element in the RData file, I've included this simple code in the module:
            test1: load("src/FINAL_REF.rdata"); maml.mapOutputPort("FINAL_REF");
            test2: df <- load("src/FINAL_REF.rdata"); maml.mapOutputPort("df");
    But none of them worked:
       I get a "Error 0063: Mapped variable must be of class type data.frame at this time." for test1
       I get a "Error 1000: RPackage library exception: Reading output R workspace failed" for test2
    Thanks in advance for your support

    Hi
    The output shows clearly all data.frame columns, at the end it shows the following message
    DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 1000: RPackage library exception: Reading output R workspace failed ---> Microsoft.Analytics.Modules.R.ErrorHandling.RException: Reading output R workspace failed ---> System.Text.DecoderFallbackException: Unable to translate bytes [B5] at index -1 from specified code page to Unicode.
    Module finished after a runtime of 00:01:43.8298727 with exit code -2
    Module failed due to negative exit code of -2
    Some fields are strings (song, artist, and album names), so I guess there might be some "weird" characters there ... is it the root cause ? can I locally change these columns to Unicode with R?
    BR
    An extract of the log with the data.frame structure below:
    [ModuleOutput] The following files have been unzipped for sourcing in path=["src"]:
    [ModuleOutput]
    [ModuleOutput] Name Length Date
    [ModuleOutput]
    [ModuleOutput] 1 FINAL_REF.RData 278804268 2015-02-02 10:40:00
    [ModuleOutput]
    [ModuleOutput] Loading objects:
    [ModuleOutput]
    [ModuleOutput] 'data.frame': 6590994 obs. of 24 variables:
    [ModuleOutput]
    [ModuleOutput]
    [ModuleOutput] $ country : Factor w/ 457 levels "","AD","AE","AF",..: NA NA NA NA NA NA NA NA NA NA ...
    [ModuleOutput]
    [ModuleOutput] $ classP01 : Factor w/ 5 levels "","curieux","mainstream",..: NA NA NA NA NA NA NA NA NA NA ...
    [ModuleOutput]
    [ModuleOutput] $ artistid : int 2330 11584 NA 12453 2925 12674 39 1028 NA 1204 ...
    [ModuleOutput]
    [ModuleOutput] $ artistname : Factor w/ 7972 levels "","-M-","!DelaDap",..: 7018 7970 NA 1495 1998 6448 44 719 NA 839 ...
    [ModuleOutput]
    [ModuleOutput] $ songname : Factor w/ 90734 levels "","'39","'5150'",..: 8522 35744 NA 40206 89717 48188 28442 38477 NA 90595 ...
    [ModuleOutput]
    [ModuleOutput] $ albumname : Factor w/ 13751 levels "","'74 Jailbreak",..: 5034 7563 NA 893 8355 10285 4421 6535 NA 67 ...
    [ModuleOutput] $ albumid : int 3196 7803 NA 2933 14642 968 14473 6463 NA 16564 ...
    [ModuleOutput]
    [ModuleOutput] [1] "Saving variable FINAL_REF ..."
    [ModuleOutput]
    [ModuleOutput] [1] "Saving the following item(s): .maml.oport1"
    [ModuleOutput]
    [ModuleOutput] $value
    [ModuleOutput]
    [ModuleOutput] NULL
    [ModuleOutput]
    [ModuleOutput]
    [ModuleOutput]
    [ModuleOutput] $visible
    [ModuleOutput]
    [ModuleOutput] [1] FALSE

  • Best Method for Importing and Exporting Data to a local 'resrouce'  file

    I've searched the forum, and seen glimmers of hope to what I am trying to piece together - but not in a concise way that will sink into my brain.
    Using Javascript on a PC for IDCS2, I'm writing a simple script that has a user interface.
    I'd like to have 4 default values for the user interface to be read from (and if altered, written to) a text file.
    What's the simplest way to go about this? I've read through many posts, and toyed around with readln and writeln functions, but nothing is working out. For some reason, I can't send any information to any file - let alone read it back in.
    Could somebody point me in the right direction? For simplicity sake let's say I have just one variable, "myVariable" - and I want to send it to and read it from c:\test.txt.
    Someday - this will all sink in. Right now, I'm reaching for Aspirin.

    Hi D Scott Chinn,
    Try something like this:
    var myFile = File.saveDialog ("Save file as:")
    if(myFile != undefined){
    var myString = "Write this string to a file."
    myFile.open("w");
    myFile.write(myString);
    myFile.close();
    Thanks,
    Ole

  • How to add attachment and export data into MS Access

    Let's say that I use PDF file to capture data from users and import the data to MS Access database (via XML). I wonder if there is a way to let user add attachments in Acrobat Reader and when the data is exported, the attachments are kept separately in a new column in MS Access.

    If you are trying to do this with script from within the PDF ...I do not think so. You woudl not be able to get the stream of bits that make up the attachment to be able to write it to the DB.
    Paul

  • Trouble with Databases and putting data into them

    I have been working on this application for about three days and choose the tool because I thought database connectivity was super simple. Provided I didn't need to anything but get data or add data I could use the WYSIWG editor to drag and drop items to make the connections. Every single sample, book, tutorial or helpful guide I have found on the internet does the same thing.
    I can always get data from the database but when I press the submit button using their examples they all fail. Plus, most of these from the beta 2 and I have not found anything useful for FB4 (Release), PHP and MySQL.
    I can provide whatever information is need to help me understand I am hoping for answer, link to current tutorial or article full explaining how it works using the automated system or confirmation it does work use this other technology that works better.
    Anything you might have would be super thanks!
    Frank

    I have some more information that I think might be helpful. I am following the samples on lynda.com for their Flex 4 and Flash Builder 4 Essential training. Attached is the code that I created as part of the example. When I press the submit button it says in the status bar transferring data to localhost like it is stuck. When I trace createCategoryResult.token.result it shows null in the console. Then I thought why not debug. I put my breakpoint on the line that calls the createCategory method. When I viewed the variables I was able to see the form picked my up items then dropped them into the object. Further, when I debugged createCategoryResult.token = categoryService.createCategory(item); line I found that it was giving me back a lot of undefined. I am not sure where I am going wrong. Can anyone confirm if the Flex and Action Script is correct or point me where to debug and what to look for. I really appreciate any assistance available.
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      skinClass="skins.HPAppSkin"
      xmlns:views="views.*"
      xmlns:categoryservice="services.categoryservice.*"
      xmlns:forms="forms.*">
      <fx:Script>
        <![CDATA[
          import events.CategoryEvent;
          import mx.controls.Alert;
          import mx.events.FlexEvent;
          import mx.rpc.events.ResultEvent;
          import valueObjects.Category;
          protected function categoryGrid_creationCompleteHandler(event:FlexEvent):void
            getAllCategoryResult.token = categoryService.getAllCategory();
          protected function createCategory(item:Category):void
            createCategoryResult.token = categoryService.createCategory(item);
            trace(createCategoryResult.token.result);
          protected function myForm_insertHandler(event:CategoryEvent):void
            createCategory(event.category);
            trace(event.category.category);
          protected function createCategoryResult_resultHandler(event:ResultEvent):void
            myForm.category = new Category();
            currentState = "default";
            Alert.show("Your data was inserted", "Success");
        ]]>
      </fx:Script>
      <s:states>
        <s:State name="default"/>
        <s:State name="insert"/>
      </s:states>
      <fx:Declarations>
        <s:CallResponder id="getAllCategoryResult"/>
        <categoryservice:CategoryService id="categoryService"
          fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
          showBusyCursor="true"/>
        <s:CallResponder id="createCategoryResult" result="createCategoryResult_resultHandler(event)"/>
      </fx:Declarations>
      <s:Panel title="Categories" title.insert="Insert New Category">
        <views:CategoryGrid
          width="700" height="250"
          includeIn="default" id="categoryGrid" creationComplete="categoryGrid_creationCompleteHandler(event)" dataProvider="{getAllCategoryResult.lastResult}"/>
        <forms:CategoryForm2 id="myForm" includeIn="insert"
          cancel="currentState='default'" insert="myForm_insertHandler(event)"/>
        <s:controlBarContent>
          <s:Button
            label="Insert Category" click="currentState='insert'"
            includeIn="default"/>   
        </s:controlBarContent>
      </s:Panel>
    </s:Application>
    ______Form_______
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:valueObjects="valueObjects.*">
      <fx:Metadata>
        [Event(name="insert", type="events.CategoryEvent")]
        [Event(name="cancel", type="flash.events.Event")]
      </fx:Metadata>
      <fx:Script>
        <![CDATA[
          import events.CategoryEvent;
          protected function submitBtn_clickHandler(event:MouseEvent):void
            category.category = categoryTextInput.text;
            category.description = descriptionTextInput.text;
            var ev:CategoryEvent = new CategoryEvent("insert");
            ev.category = this.category;
            dispatchEvent(ev);
          protected function cancelBtn_clickHandler(event:MouseEvent):void
            dispatchEvent(new Event("cancel"));
        ]]>
      </fx:Script>
      <fx:Declarations>
        <valueObjects:Category id="category"/>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <mx:Form defaultButton="{submitBtn}">
        <mx:FormItem label="Category">
          <s:TextInput id="categoryTextInput" text="{category.category}"/>
        </mx:FormItem>
        <mx:FormItem label="Description">
          <s:TextInput id="descriptionTextInput" text="{category.description}"/>
        </mx:FormItem>
        <mx:FormItem direction="horizontal">
        <s:Button id="submitBtn" label="Submit" click="submitBtn_clickHandler(event)"/>
         <s:Button id="cancelBtn" label="Cancel" click="cancelBtn_clickHandler(event)"/>     
        </mx:FormItem>
      </mx:Form>
    </s:Group>

Maybe you are looking for

  • How can I use my iPhone'hot spot to send email from my computer ?

    Hi, My land line is dead ... so no phone nor internet at home.  But I can use my iPhone'hot spot to get on the web from my iMac.  Great ... it works !  Oups !   I cannot send email from my computer using my iPhone's hot spot with Mail. How do I do th

  • Help with logging in to my Satellite L10

    I have a Satellite Pro L10 with WinXP Pro installed in it. One day, when I started my notebook, a Windows logon window came up and was asking for a password. It already had my name in the username box but no password. I did not enter a password when

  • Protecting documents

    Does anyone know how to protect a pdf portfolio from being locally saved or from extracting files/pages.  These are documents that are not uploaded to internet however are shared with a number of people who should only be able to open and view docume

  • Problem with table mapping

    Hi guys, I need to catch all the changes made to Transaction KS03 so I can make a report for change logs. Which table can i see these data? Thanks a lot! Regards, Mark

  • How to view swf/html online ?

    I'm a bit confused about how to use the swf/html export. I can do it, and see the results, but only if I choose "make HTML file", in which case the html file with the flash content opens in the browser (locally). But when put online, the page doesn't