I am creating a text file with data like
"Invoice","1026","8625-W","Mani","Naaz","Vijaywada"
"Invoice","1028","10000","Item","1000","GREEN","FINISHED","laptop"
by using data port I can import the above text file.When I am running a purchase invoice I want to get one line in purchase header and next line in purchase line.how it will possible and how data items should be added in data port please tell me.
0
Answers
While inserting you cannot directly import this file as you need to identify what type of line it is. So you need to code for it based on identifier call the insert of that particular table.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
create 2 data items:
1. line purchase header
2. line purchase line
use data item properties DataItemLinkReference and DataItemLink to link the data items.
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/