Importting from Dataport (starting line 2)

julkifli33julkifli33 Member Posts: 1,087
how to import from dataport
but i dont want to import data on the 1st line
because it's only the header
thanks

Answers

  • AlbertvhAlbertvh Member Posts: 516
    OnPreDataItem
    i := 0;

    InAfterImportRecord
    i := i + 1;
    IF i = 1 then
    CurrDataport.SKIP;

    Define i as varible data type integer

    Albert
  • julkifli33julkifli33 Member Posts: 1,087
    Albertvh wrote:
    OnPreDataItem
    i := 0;

    InAfterImportRecord
    i := i + 1;
    IF i = 1 then
    CurrDataport.SKIP;

    Define i as varible data type integer

    Albert

    thanks a lot albert :)
  • vaprogvaprog Member Posts: 1,139
    This will error out it the captions do not fit in the Dataport Fields. See this thread for another solution.
  • julkifli33julkifli33 Member Posts: 1,087
    vaprog wrote:
    This will error out it the captions do not fit in the Dataport Fields. See this thread for another solution.
    thanks vaprog,
    i already create my own solution by using this code
    Sales Line - OnAfterImportRecord()
    IF DataItem[1] = 'Cust No' THEN
      CurrDataport.SKIP;
    

    Cust No is header
Sign In or Register to comment.