Extenal table stores data in different format

I used the following statement I found at
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch12.htm
exaclty.
CREATE TABLE emp_load (first_name CHAR(15), last_name CHAR(20), year_of_birth CHAR(4))
ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY ext_tab_dir
ACCESS PARAMETERS (RECORDS FIXED 20 FIELDS (first_name CHAR(7),
last_name CHAR(8),
year_of_birth CHAR(4)))
LOCATION ('foo.dat'));
Alvin Tolliver1976
KennethBaer 1963
Mary Dube 1973
And when I select from table I get three rows, but the format is all wrong.
SQL> select * from emp_load;
FIRST_NAME LAST_NAME YEAR
Alvin Tolliver 1976
hBaer 196
Kennet
Dube 197
Mary
Can anybody please tell me what's going on here??

$ cat foo.dat
Alvin Tolliver 1976
Kenneth Baer 1963
Mary Dube 1973
$ sqlplus scott/tiger
SQL*Plus: Release 9.2.0.4.0 - Production on Wed Jan 25 11:35:16 2006
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
SQL> CREATE TABLE emp_load (first_name CHAR(15), last_name CHAR(20), year_of_birth CHAR(4))
  2  ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY ext_tab_dir
  3  ACCESS PARAMETERS
  4  (records delimited by newline
  5  FIELDS terminated by ' '
  6  )
  7* LOCATION ('foo.dat'))
SQL> /
Table created.
SQL> select * from emp_load;
FIRST_NAME      LAST_NAME            YEAR
Alvin           Tolliver             1976
Kenneth         Baer                 1963
Mary            Dube                 1973
SQL>                                                                                            

Similar Messages

  • How a relational table stores data

    Hi,
    Can anyone please tell me how a relational table stores data internally? I mean what happens internally when we insert a new row into table? Please give me link of PDFs that I needed to go through. What I want is to be able to write a code for Relational objects such as table. What kind of preparation is needed for this?
    Please give your answer in detail. You may send me direct email at [email protected]
    Quick answers are highly appreciated.
    Thanks in advance !!!
    Edited by: DataExpert on 01-Sep-2009 10:55

    Hi,
    Can anyone please tell me how a relational table stores data internally? I mean what happens internally when we insert a new row into table? Please give me link of PDFs that I needed to go through. What I want is to be able to write a code for Relational objects such as table. What kind of preparation is needed for this?
    Please give your answer in detail. You may send me direct email at [email protected]
    Quick answers are highly appreciated.You question is not clear what you want to know exactly.
    With respect to relations tables you can get the information on google it self
    http://livedocs.adobe.com/coldfusion/6.1/htmldocs/db_basi4.htm
    http://en.wikipedia.org/wiki/Relational_database
    I mean what happens internally when we insert a new row into table? Please give me link of PDFs that I needed to go throughRefer to : http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/memory.htm
    the above links gives the idea of oracle memory architecture, then if we say some thing how it process then you can understand.
    What I want is to be able to write a code for Relational objects such as table. What kind of preparation is needed for this? You need to know the SQL and PL/SQL , which enables you to handle the things.
    Please give your answer in detail. You may send me direct email at [email protected]
    Quick answers are highly appreciated.we are not hear to send email or to do the development things. We are spending some of our vauable time to help out and to learn some thing from forums. Sharing views and knowledge across. You must understand and we will be high appreciate that, f you do so.
    HTH
    sb92075 ,
    - Pavan KumarN

  • Inserting data from one table to another in different format

    Hello,
    I would like to know what I am doing wrong with the following code when I write a data from one another to another table in a different format. I am now learning PL/SQL and am using this as
    a test problem.
    I have a table called students which has the following columns:
    SQL> desc student
    Name Null? Type
    ----------- ----------------STUDENT_ID NUMBER(10)
    COURSE VARCHAR2(10)
    CREDITS NUMBER(10)
    I have created another table called new_student which has the following structure:
    SQL> desc new_student
    Name Null? Type
    ----------------------------------------- -------- ------------- STUDENT_ID NUMBER(10)
    COURSE VARCHAR2(30)
    CREDITS VARCHAR2(10)
    The data in the student table is:
    SQL> select * from student;
    STUDENT_ID COURSE CREDITS
    1 Science 4
    1 History 3
    2 Science 4
    2 History 3
    2 Math 4
    3 Sociology 3
    3 Psycology 3
    I want to store the STUDENT table data in NEW_STUDENT table as:
    STUDENT ID COURSES CREDITS
    1 Science/History 4/3
    2 Science/History/Math 4/3/4
    3 Sociology/Psycology 3/3
    This is my code:
    DECLARE
    -- Get all the student IDs
    CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
    -- Get the information for each student ID
    CURSOR courses_cursor(nstudentid number) is select course, credits from student where student_id=nstudentid;
    nIndex     INTEGER;
    pltcourses     DBMS_SQL.VARCHAR2_TABLE;
    pltcredits     DBMS_SQL.NUMBER_TABLE;
    newcourses varchar2(50);
    newcredits varchar2(10);
    BEGIN
    FOR student_rec IN studentlist_cursor
    LOOP
    nIndex:=0;
    -- Loop through each student ID from student_rec to get the
    --courses and creditsstudent ID
    FOR courses_rec in courses_cursor(student_rec.student_id)
         LOOP
         nIndex:=nIndex+1;
         pltcourses(nIndex):=courses_rec.course;
    -- Store the course data for each student ID in newcourses
    -- while doing so check if it is null or put a '/' between each course
    loop
    if newcourses is null then
    newcourses:=pltcourses(nIndex);
    else
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    end if;
    end loop;
         pltcredits(nIndex):=courses_rec.credits;
    --Store credits data in variable newcredits
    --If the newcredits is not null then put a '/' between each credits
    loop
    if newcredits is null then
    newcredits:=pltcredits(nIndex);
    else
    newcredits:=newcredits||'/'||pltcredits(nIndex);
    end if;
    end loop;
    -- Insert student id, newcourses, newcredits into NEW_STUDENT
    INSERT INTO NEW_STUDENT
    (student_id ,
    course,
    credits
    ) VALUES
    (student_rec.student_id,
    newcourses,
    newcredits
    COMMIT;
    -- come out of the student id record and go to the next student --id record
    END LOOP;
    -- come out of the loop
    END LOOP;
    END;
    While doing so I get an error message:
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 23.
    The error is at the line:
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    Can anyone help me by pointing out where the mistake is?
    Thank you for reading this long mail.
    Thank you.
    Rama.

    Hi dude
    there is lot of error in ur pl/sql.
    and u have created table new_student with columns
    student_id number(10),
    courses varchar2(30),
    credits number(10).
    first u need to modify ur table.
    student_id number(10),
    courses varchar2(30),
    credits varchar2(10).
    Now i am writing whole pl/sql block for u. it will work fine.
    DECLARE
    CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
    CURSOR courses_cursor(nstudentid number) is select course, credits from student
    where student_id = nstudentid;
    nIndex INTEGER;
    pltcourses DBMS_SQL.VARCHAR2_TABLE;
    pltcredits DBMS_SQL.NUMBER_TABLE;
    newcourses varchar2(50);
    newcredits varchar2(10);
    BEGIN
    FOR student_rec IN studentlist_cursor
    LOOP
    nIndex:=0;
    newcourses := null;
    newcredits := null;
    FOR courses_rec in courses_cursor(student_rec.student_id)
    LOOP
    nIndex:=nIndex+1;
    pltcourses(nIndex):=courses_rec.course;
    if newcourses is null then
    newcourses:=pltcourses(nIndex);
    else
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    end if;
    pltcredits(nIndex):=courses_rec.credits;
    if newcredits is null then
    newcredits:=pltcredits(nIndex);
    else
    newcredits:=newcredits||'/'||pltcredits(nIndex);
    end if;
    end loop;
    INSERT INTO NEW_STUDENT
    (student_id,
    course) VALUES
    (student_rec.student_id,
    newcourses);
    END LOOP;
    END;
    and please revert back
    Regards
    Anil

  • Date in different formats

    Hello All,
    I have requirement in SAP script where I need to compare the system date and condition validity date and display the value if todays date lies in validity date. What is the best way to do this , I have tried using a perform statment but the date when being passed into the program is appearing in different formats in dev server (dd.mm.yyyy) and test servers(yyyy.mm.dd), I have checked the user settings and they are similar why is the date being passed in different formats.
    Thanks in advance,
    ranjan

    Hi Ranjan,
    or if you want to compare two dates.
    use the FM "CONVERT_DATE_TO_INTERNAL " it converts user setting date to internal format YYYYMMDD
    then you can compare
    USe the FM "CONVERT_DATE_TO_EXTERNAL "  it converts the input date to user setting format it is (dd.mm.yyyy) and test servers(yyyy.mm.dd),
    data : formatted_date(10).
    WRITE sy-datum  TO formatted_date MMDDYYYY.
    Now for all users the date format will appear MMDDYYYY regardless to user setting.
    Prabhudas

  • Store data in different Languages

    Hi,
    I have to display the same data in different languages like if japans user then there will Japanese Language and if India then English language for the same data.
    Is there any way for the same?
    Thanx.. Ratan

    Ratan,
    I dont think so , you have got that in a database ,rather the applications which your users should have the language compatibility.
    i.e the interface which has options of selcting languages and displaying the same for them.
    Sandeep Reddy Enti

  • Store data in EXCEL format

    I am using Jsp which is getting data from the EJBs...and shows in tabular format...i hav to give user a option to save that data in EXCEL format.Is there any utility available to do this...or can i use
    ==========================================
    contentType="application/vnd.ms-excel"
    ==========================================
    If i use this whether i get HTML output from the Jsp page..
    Please clear me

    provide option to get data in format of CSV (comma separated values) then they can open this text file in Excel and save it as Excel worksheet.

  • Looking for best way to filter status or meter data from differently formatted text.

    With the product we design we are able to communicate via RS-232 ports. What I'm trying to do is filter out the data that is given by multiple differnt types of products that will give similar data back, but in a differnt format. Such that in a status command I'm looking for everything to be in a non failed state. But some items will show warning, failure, #.##w(for warning), or #.##f (for fail). But the format of each product is different. Also for a meter command I'm looking for a way to filter out just the numeric value for each phase amplitude, but once again the format will be different for each product. I have been able to pull this data out easy enough for an individual product but not on a wide product range with the same VI.

    "Service is not available at this time
    Try back later"
    Bye...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • VBA:comboboxes to present same date in different formats...ADAPT WITH CHANGE IN DATE

    Hi all, 
    I'm very new to VBA and excel development, so please take that into consideration as you read on.
    I'm trying to create a work form for a database that (should) collect various information in comboboxes, including the date, the weekday, and the month... Note: most of the time, the data will be inserted the day after it's been collected. So, I wanted to create
    one combobox for the date, one for the weekday, and one for the month, because I want columns for each of these in the database (If this is not necessary/efficient, please help! :) ) . 
    Here's what I've got so far:
    'worksheet setup
    Dim ws As Worksheet
    Set ws = Worksheets("LookupList")
    'Date dropdown setup
    Dim cDateToday As Range
    For Each cDateToday In ws.Range("DateList")
    With Me.cboDate
    .AddItem cDateToday.Value
    End With
    Next cDateToday
    'If today is Monday, then set date to last friday, if any other weekday, set it to day before that
    If Weekday(Date - 1) <> 2 Then
    Me.cboDate.Value = Format(DateAdd("D", -Weekday(Date) - 1, Date), "Medium Date")
    Else
    Me.cboDate.Value = Format(Date - 1, "Medium Date")
    End If
    Problem #1: Right now, I am getting the date values from the list
    DateList in the worksheet LookupList...is there a better way of doing this?
    Problem #2: When the user form is run, the correct date and format shows up. However, if I change the date, the dropdown list in the combobox starts from the initial date in given list...is there anyway to bring the list closer to the current
    date? Think Calendar View
    Problem #3: I want the weekday and month values to be directly correlated to the date value discussed above, so hypothetically when the user form is run the correct date, weekday, and month all show up (based on the same date value), then if
    I change the date, the weekday and month automatically update. Is this possible, if so how?
    The reason I want this functionality is so that on a Monday, I can run the work form and it will automatically have Friday's date, weekday, month info as it opens. When I'm done with Friday, I can run it again, switch the date to the Saturday's
    date (weekday and month automatically update), then repeat for Sunday.
    I have tried running the same code for the weekday and month as I have for the date, and they work
    until the date is changed. Once the date is changed, I have to manually change the weekday, which leads to format change, and same for month, which all leads to :( and confusion
    Again, I am very new to vba and don't know much about it all and appreciate any/all help!
    Thanks in advance!
    /Alex

    I can give you a little advice but I don't understand your comment "if I change the date, the weekday and month automatically update" Where do you want them to update?
    I am assuming that your entire question is referring to a Userform with the Combobox. Is this correct?
    The code can be much simpler to populate the combobox list. You already have a named range for the Dates so you can use that directly to populate the RowSource. (RowSource if the combox is on a Userform or ListFillRange for a combobox on a worksheet).
    Then the WorksheetFunction Workday can be used to get the previous workday without weekend days. It also looks after the previous day when the actual date is mid week. Look up the function on the worksheet Help because you can also have a separate list
    of holidays that will be excluded like weekend days.
    If you are new to VBA then a tip about Help. You need to be on the worksheet and click Help to get worksheet help and in the VBA editor you click Help to call the VBA help. Don't just select Help off the taskbar when changing between the worksheet and VBA
    because you will finish up with the incorrect Help file.
    Example of code to assign a named range to the RowSource of a ComboBox. Named range needs to be Global and not scoped to a worksheet otherwise the worksheet name is also required. 
        Me.cboDate.RowSource = "DateList"
    Example of code to assign the previous workday to the combobox value.
        'Following line sets value to previous workday (Mon to Friday)
        Me.cboDate.Value = WorksheetFunction.WorkDay(Date, -1) 
    Then there is another problem with ComboBoxes and dates. If the Dates are real dates on the worksheet (Not Text)  then the dropdown list displays in the same format as the worksheet but when the date is selected, it displays as a serial number. This
    can also be rectified with code but first I need to know what the format of the data is on the worksheet.
    Can you upload a copy of your workbook because it is like a picture is worth a thousand words. Same goes for having a copy of the workbook. If it has sensitive data then create a copy and remove the sensitive data.
    Regards, OssieMac

  • Compare two dates in different format.

    Hi
    I want to compare two dates....one of which is in the timeStamp format ("yyyy-MM-dd HH:mm:ss")
    and the other is in java.util.Date i.e Tue Oct 11 10:22:47 GMT+05:30 2005
    Do I have to tokenise and then compare them.Is there any better approach?
    I want to find out which is greater/smaller one.
    Pls help.
    Regards,
    Sandip.

    I would convert both to Date and compare them. To convert String to Date check java.text.SimpleDateFormat and its parse(...) method.
    HTH
    Mike

  • Trying to update one table from a second table when data is different

    Hello;
    I have a the same table in two databases. The database are connected with a DB Link. I am trying to update one of the tables based on the data in the second table when the EMP_ID matches but the LAST_NAME does not match.
    The table(s) look like:
    Table Name:EMP
    EMP_ID
    LAST_NAME
    FIRST_NAME
    MIDDLE_INITIAL
    My SQL is:
    update EMP TARGET
        set (TARGET.LAST_NAME, TARGET.FIRST_NAME,TARGET.MIDDLE_INITIAL) = (
            select SOURCE.LAST_NAME, SOURCE.FIRST_NAME, SOURCE.MIDDLE_INITIAL
            from EMP@OTHER_DB SOURCE where
            TARGET.PHYSICIAN_ID = SOURCE.PHYSICIAN_ID
            and TARGET.LAST_NAME <> SOURCE.LAST_NAME); This returns an update count of all the rows not the few that I want.
    Any help would be great!

    Hi,
    Sky13 wrote:
    Hello;
    I have a the same table in two databases. The database are connected with a DB Link. I am trying to update one of the tables based on the data in the second table when the EMP_ID matches Do you <b>physician</b>_id?
    but the LAST_NAME does not match.
    The table(s) look like:
    Table Name:EMP
    EMP_ID
    LAST_NAME
    FIRST_NAME
    MIDDLE_INITIAL
    My SQL is:
    update EMP TARGET
    set (TARGET.LAST_NAME, TARGET.FIRST_NAME,TARGET.MIDDLE_INITIAL) = (
    select SOURCE.LAST_NAME, SOURCE.FIRST_NAME, SOURCE.MIDDLE_INITIAL
    from EMP@OTHER_DB SOURCE where
    TARGET.PHYSICIAN_ID = SOURCE.PHYSICIAN_ID
    and TARGET.LAST_NAME <> SOURCE.LAST_NAME); This returns an update count of all the rows not the few that I want.
    Any help would be great!There's no WHERE clause in that UPDATE statement, so every row of the target table will be modified.
    if you only want to modify the rows that have a match in the source table, then add a WHERE clause (perhaps "WHERE EXISTS (...) with a sub-query very miuch like the one you already have), or use MERGE instead of UPDATE.
    If you'd like help, post CREATE TABLE and INSERT statements to re-create the tables as they exist before the UPDATE, and also post the contents of the changed table after the UPDATE.
    Always say which version of Oracle you're using.
    Perhaps you want something like this:
    {code}
    MERGE INTO     emp     target
    USING     (
         SELECT     o.emp_id
              ,     o.last_name
              ,      o.last_name
              ,      o.middle_initial
              FROM     emp@other_db     o
              JOIN     emp          t ON     o.emp_id     = t.emp_id
                             AND     o.last_name     != t.last_name
         )          source
    ON     (target.emp_id     = source.emp_id
    WHEN MATCHED THEN UPDATE
    SET     target.last_name     = source.last_name
    ,     target.first_name     = source.first_name
    ,     target.middle_initial     = source.middle_initial
    {code}
    assuming emp is unique, at least in other_db.
    This will work in Oracle 10 (and up). In Oracle 9, MERGE always requires a WHEN MATCHED clause, so add one if you must. it doesn't matter what it does; the USING subquery will only return matches.
    Edited by: Frank Kulash on Oct 10, 2011 4:45 PM

  • What table stores the SAPscript paragraph formats for a form.

    Does anyone know where the paragraph formats are stored for a SAPscript form.  I can view them using SE71, but what I am looking for is the table where all this information is stored.
    Thanks.
    Bill Lomeli

    Hi Bill,
    Check table "DOKHL" .
    ID = 'DE' (Paragraph ID)
    LANGU = SY-LANGU
    OBJECT = 'TDPARAGRAPH'.
    TYP = 'E'.
    *------Sample code -
          SELECT SINGLE *                       
            FROM  DOKHL                         
            WHERE LANGU      = LANGU            
            AND   ID         = ID    "Paragraph ID"             
            AND   OBJECT     = OBJECT      "value :TDPARAGRAPH"     
            AND   TYP        = TYP        'value :E'.       
    Lanka
    Message was edited by: Lanka Murthy

  • URGENT: What table stores data for logged changes in PA and PD??

    Thanks!!!

    Hi Scott,
    Thanks for the reply.  This transaction leads to the report that allows you to display logged changes in PA, but I need the table name where these changes are actually stored for PA and the other table where change documents are stored in PD.
    Regards,
    -Joe

  • Table which stores the dates in different languages.

    Hi experts,
    Do we have any table which stores dates in different languages
    like
    December in EN
    Dezemer in  DE.

    Hi,
    You may use T247 table for this getting the name of the month(LTX feild) as per the language specified.
    Rewards if useful,
    Regards,
    Saurabh

  • Best way to retrieve/store date Flex PHP MySQL?

    Hi All,
    I have a question about storing/retrieving a date-field from the MySQL database, using Flash Builder 2 & Zend AMF.
    This is as much as I know:
    MySQL Database stores date in this format: yyyy-mm-dd hh:mm:ss
    And Flex will not recognise that as a "date", instead it will suggest this value is an "object".
    With "Configure return type", I can manually set this field to "date", but it will not work retrieving of updating the date as MySQL will not understand the standard date-format it'll receive,
    I guess, the best solution would be if I could tell the MySQL Server how the standard date-format should be, but I have not found this option. Can anyone confirm this?
    The remaining options are:
    Format the date in the SQL-query
    Format the date in the PHP-function sending/retrieving
    Format the date in Flex, befor assigning it to a date-field...
    Can someone tell me the BEST practice to handle date-objects? I guess it's the date_format function in MySQL....
    I'm trying to build an app with over 3200 fields, shared over 60 tables, of which many are date-fields.
    Would be awesome if I could just use SELECT * FROM myTable, and all would be fine with date-fields and all...
    Any tips?

    I'm confused. This is what I have:
    On my MySQL database, I've created a VIEW with the query that I need. I thought it'd generally be efficient to create views for every 'Form' that I need.
    This is my VIEW v_person
    SELECT p.`person_id`, p.`name`, p.`lastname`, DATE_FORMAT(p.`birthdate`,'%d/%m/%Y %r') as birthdate
    FROM person p
    Now I have a simple table v_person returning
    person_id
    name
    lastname
    birthdate
    0
    John
    Doe
    null
    1
    Jane
    Did
    23/08/1976 12:00:00 AM
    2
    Juno
    Doh
    01/04/2001 12:00:00 AM
    "Great! Now I can set up my query once, returning the date in whatever format Flex likes."
    Not.
    This is the standard generated PHP function to get information by ID. This works fine.
         public function getV_personByID($itemID) {
              $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where person_id=?");
              $this->throwExceptionOnError();
              mysqli_bind_param($stmt, 'i', $itemID);          
              $this->throwExceptionOnError();
              mysqli_stmt_execute($stmt);
              $this->throwExceptionOnError();
              mysqli_stmt_bind_result($stmt, $row->person_id, $row->name, $row->lastname, $row->birthdate);
              if(mysqli_stmt_fetch($stmt)) {
                   return $row;
              } else {
                   return null;
    This is the standard generated Form in Flex:
    One note to make when using RETURN TYPE,
    is that in when I use person_id=0 , I can change "birthdate type" from OBJECT to DATE, because date is null.
    When I use person_id=1 , I CAN'T change "birthdate type" as it defaults to "STRING".
    Since I want to use a dateField in my Form, I changed birthdate type to "DATE". (Even though I now understand that return type IS in fact a string)
    <fx:Script>
         <![CDATA[
              import mx.controls.Alert;
              import mx.formatters.DateFormatter;
                   protected function button_clickHandler(event:MouseEvent):void
                   getV_persontestByIDResult.token = vpersontestService.getV_persontestByID(parseInt(itemIDTextInput.text));
         ]]>
    </fx:Script>
    <fx:Declarations>
              <vpersontestservice:VpersontestService id="vpersontestService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
         <s:CallResponder id="getV_persontestByIDResult" result="v_persontest = getV_persontestByIDResult.lastResult as V_persontest"/>
         <valueObjects:V_persontest id="v_persontest" person_id="{parseInt(person_idTextInput.text)}" />
         <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:Form defaultButton="{button}">
         <mx:FormItem label="ItemID">
              <s:TextInput id="itemIDTextInput"/>
         </mx:FormItem>
         <s:Button label="GetV_persontestByID" id="button" click="button_clickHandler(event)"/>
    </mx:Form>
    <mx:Form>
         <mx:FormHeading label="V_persontest"/>
         <mx:FormItem label="Birtdate">
              <mx:DateField id="birthdateDateField" selectedDate="@{v_persontest.birthdate}" />
         </mx:FormItem>
         <mx:FormItem label="Last name">
              <s:TextInput id="lastnameTextInput" text="@{v_persontest.lastname}"/>
         </mx:FormItem>
         <mx:FormItem label="First name">
              <s:TextInput id="nameTextInput" text="@{v_persontest.name}"/>
         </mx:FormItem>
         <mx:FormItem label="person_id">
              <s:TextInput id="person_idTextInput" text="{v_persontest.person_id}"/>
         </mx:FormItem>
    </mx:Form>
    Works great! Except that it can't handle the date field:
    TypeError: Error #1034: Type Coercion failed: cannot convert "10/21/1984 12:00:00 AM" to Date.
         at com.adobe.serializers.utility::TypeUtility$/assignProperty()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:534]
         at com.adobe.serializers.utility::TypeUtility$/convertToStrongType()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:497]
         at com.adobe.serializers.utility::TypeUtility$/convertResultHandler()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:371]
         at mx.rpc.remoting::Operation/http://www.adobe.com/2006/flex/mx/internal::processResult()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:316]
         at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:313]
         at mx.rpc::Responder/result()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
         at mx.rpc::AsyncRequest/acknowledge()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:84]
         at NetConnectionMessageResponder/resultHandler()[E:\dev\trunk\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:547]
         at mx.messaging::MessageResponder/result()[E:\dev\trunk\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:235]
    Somehow SOMETHING wants to convert "10/21/1984 12:00:00 AM" to Date.
    Where does it fail? I feel like I'm SO close, but making a faceplant right before the finish.
    ok.
    I'm by no means an expert, so let me know if I'm doing something wrong, but this is how I'd expect it to work.
    Can someone tell me how I should use a dateField instead? Where should I make the stringToDate and dateToString conversion?

  • How to store data file name in one of the columns of staging table

    My requirement is to load data from .dat file to oracle staging table. I have done following steps:
    1. Created control file and stored in bin directory.
    2. Created data file and stored in bin directory.
    3. Registered a concurrent program with execution method as SQL*Loader.
    4. Added the concurrent program to request group.
    I am passing the file name as a parameter to concurrent program. When I am running the program, the data is getting loaded to the staging table correctly.
    Now I want to store the filename (which is passed as a parameter) in one of the columns of staging table. I tried different ways found through Google, but none of them worked. I am using the below control file:
    OPTIONS (SKIP = 1)
    LOAD DATA
    INFILE '&1'
    APPEND INTO TABLE XXCISCO_SO_INTF_STG_TB
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    COUNTRY_NAME
    ,COUNTRY_CODE
    ,ORDER_CATEGORY
    ,ORDER_NUMBER
    ,RECORD_ID "XXCISCO_SO_INTF_STG_TB_S.NEXTVAL"
    ,FILE_NAME CONSTANT "&1"
    ,REQUEST_ID "fnd_global.conc_request_id"
    ,LAST_UPDATED_BY "FND_GLOBAL.USER_ID"
    ,LAST_UPDATE_DATE SYSDATE
    ,CREATED_BY "FND_GLOBAL.USER_ID"
    ,CREATION_DATE SYSDATE
    ,INTERFACE_STATUS CONSTANT "N"
    ,RECORD_STATUS CONSTANT "N"
    I want to store file name in the column FILE_NAME stated above. I tried with and without constant using "$1", "&1", ":$1", ":&1", &1, $1..... but none of them worked. Please suggest me the solution for this.
    Thanks,
    Abhay

    Pl post details of OS, database and EBS versions. There is no easy way to achieve this.
    Pl see previous threads on this topic
    SQL*Loader to insert data file name during load
    Sql Loader with new column
    HTH
    Srini

Maybe you are looking for

  • Prevent null values from displaying in answers OBIEE 11g

    Is there any possibilities in OBIEE to Prevent null values from displaying in answers For example, If i have two records in table TV         cost=NULL(having agg rule sum in BMM layer) RADIO   cost=10(having agg rule sum in BMM layer) in answers i ge

  • VFX3 issue in SAP FICA

    Hi Gurus, The invoice is stuck in VFX3 due to "Invoice 84037755: Cannot match 95,145.00- USD of BP/GL items for PrCtr 212100" Diagnosis While determining the item grouping key (DFKKOPK-PSGRP) for the business partner and general ledger items of invoi

  • Printing Contact list from BB Q10

    I have a BBQ10, how do I transfer the my contacts list to a printable file...?

  • Shared error:21 while trying to publish to business catalyst!?

    shared error:21 while trying to publish to business catalyst!? This never happened before I'm not sharing any login info. This is a new multinational client and mission critical. And now this!!!??? HELP!

  • Publishing Oracle Data Miner 10.2 results

    Hi all, Am working on OBIEE 10.1.3.4. I've used Oracle DataMiner 10.2 and i need to publish and integrate Data Mining results to OBIEE. Any suggestions? Thanks very much.