Well the subjects says it.... my dataport for 4 fields in EMPLOYEE table is not working... I know im missing something silly so please point it out for me.
DATAITEMS
{
{ PROPERTIES
{
DataItemTable=Table2000000026;
AutoSave=No;
AutoUpdate=No;
DataItemTableView=SORTING(Number);
OnBeforeImportRecord=BEGIN
gco_no := '';
gtx_firstname := '';
gtx_lastname := '';
gtx_email := '';
END;
OnAfterImportRecord=VAR
lrc_Employee@1000000000 : Record 5200;
BEGIN
CLEAR(lrc_Employee);
lrc_Employee.INIT;
lrc_Employee.VALIDATE("No.",gco_no);
lrc_Employee.VALIDATE("First Name",gtx_firstname);
lrc_Employee.VALIDATE("Last Name",gtx_lastname);
lrc_Employee.VALIDATE("E-Mail",gtx_email);
lrc_Employee.INSERT(TRUE);
END;
}
FIELDS
{
{ ; ;gco_no }
{ ; ;gtx_firstname }
{ ; ;gtx_lastname }
{ ; ;gtx_email }
}
}
}
REQUESTFORM
{
PROPERTIES
{
Width=9020;
Height=3410;
}
CONTROLS
{
}
}
CODE
{
VAR
gco_no@1000000002 : Code[10];
gtx_firstname@1000000003 : Text[30];
gtx_lastname@1000000004 : Text[30];
gtx_email@1000000008 : Text[80];
BEGIN
END.
}
}
0
Answers
Are you getting any error message?
Can you show us sample record from your txt file?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
EMP/0185,Rohit,Kumar,Rohit.Kumar@gmail.com
"EMP/0185","Rohit","Kumar","Rohit.Kumar@gmail.com"
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav