enter values in card form ,it must be reflect in list form

suri
Member Posts: 123
hi good evening ,
i have field name in the card and list form ;
when i am entering the values in name field of card form ,it must be automatically update in the list form ;
is it possible through the code units;
can you please suggest the code
thank you
i have field name in the card and list form ;
when i am entering the values in name field of card form ,it must be automatically update in the list form ;
is it possible through the code units;
can you please suggest the code
thank you
0
Comments
-
Data is saved in the table.
Card Form & List form are just two ways of displaying that data.
So if it exists in the table it should show on both forms - nothing else needed.0 -
suri wrote:hi good evening ,
i have field name in the card and list form ;
when i am entering the values in name field of card form ,it must be automatically update in the list form ;
is it possible through the code units;
can you please suggest the code
thank you
No coding is required. This is already part of standard NAV.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
I hope they are not card and list forms..
they are document and sub form forms, right?0 -
good morning one and all,
these are document and subform right ;we have two fields
with same names ,when we are entering the data in one field it must automatically reflect in another field with same name of the field;
does it possible through code units.
i have gone through sales order and sales ordersubform ,but i am not able to get the result ;can it possible through code unit ,can any one please suggest me
thank you0 -
Please use proper terms while posting your problem like card, list etc
You need to populate fields from header to line or line to header?0 -
thank for your reply mohana
i need to populate fields from header to line
thank you0 -
Then check Prepayment % field in Sales header table.
if you modify Prepayment % in header then it will be changed in existing sales lines Prepayment % field also..0 -
hi mohana sir ,
what you have told that i have tried,it was simply updating what we entering into the document into list form
let us consider if we have 5 fields data in the table ,in the list form these 5 fields are updating when we are entering prepayment% .
that is not actual requirement sir;
when we enter the data first time in the document form it must be reflect in the list form,for second time when we are entering the data it must be shown in the second line ..can you suggest me
on sales header
>table
Prepayment % - OnValidate()
UpdateSalesLines(FIELDCAPTION("Prepayment %"),CurrFieldNo <> 0);
on sales line
>table
Prepayment % - OnValidate()
IF ("Prepayment %" <> 0) AND (Type <> Type::" ") THEN BEGIN
TESTFIELD("Document Type","Document Type"::Order);
TESTFIELD("No.");
IF CurrFieldNo = FIELDNO("Prepayment %") THEN
IF "System-Created Entry" THEN
FIELDERROR("Prepmt. Line Amount",STRSUBSTNO(Text045,0));
IF "System-Created Entry" THEN
"Prepayment %" := 0;
GenPostingSetup.GET("Gen. Bus. Posting Group","Gen. Prod. Posting Group");
IF GenPostingSetup."Sales Prepayments Account" <> '' THEN BEGIN
GLAcc.GET(GenPostingSetup."Sales Prepayments Account");
VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
END ELSE
CLEAR(VATPostingSetup);
"Prepayment VAT %" := VATPostingSetup."VAT %";
"Prepmt. VAT Calc. Type" := VATPostingSetup."VAT Calculation Type";
"Prepayment VAT Identifier" := VATPostingSetup."VAT Identifier";
CASE "Prepmt. VAT Calc. Type" OF
"VAT Calculation Type"::"Reverse Charge VAT",
"VAT Calculation Type"::"Sales Tax":
"Prepayment VAT %" := 0;
"VAT Calculation Type"::"Full VAT":
FIELDERROR("Prepmt. VAT Calc. Type",STRSUBSTNO(Text041,"Prepmt. VAT Calc. Type"));
END;
"Prepayment Tax Group Code" := GLAcc."Tax Group Code";
END;
TestStatusOpen;
IF Type <> Type::" " THEN
UpdateAmounts;0 -
Why do you need this?
you can directly enter value in Line itself..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
- 322 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