default true for boolean type

bangswit
Member Posts: 265
how to set default value boolean type = true?
0
Answers
-
Are you serious?0
-
need more clearification how abt requirment?0
-
????
There are many different ways to set a default value.
The simplest one you almost provided yourself:
BooleanValue := TRUE;
(commonly used in a form, report,...)
Another way to set the default value is in the property of the field in a table. You see, there are different ways and kinds of setting a default value which depend on the requirements, objects and general circumstances. I suggest you read the App. Dev. Guide provided with every NAV installation CD.0 -
i mean
i want to add new field in Sales Invoice Header
which is come from posted from sales header
so i want to that boolean field should be true0 -
If you need to set TRUE as default value for your boolean field in a table, search for "InitValue" property in documentation.Tomas,
Dynamics NAV Enthusiast0 -
A lot easier : invert the logic of the field you want to set the default value.
Example:
If you want a boolean for "Default Customer" on the customer card and the default must be TRUE.
It is easier (no need to add some code to put it to TRUE as a default) to have a boolean "Normal Customer" with default FALSE.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
i want to add new field in Sales Invoice Header
which is come from posted from sales header
so i want to that boolean field should be true
I'm not sure I got it right but in your case the value will always be true!? Every Sales Invoice Header starts as a Sales Header why would you want to add a useless field like that?0 -
rhpnt wrote:i want to add new field in Sales Invoice Header
which is come from posted from sales header
so i want to that boolean field should be true
I'm not sure I got it right but in your case the value will always be true!? Every Sales Invoice Header starts as a Sales Header why would you want to add a useless field like that?
i want to exported it to txt file
so i want to give it a flag
like i true, it means i already flag it0 -
if you set it to true on the sales order and when you post you want it to transfer over to the posted invoice header just
create the same field name & number in the posted invoice header & it will transfer.
Is this what you're asking?0 -
Savatage wrote:if you set it to true on the sales order and when you post you want it to transfer over to the posted invoice header just
create the same field name & number in the posted invoice header & it will transfer.
Is this what you're asking?
so in order doesn't appear the boolean type
only in posted document0 -
First You ask...bangswit wrote:how to set default value boolean type = true?
The answer is given...rhpnt wrote:BooleanValue := TRUE;
YOU then say you want it to come from the sales header..bangswit wrote:i mean
i want to add new field in Sales Invoice Header
which is come from posted from sales header
so i want to that boolean field should be true
I ask to clarify if that's what you want & you say NO....bangswit wrote:Savatage wrote:if you set it to true on the sales order and when you post you want it to transfer over to the posted invoice header just
create the same field name & number in the posted invoice header & it will transfer.
Is this what you're asking?
so in order doesn't appear the boolean type
only in posted document
We also need to know why you need it if you want it to always be TRUE...rhpnt wrote:I'm not sure I got it right but in your case the value will always be true!? Every Sales Invoice Header starts as a Sales Header why would you want to add a useless field like that?
YOu really need to be clear else we're going in circles.
Do you want a boolean on the posted INvoice Header ONLY! And it to be editable & changeable?0 -
The way I understood this twaddle is, he probably wants to export a txt file after posting an invoice and mark that with a boolean field in posted invoice header. But he says it should be TRUE by default, so I am probably wrong.0
-
Or he wants to set false to documents who failed to export. Who knows... :-k0
-
sorry everyone to make all of you confuse
i just want to set a flag... which records have exported yet
but this problem already solved
thanks for the help0 -
How did you get around the restriction of the Sales Invoice Header table?
It's usually not changable to end-users and gives a message "You don't have permission ....."
We handle that by adding code to CU3910 -
Yeah......
You may want to test that with the customers license.
IanRegards
Ian0 -
And if it doesn't work with customer license, you need to add the permission to modify the table in the object (object property Permissions) that does the modify.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