Update to exclude blank fields

tazzy30
Member Posts: 52
Hello everyone,
I have a customer update form, the update works fine however if a field is left blank i.e. Name as this is not a field that is required to be updated, when the update is run it changes the name on the customer card to blank, likewise with all the other fields is there an easier way of ignoring the fields that are blank when updating the customer card or would i need to write code for each individual field?
Thank You
I have a customer update form, the update works fine however if a field is left blank i.e. Name as this is not a field that is required to be updated, when the update is run it changes the name on the customer card to blank, likewise with all the other fields is there an easier way of ignoring the fields that are blank when updating the customer card or would i need to write code for each individual field?
Thank You
0
Comments
-
It seems like you have a special form that you are using to gather values to update a customer record, but you are not telling us exactly how it works. Without that information all we can do to help is make assumptions and guess.
Standard NAV does not have a special form to update master records, everything is done on the Card. Is there a reason why you have chosen not to follow this standard?0 -
Thank you for your reply,
Sorry for the lack of description, the customer update form is a holding area for changes that have been made via the web by customers. Those changes will then stay within this form until it has been updated by the user. However it is here when users click update all blank fields (fields that are not updated (remain the same)) replace the values within the customer master card to blank.
I hope this makes sense, I have put code in to ignore a couple of fields but I have done this for each individual field, I can show you the code?0 -
Ah so you have a webpage with customer information that you push into NAV, but you want to only update fields that are not blank. What happens when they want to delete a value, so it used to have something, but they want it to be blank, how would that work?
The most logical way to me would be to replace what is in the database with what is currently on the user's screen. I assume that when they open the webpage, they retrieve the current records out of the database to display on the page, and when they hit 'submit' it gets written back to the database, including all individual field values. I don't understand how you would have one blank field and a non-blank field, where the blank field would overwrite a non-blank value. The user would have to remove that value, which would indicate intent to clear that value, and would be a valid change in the database.
Am I missing something?0
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