Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all articles
Browse latest Browse all 29197

Create Dynamic header and footer in Dataport

$
0
0

Hi experts,

Please how can I create a header in my data port that can get dynamic information from my DataItem, i tried with this snippet of code in OnPreDataItem() Trigger but it does'n't work, and the same For my footer in the end i want to get some thing like this

xxxxxxxxx    header

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy     Content

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

zzzzzz  Footer

Documentation()

Base Salaire - OnPreDataItem()

CurrFile.TEXTMODE(TRUE);
CurrFile.WRITE('10000000000000000000'+"TableFieldX"+'115000MAD2');
CurrFile.TEXTMODE(FALSE);

Base Salaire - OnBeforeExportRecord()

Base Salaire - OnAfterExportRecord()

CurrFile.TEXTMODE(TRUE);

CurrFile.WRITE("yyyyyy");

CurrFile.TEXTMODE(FALSE);

Base Salaire - OnBeforeImportRecord()

Base Salaire - OnAfterImportRecord()

Base Salaire - OnPostDataItem()

CurrFile.TEXTMODE(TRUE);

CurrFile.WRITE('10000000000000000000'+"TableFieldX"+'115000MAD2');
CurrFile.TEXTMODE(FALSE);


Viewing all articles
Browse latest Browse all 29197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>