Is there any way to get an XMLPort to bypass table triggers

Binky
Member Posts: 2
Hi,
Am new to all this so bare with me if this is a stupid question.
Have an XMLPort import that creates sales invoices (the CSV file is generated from another system).
One of the requirements is to have a different bill-to on the invoice i.e. if the field is populated use the supplied customer code, if blank use the default on the customer card.
Have the code working, the only trouble is that there is some code on the table so when a bill-to is changed in RTC it displays a dialog prompting the user to confirm that they want to change the bill-to, so, when the XMLport is imported the dialog is triggered for each line in the import file, some on the files have a hundred lines or more.....
Is there any way to bypass the trigger on the table or tell the table to not run the code to display the confirmation dialog when the XMLPort is run but leave it to display when the field is modified in RTC :?:
Am new to all this so bare with me if this is a stupid question.
Have an XMLPort import that creates sales invoices (the CSV file is generated from another system).
One of the requirements is to have a different bill-to on the invoice i.e. if the field is populated use the supplied customer code, if blank use the default on the customer card.
Have the code working, the only trouble is that there is some code on the table so when a bill-to is changed in RTC it displays a dialog prompting the user to confirm that they want to change the bill-to, so, when the XMLport is imported the dialog is triggered for each line in the import file, some on the files have a hundred lines or more.....
Is there any way to bypass the trigger on the table or tell the table to not run the code to display the confirmation dialog when the XMLPort is run but leave it to display when the field is modified in RTC :?:
0
Comments
-
You don't want to bypass the trigger logic...you'll be bypassing important updates of related fields. You need to add a line of code early in the process for:
SetHideValidationDialog(TRUE);
That is a function in the sales header table that, once set to TRUE, will eliminate the confirm prompts (assume the user had confirmed them and execute the respective logic).Rob Hansen
http://www.epimatic.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions