How to show display record on form only but not save
Comments
-
Is CustomerNo saved on this table somewhere? are you entering it?
Or is this a field also you don't want to save on this table?
It's getting close to post your table
object designer->File->Export
lets hope it comes clear what's missing0 -
CustomerNo;No i get it from the customer table it is not same.0
-
I understand it's different. This is what I understand at this point.
You have a table (still unknown) it apparently has some field on it that can link to the customer table. You would like to get some of the info (customer's name) from the customer table to appear on your (still unknown) table.
The customer name is appearing but when you go to the "next line" (i think) you say the cust name disappears from that line and it's only appearing on the line you are on.
You need to remove that customer.name := '' on getnextrecord trigger.
On the first page of this post I posted a sample of how to get the Vendor Name on the item list (tablar form). It's just that simple, take a look again. My thought was you are not putting the code on the correct trigger. But you say it is. So I'll take your word.
Other than that The cust name should appear as long as your CustomerNo is filled with a value. Again remove any CustomerName := '' code that might appear.
Hey no Saint smileyOh! O:)
0 -
What I understand is that the issue is occuring when you are trying to enter a new record. Try making the following changes:
On AfterGetRecord()
//IF Vendor.GET("Vendor No.") // Old Code
// THEN venname := Vendor.Name;
IF NOT Vendor.GET("Vendor No.") THEN
Vendor.INIT;
venname := Vendor.Name;
// This will clear venname when you move to a new (blank) record
Vendor No. OnAfterValidate() The form trigger (Textbox)
IF "Customer No." <> xRec."Customer No." THEN BEGIN
IF Cust2.GET("Customer No.") THEN
CustName := Cust2.Name;
END;
// This will retrieve the value for the new record.There are no bugs - only undocumented features.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