Are you planning on running the dataport on a regular/recurring schedule?
You may want to consider using the Job Queue to control when your dataport fires off. That would be a good solution to control your data import/export process without having to modify a lot of code.
Yes, Please
I want dataport to be run on a particular date and time defined by the user on a setup form.
The database is running on NAV 5.01 Server on SQL platform.
I added Next Date Run and Next Time Run fields on a setup form for users.
Please tell me in detail all the components required and how to instal/Setup.
Well the way I see it there's a few changes you will need to build and a NAV Module you may have to purchase.
The Job Queue is a new NAV component that supports these kinds of automated tasks and use a Navision Application server to execute. The Job Queue forms are in the 670 range and Tables are in the 470 range. All of this is orchestrated by codeunit 448 (Job Queue Dispatcher) that is executed by a Navision Application Server (NAS) instance.
I'm not sure which granule you need to purchase from Microsoft but you can look that up on the microsoft price list (or you can ask your partner). So to get all this setup there's no code changes required just some out of the box granules and a NAS, plus some setup of the Job Queue Entry records that contorl when the job starts.
The only thing you'll have to do to is build a codeunit that executes the data port you've built. This is because Job Queue will only run Codeunits and Report objects. building a codeunit to wrap the dataport you've built should be a fairly simple task and shouldn't take a lot of effort.
This is the approach that I would take as it requires a minimum amount of effort and maximuizes re-use of base components.
Comments
No directly but can be called from a codeunit called by NAS.
Have a search there's loads of posts on this.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Regards
Ikram
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
You may want to consider using the Job Queue to control when your dataport fires off. That would be a good solution to control your data import/export process without having to modify a lot of code.
Epimatic Corp.
http://www.epimatic.com
I want dataport to be run on a particular date and time defined by the user on a setup form.
The database is running on NAV 5.01 Server on SQL platform.
I added Next Date Run and Next Time Run fields on a setup form for users.
Please tell me in detail all the components required and how to instal/Setup.
Regards
Ikram
The Job Queue is a new NAV component that supports these kinds of automated tasks and use a Navision Application server to execute. The Job Queue forms are in the 670 range and Tables are in the 470 range. All of this is orchestrated by codeunit 448 (Job Queue Dispatcher) that is executed by a Navision Application Server (NAS) instance.
I'm not sure which granule you need to purchase from Microsoft but you can look that up on the microsoft price list (or you can ask your partner). So to get all this setup there's no code changes required just some out of the box granules and a NAS, plus some setup of the Job Queue Entry records that contorl when the job starts.
The only thing you'll have to do to is build a codeunit that executes the data port you've built. This is because Job Queue will only run Codeunits and Report objects. building a codeunit to wrap the dataport you've built should be a fairly simple task and shouldn't take a lot of effort.
This is the approach that I would take as it requires a minimum amount of effort and maximuizes re-use of base components.
Epimatic Corp.
http://www.epimatic.com
Don't ask me why but it is not possible.
The only way is to convert your dataport into a codeunit (or a report) and to run that in the NAS.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Finally were you able to run Dataport called by Codeunit using NAS?
Dataport cannot run on NAS, no matter how you call it.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Another alternative is to use XMLports.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
I also find that XML ports can be a great way of working with data imports/exports.
Epimatic Corp.
http://www.epimatic.com