codeunit problem

Markandey_Pandey
Member Posts: 178
Hi all,
I have added some fields to the Purchase Header Table and the same i have added to Purchase Invoice Header table.
Now i want to update the fields of Purch. Inv Header Table having the data of Purchase Header table, when the invoice is posted.
can anybody guide me how to do this.
I have added some fields to the Purchase Header Table and the same i have added to Purchase Invoice Header table.
Now i want to update the fields of Purch. Inv Header Table having the data of Purchase Header table, when the invoice is posted.
can anybody guide me how to do this.
Markandey Pandey
0
Comments
-
If your fields have the same ID (number) then they will be transferred automatically.
Lookup TRANSFERFIELDS command.0 -
kapamarou wrote:If your fields have the same ID (number) then they will be transferred automatically.
Lookup TRANSFERFIELDS command.
ThanxMarkandey Pandey0 -
standard Navision posting routine already are using Transferfields.
So you shouldn't need any programming.0 -
Hi i'm new to navision, anyone can tell me what's is this code mean please thankx. The red color highlighted .
IF NOT FIND('-') THEN BEGIN
INIT;STVN0 -
That means FINDFIRST.0
-
IsakssonMi wrote:That means FINDFIRST.0
-
DenSter wrote:IsakssonMi wrote:That means FINDFIRST.
(He asked for the red highlight)0 -
yes,
but the whole line of code is a really expensive way of doing an ISEMPTY, especially on SQL.
In these kind of situations please replace it with:
IF ISEMPTY THEN BEGIN
INIT;
Regards,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
IsakssonMi wrote:DenSter wrote:IsakssonMi wrote:That means FINDFIRST.
(He asked for the red highlight)0 -
IsakssonMi wrote:IsakssonMi wrote:That means FINDFIRST.
(He asked for the red highlight)
You should have a look in Navision help and view about findset and findfirst.0 -
DenSter wrote:And that STILL doesn't mean the same.
Without debugging the SQL-queries that NAV creates I found this in the help:
FINDFIRST (Record)
Use this function to find the first record in a table based on the current key and filter.
FIND (Record)
Use this function to find a record in a C/SIDE table based on the values stored in keys.
'-' The first record in the table ('-' can only be used alone)
I guess the case is closed :roll:0 -
IsakssonMi wrote:DenSter wrote:And that STILL doesn't mean the same.
Without debugging the SQL-queries that NAV creates I found this in the help:
FINDFIRST (Record)
Use this function to find the first record in a table based on the current key and filter.
FIND (Record)
Use this function to find a record in a C/SIDE table based on the values stored in keys.
'-' The first record in the table ('-' can only be used alone)
I guess the case is closed :roll:
You can roll your eyes at me all you want. They are not the same.0 -
IsakssonMi wrote:I guess the case is closed :roll:
OTOH, you could read more documentation than a superficial scan of and old help file.Robert de Bath
TVision Technology Ltd0 -
Again and again this old discussion because of someone who posted a new topic to an old thread?! This has been discussed many times and can be found easily by the search function. I think it doesn't deserve an answer especially no annoying discussion. :thumbsdown:
Sorry for that, guys."Money is likewise the greatest chance and the greatest scourge of mankind."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