Adding New Field to a form

Sapphire123
Member Posts: 112
Hi All,
I've added a new (boolean) field to 'job journals' form; and have made required changes, such as, adding this field to the table(s). However, wehn I try to post journal lines with this field enabled (set to True), the value does not carry through to the history table -i.e. job ledger entry- What am I missing? I thought, all values automatically posts through... ?
Thanks in advance!
I've added a new (boolean) field to 'job journals' form; and have made required changes, such as, adding this field to the table(s). However, wehn I try to post journal lines with this field enabled (set to True), the value does not carry through to the history table -i.e. job ledger entry- What am I missing? I thought, all values automatically posts through... ?
Thanks in advance!
0
Comments
-
Usually ledger tables be it customr/item/vendor/job are not editable for reg customer licenses. if this is not an issue for you. then you can make sure the fields Name & numbers are the same one your from and to tables.
past that - you can look at teh codeunit that is run when you post and look in there to see how the fields are being transfered.
perhaps codeunit 10201 can be used - I don't use the Jobs part so I can't readdy get too spacific.0 -
If the TRANSFERFIELDS function is being used on the fields between the tables are the same (Field No., Field Name, Size, etc) it will carry through.Kimberly Weir0
-
hmmm.. the post function from the job journal eventually ends up calling a codeunit, 'Job Jnl-Post Batch'. Unfortuately, i dont see 'TRANSFERFEILDS' function defined in this CU.. :?: but, i've verified that hte new field defined in both tables have the same name, no, and type...0
-
Codeunit 10201 "Transfer Custom Fields" has triggers for
JobJnlLineTOResJnlLine(VAR JobJnlLine : Record "Job Journal Line";VAR ResJnlLine : Record "Res. Journal Line") JobJnlLineTOItemJnlLine(VAR JobJnlLine : Record "Job Journal Line";VAR ItemJnlLine : Record "Item Journal Line") JobJnlLineTOGenJnlLine(VAR JobJnlLine : Record "Job Journal Line";VAR GenJnlLine : Record "Gen. Journal Line") JobJnlLineTOJobLedgEntry(VAR JobJnlLine : Record "Job Journal Line";VAR JobLedgEntry : Record "Job Ledger Entry")
http://www.mibuso.com/forum/viewtopic.php?t=232990 -
Sapphire123 wrote:hmmm.. the post function from the job journal eventually ends up calling a codeunit, 'Job Jnl-Post Batch'
I fyou want to look into using this way I would suggest looking at
Job Jnl.-Post Line codeunit.
From my observations0 -
thank you so much, it worked! i modified the trigger to transfer the custom field..0
-
Hopefully that redeems myself from that "Invisible button" post0
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