How can I write a application which automaticly run itself

FarukcaFarukca Member Posts: 19
edited 2004-06-24 in Navision Attain
Hi;
I want to write a report which works like a listener program.
For example; It must run in every 5 minutes by itself, without any control of any user,

This report will just read informations from an XML file and import these informations to the navision database; it will work like dataport,

Do you have any idea about how can I do this ?

Thanks,,,

Comments

  • FPulsfortFPulsfort Member Posts: 43
    What about using the OnTimer-Trigger of the Main-Form?

    Greetings,
    FRank
  • kinekine Member Posts: 12,562
    You can use Navision Timer on some client or on application server called from single instance codeunit... If you want more info, ask there... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Henry@columbusHenry@columbus Member Posts: 24
    Hello,

    Why don’t you use the “Job Scheduler”. See Service Management-> Setup -> Job Scheduler.
    With this tool It’s possible to run codeunit’s, reports and dataports.
    And you don’t need a Service Management licence for this tool.

    Good luck

    Henry
  • oclistoclist Member Posts: 20
    I don't have the service management license but I can't seem to set up the job scheduler. My license restricts me from the form and the table. How do I configure the job scheduler without the service management granule. I must be missing something.

    Thanks.

    running Attain 3.10
    ****************************************************************************
    Granule ID Name Amount Expires



    1,100 Company 2
    1,200 Session 26
    1,220 Session - 25 Users 1
    1,400 User IDs & Passwords 1
    1,410 Permissions 1
    1,520 Server - Windows NT (Intel) 1
    1,700 C/ODBC 1
    1,800 C/FRONT 1
    2,010 Server - Microsoft SQL Server Option 1
    2,020 Per Database license 1
    2,110 Navision Attain 3.XX 1
    3,010 General Ledger - Basic General Ledger 1
    3,020 General Ledger - Allocations 1
    3,030 General Ledger - Budgets 1
    3,040 General Ledger - Financial Schedules 1
    3,050 General Ledger - Consolidation 1
    3,260 Sales & Receivables - Basic Receivables 1
    3,270 Sales & Receivables - Sales Invoicing 1
    3,280 Sales & Receivables - Sales Order Management 1
    3,300 Sales & Receivables - Customer/Item Discounts 1
    3,310 Sales & Receivables - Alternative Ship-To's 1
    3,320 Sales & Receivables - Order Promising 1
    3,340 Sales & Receivables - Shipping Agents 1
    3,350 Sales & Receivables - Sales Return Order Mgt 1
    3,360 Sales & Receivables - Calendars 1
    3,510 Purchases & Payables - Basic Payables 1
    3,520 Purchases & Payables - Purchase Invoicing 1
    3,530 Purchases & Payables - Purchase Order Managem 1
    3,550 Purchases & Payables - Requisition Management 1
    3,560 Purchases & Payables - Alt. Order Addresses 1
    3,570 Purchases & Payables - Purchase Return Order 1
    3,760 Application Wide - Multiple Currencies 1
    3,780 Application Wide - Salespeople/Purchasers 1
    3,800 Application Wide - Extended Descriptions 1
    4,010 Inventory - Basic Inventory 1
    4,020 Inventory - Multiple Languages 1
    4,030 Inventory - Multiple Sales Prices 1
    4,040 Inventory - Multiple Locations 1
    4,050 Inventory - Alternative Vendors 1
    4,060 Inventory - Bill of Materials 1
    4,100 Inventory - Location Transfers 1
    4,120 Inventory - Item Cross References 1
    4,150 Inventory - Item Charge 1
    4,180 Inventory - Put-away 1
    4,190 Inventory - Warehouse Receipt 1
    4,200 Inventory - Pick 1
    4,210 Inventory - Warehouse Shipment 1
    4,510 Jobs - Basic Jobs 1
    4,520 Jobs - Budgets/Estimates 1
    4,610 Warehouse Management 1
    4,760 Application Wide - Departments & Projects 1
    4,770 Application Wide - Reason Codes 1
    4,780 Application Wide - Advanced Dimensions 1
    5,010 Cash Manager - Bank Account Management 1
    5,020 Cash Manager - Check Writing 1
    5,030 Cash Manager - Bank Reconciliation 1
    5,110 CRM - Contact Management 1
    5,120 CRM - Contact Classification 1
    5,260 Fixed Assets - Basic 1
    5,280 Fixed Assets - Maintenance 1
    5,290 Fixed Assets - Allocation 1
    5,300 Fixed Assets - Reclassification 1
    5,410 Basic Manufacturing - Production Orders 1
    5,420 Basic Manufacturing - Production BOM 1
    5,430 Basic Manufacturing - Version Management 1
    5,510 Contact Management - Basic 1
    5,760 Human Resources - Basic 1
    5,805 Agile Manufacturing 1
    5,810 Supply Planning - Basic 1
    5,820 Supply Planning - Demanmd Forecasting 1
    6,010 Capacity Planning - Basic 1
    6,020 Capacity Planning - Machine Centers 1
    7,110 Report & Dataport Designer 1
    7,120 Form Designer 1
    7,130 Table Designer 1
    14,000,360 EDI 1
    99,004,710 Euro Conversion Tool 1
    ****************************************************************************
  • TheDude27TheDude27 Member Posts: 6
    Farukca wrote:
    Hi;
    I want to write a report which works like a listener program.
    For example; It must run in every 5 minutes by itself, without any control of any user,

    This report will just read informations from an XML file and import these informations to the navision database; it will work like dataport,

    Do you have any idea about how can I do this ?

    Thanks,,,

    There are several ways to do this, I guess the big question is it ok that it stops if there is not a session running? If the answer is no then you need to use NAS.

    Essentially you will need to use a timer from either a form (non-nas) or from an infinitely looping codeunit (NAS).

    Simply set the timer interval property to to appropriate amount of ms and put something like this in the OnTimer Trigger

    MyReport.RUN


    The only problem is that this will only run if you have a session open and someone has run the form. Otherwise you will need to use NAS to open a controlling codeunit that runs the report.
  • Ian_piddigntonIan_piddignton Member Posts: 92
    oclist wrote:
    I don't have the service management license but I can't seem to set up the job scheduler. My license restricts me from the form and the table. How do I configure the job scheduler without the service management granule. I must be missing something.

    There is a granule called Job Scheduler ID number 5950. It is part of Service Management but you don't need any other Service Management granules to make it work.

    Regards

    Ian
  • oclistoclist Member Posts: 20
    I'll go order than granule. Thanks.
Sign In or Register to comment.