Adding filter in the production order status changes

mark_christs
Member Posts: 156
Dear All experts,
I need to know if I can add coding to be used as filter in the production order status form (Code # 99000914), so if I open it from a certain table, I can directly saw the status is equal to status in the table, I guess I must add the coding in the form -- onopen form(), before the buildform or after it or I must create a code in the variable tab of C/AL global..? your answers are expected so much. tks.
Rgds,
Mark
I need to know if I can add coding to be used as filter in the production order status form (Code # 99000914), so if I open it from a certain table, I can directly saw the status is equal to status in the table, I guess I must add the coding in the form -- onopen form(), before the buildform or after it or I must create a code in the variable tab of C/AL global..? your answers are expected so much. tks.
Rgds,
Mark
0
Comments
-
Set filter on the "Production Order" table then call report.
Example 1:
Record.SETCURRENTKEY(Key-field1, ...);
Record.SETFILTER(Field, Filter);
Report.XXX; // any user-defined function
Report.SETTABLEVIEW(Rec)
Report.RUN()There are no bugs - only undocumented features.0 -
Dear All,
To Brown, Tks a lot for your reply. you wrote:Record.SETCURRENTKEY(Key-field1, ...);
Record.SETFILTER(Field, Filter);
Report.XXX; // any user-defined function
Report.SETTABLEVIEW(Rec)
Report.RUN()
You didn't mention where I must put the code, in the production order table or directly in this Code # 99000914 ( the form code). Indeed I can use change status in the function of production order (PPO, FPPO or RPO), but I wonder if I create a form with source table is production order or production order line, then I create a button with function is change status, so if currently in the line firm planned then in the system will appear changes production order status form (Code # 99000914) with the status in its header same as status in the line I mention....onpush() Form.run(form::"production order status change",prodorder);
But with those coding, I only saw the form (Code # 99000914) with status simulated. that is the problem.
COuld you answer me more clearly pls and the coding itselfs.
Rgds,
Mark0
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