Edit Blank Lines in Sales Quote Subform (95)

bjoern_b
Member Posts: 1
Hello,
I have tried to find a solution, but I didn't find the right Approach.
What I Need is to update the blank lines, witch will added by the Page 95.
The OnValidate trigger is not the right place to get the blank lines. Here I can only modify the user edited lines.
I guss it depends on the page Setting Multibleline and AutosplitKey.
Futher I found out, that the blank lines are added after the text lines to the database.
I have added a new field (parent line) in the table Sales Line (37).
Every time the User add new records to the table I will add autogererated informations to this new field.
This works only for the user edited lines, with the OnInsert Trigger of the Sales Line Table.
Where I can add this informations to the blank lines?
Example:
Line No. Type No. Desc. Parent Line (my field)
10000 Article desk My big cool Desk
20000 0
30000 Additional Tex Infos 10000
At the Moment I can only change Line 30000, but not 20000.
An other try was this:
OnInsert (Table 37):
SETRANGE("Line No.", 10001, 30000)
REPEAT
Until NEXT = 0
But here I get also only the line 30000.
Thanks for advice,
Bjoern
I have tried to find a solution, but I didn't find the right Approach.
What I Need is to update the blank lines, witch will added by the Page 95.
The OnValidate trigger is not the right place to get the blank lines. Here I can only modify the user edited lines.
I guss it depends on the page Setting Multibleline and AutosplitKey.
Futher I found out, that the blank lines are added after the text lines to the database.
I have added a new field (parent line) in the table Sales Line (37).
Every time the User add new records to the table I will add autogererated informations to this new field.
This works only for the user edited lines, with the OnInsert Trigger of the Sales Line Table.
Where I can add this informations to the blank lines?
Example:
Line No. Type No. Desc. Parent Line (my field)
10000 Article desk My big cool Desk
20000 0
30000 Additional Tex Infos 10000
At the Moment I can only change Line 30000, but not 20000.
An other try was this:
OnInsert (Table 37):
SETRANGE("Line No.", 10001, 30000)
REPEAT
Until NEXT = 0
But here I get also only the line 30000.
Thanks for advice,
Bjoern
0
Answers
-
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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