Sales Order Form
GD
Member Posts: 49
How i can put in form 46 in the field Shipment Reason
a defaul value in order everytime the user opens the form this field will
have a default value?
gd
a defaul value in order everytime the user opens the form this field will
have a default value?
gd
0
Comments
-
Desing the form on triger onnewrecord set the value to what you want.
"Shipment Reason" := 'tada';
Ofcourse you could write it properly and and have a default value in some setup table and get and assign it to it;
SalesSetup.get
"Shipment Reason" := SalesSetup."Default Shipment Reason" ;0 -
Please, do not forget you are in the salesline table and validating the "No." field uses an INIT. You should restore the value there also.0
-
HELLO,
I AM SORRY I DID A MISTAKE ABOUT THE NO OF THE FORM IS NOT FORM 46 BUT FORM 42
I PUT THE "SHIPMENT REASON" := 'SALES' ON FORM- OnNewRecord but
i dont see anything when i run the form!!!!
gd0 -
If you want a default value in a field, do you want the user to change this? :?
Maybe it is better to set the value when Inserting the record in the insert trigger of the table and make the field non-editable?
You can add this field to the SalesSetup like ara3n said.
It is not recomended to reset a value in a record whenever the form is opened.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

