Value Entry Table - Adding Customer Name

wangjanym
Member Posts: 21
Hi, All. First time posting here and I'd like to know how to modify the system to populate customer name automatically whenever sales order get posted. Currently running Nav 4.0 with SP1.
Thanks Millions.
Thanks Millions.
0
Answers
-
Hello
Could you tell us why you want the customer name in that table?
If it's for report you don't need to add it to the table.
If you want to see if on a form, you can add code the the form to grab it from customer name.
If you real must have it, then I would add it as a flowfield.
THe source No is the customer No. and souce type is customer.0 -
why you need the field "customer Name" :?: you can find out which customer it is with the field "Source No." (Source Type = Customer). this field has an table relation to tabel customerDo you make it right, it works too!0
-
sometimes i'm to slow :-(Do you make it right, it works too!0
-
Yeah, I understand why you guys ask me that question. However, my boss want it that way. I know what I can look up the source no. to find the name and it makes database big. Well, it is kinda stupid but I want to know how and if you guys can give the code to make it happens that will be very nice.
Thanks,0 -
By the way, is flowfield make value entry table slow????????? We look at those table a lot....0
-
The flowfield itself won't make posting slow, but opening a form with a flowfield can potentially cause massive performance problems, especially on something like the value entry table, where you have thousands of records on the list form.0
-
so, you have to ways:
first when a value entry is created (for example in Cu22) you can also store the Customer name in a new field.
second way: use a flowfield. but note, if you view many records in your list, the system must ever calculate this field.Do you make it right, it works too!0 -
Thanks Million guys.....
Really appreciated all your help..0 -
Please write [solved] infront of the subject in your first post.
ThanksDo you make it right, it works too!0 -
wangjanym wrote:my boss want it that way.
Not really a good answer to why you need the name there.
What's his reason?
How about adding a box at the bottom of the form that get's the customer name when you click on a line. There are many journal forms that do this already
All you have to do is:
-Add a Variable type Text size 65 called IdentifySource
-add a textbox at the bottom of form 5802 (I assume you use that one)
with sourceexp = IdentifySource
then add some thing like this to the form's code ( i guess i could have used a case statement - but anyway It's just the basic idea.
Now whatever line you click on it will show you the name at the bottom of the form without any changes to codeunits or tables.OnAfterGetCurrRecord() CLEAR(IdentifySource); IF "Source Type" = "Source Type"::Customer THEN BEGIN IF Customer.GET("Source No.") THEN IdentifySource := Customer.Name; END; IF "Source Type" = "Source Type"::Item THEN BEGIN IF Item.GET("Source No.") THEN IdentifySource := Item.Description+' '+Item."Description 2"; END; IF "Source Type" = "Source Type"::Vendor THEN BEGIN IF Vendor.GET("Source No.") THEN IdentifySource := Vendor.Name; END;
Note for the textbox at the bottom of the form don't forget to set the glues to Bottom & Left.0 -
right savatage, like in form, for example 255Do you make it right, it works too!0
-
I added some code to the post above (hence the edit)
My payment journal uses this too.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