Hello,
Today’s task is: creating a Dataport!
I followed this walkthrough and it didn’t seem too hard:
msdn.microsoft.com/…/dd301335.aspx
But, obviously, real problems to solve don’t have walkthroughs…
If you remember my previous posts, I’ve been working with the Routing Header/Routing Line tables and this time is no exception.
My task is to create a dataport that imports the Run Time for all items into the Routing Line, but there are a few catches:
- If the item doesn’t have a Routing Header/Line, it has to be created.
- Despite what’s in the Routing Line of an object, the Routing Line Run Time that is to be imported has to be “Operation No.” = 1, which means that whatever’s already there has to become number 2 (2 Run Times for 2 operations).
I already have the .csv file with 3 columns filled (Routing No. (which is the item number), No. (another field which hasn’t been used until now) and Run Time).
My first problem is where to start. I know the code from creating Routing Header/Line will be used somewhere, but under which trigger?
Anyway, I’m just sharing my task with you. Any help you can provide will be much appreciated.