Updating Posting Date in DB
sakameeran
Member Posts: 52
Hi Experts,
I m New to NAV.
I want to update the posting date in General Journal Form by click one user defined button.
I mean, while the user defined button,
I wanted to update the posting Date for the particular batch.
Example,
"Posting Date" :=DMY2DATE(12,3,2009);
I tried the above statement in Button Clicking Event (Push Trigger). but it is updating only the current row, in which the cursor was there.
I want to update the date for whole batch.
Is that possible? Please help me on this
Thanks in advance
I m New to NAV.
I want to update the posting date in General Journal Form by click one user defined button.
I mean, while the user defined button,
I wanted to update the posting Date for the particular batch.
Example,
"Posting Date" :=DMY2DATE(12,3,2009);
I tried the above statement in Button Clicking Event (Push Trigger). but it is updating only the current row, in which the cursor was there.
I want to update the date for whole batch.
Is that possible? Please help me on this
Thanks in advance
0
Comments
-
You should loop through all the records to do that.0
-
could you please Guide me on tht?
Since i m very new to NAV, i dont knw how to loop it?
Thanks in Advance.crisnicolas wrote:You should loop through all the records to do that.0 -
MODIFYALL("Posting Date" , NewDate);
CurrForm.UPDATE;There are no bugs - only undocumented features.0 -
On the doc file of the NAV DVD you'll find a pdf called adgw1w1 (the Application Designer Guide).
In there you'll find all the statements used on C/AL and some examples.
Looping can be done using a REPEAT...UNTIL statement, a WHILE statement or a FOR..TO..DO statement.
You should read this document before trying to do any code modifications on NAV.0 -
Thank a lot Mr. Brown.bbrown wrote:MODIFYALL("Posting Date" , NewDate);
CurrForm.UPDATE;0 -
You could also just use CTRL-H if you are updating an unposted journal,
User would just filter for the lines they want and then find and replace on the date field0
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