problem in data import

vikasvikas Member Posts: 46
edited 2004-05-19 in Navision Attain
hi...

i am trying to import some data like "document type","sell to customer","no." from a text file through dataport into sales header table. but the problem is that only these three fields get updated. But, i want to update all the fields as it happens in sales order form.

I have also tried the option, callfieldvalidate available in the dataport

Comments

  • iansilversiansilvers Member Posts: 38
    I guess that within the OnAfterGetImport trigger, you may wish to call the validate function for the fields you are importing

    validate("sell-to customer no.")

    This would thenhave the effect of populating the associated fields.

    Does this help?
  • RobertMoRobertMo Member Posts: 484
    Calling Validate of the field in OnAfterGetImport trigger has the same effect as setting CallFieldValidate=Yes.
    BUT,
    When using property the fields are imported and validated in the same order as they appear in the Field Designer.

    If using Validate in OnAfterGetImport trigger you can set your own order of validate calls.
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • RobertMoRobertMo Member Posts: 484
    Which other fields do you expect to be filled ?

    There can be other trggers that can fill your fields that are not run. These are for sure triggers on forms, that are run when manualy keying in your document.
    You should check this triggers...
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Sign In or Register to comment.