Discussions
Activity
Best Of...
Sign In
·
Register
Home
›
NAV/Navision Classic Client
Howdy, Stranger!
It looks like you're new here. Sign in or register to get started.
Sign In
Register
Quick Links
Categories
Recent Discussions
Activity
Best Of...
Unanswered
Categories
All Categories
73
General
73
Announcements
66.7K
Microsoft Dynamics NAV
18.7K
NAV Three Tier
38.4K
NAV/Navision Classic Client
3.6K
Navision Attain
2.4K
Navision Financials
115
Navision DOS
854
Navision e-Commerce
1K
NAV Tips & Tricks
772
NAV Dutch speaking only
615
NAV Courses, Exams & Certification
2K
Microsoft Dynamics-Other
1.5K
Dynamics AX
317
Dynamics CRM
109
Dynamics GP
10
Dynamics SL
1.5K
Other
993
SQL General
384
SQL Performance
34
SQL Tips & Tricks
34
Design Patterns (General & Best Practices)
Architectural Patterns
10
Design Patterns
5
Implementation Patterns
53
3rd Party Products, Services & Events
1.6K
General
1.1K
General Chat
1.6K
Website
79
Testing
1.2K
Download section
23
How Tos section
259
Feedback
12
NAV TechDays 2013 Sessions
13
NAV TechDays 2012 Sessions
Sales Order Form
GD
Member
Posts:
49
2005-09-30
edited 2005-10-03
in
NAV/Navision Classic Client
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
0
Comments
ara3n
Member
Posts:
9,257
2005-09-30
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" ;
Ahmed Rashed Amini
Independent Consultant/Developer
blog:
https://dynamicsuser.net/nav/b/ara3n
0
Marije_Brummel
Member, Moderators Design Patterns
Posts:
4,262
2005-09-30
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.
Marije Brummel
| Freelance Business Central Specialist
0
GD
Member
Posts:
49
2005-10-03
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!!!!
gd
0
Marije_Brummel
Member, Moderators Design Patterns
Posts:
4,262
2005-10-03
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.
Marije Brummel
| Freelance Business Central Specialist
0
Sign In
or
Register
to comment.
Comments
"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" ;
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
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!!!!
gd
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.