Options

Dataitem in Dataport

Lars_EnderLars_Ender Member Posts: 10
Hello,
I have a dataport with two tables as dataitems.
The export works fine - but navision execute first all
dataexports on the first dataitem and then all on the second.

Example of the Export File:
"12235";"Yes";
"1gf45";"Yes";
"1hj45";"Yes";
etc...

"Mr. sggfrdest";"OK";
"Mr. sgfghasefgest";"OK";
"Mr. sggfrfagst";"OK";
etc...


but I want it in thah format:
"12235";"Yes";
"Mr. sggfrdest";"OK";

"1gf45";"Yes";
"Mr. sgfghasefgest";"OK";

"1hj45";"Yes";
"Mr. sggfrfagst";"OK";
etc...


Could anybody help me?
Thanks in advanced.

Lars

Comments

  • Options
    kinekine Member Posts: 12,562
    Sorry, but you cannot do it through standard dataport. You must use C/AL code to export such a format...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    Timo_LässerTimo_Lässer Member Posts: 481
    This cannot solved with a simple dataport.
    This must be done manually by code because you want to proceed both tables parallel (1st of table A, 1st of table B, 2nd of A, 2nd of B, ...)
    My suggestion is to have an integer loop as master and within this loop you take your records from the tables and write manually into the export file.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • Options
    Lars_EnderLars_Ender Member Posts: 10
    okay ... thanks for your quick answers.
Sign In or Register to comment.