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.
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!
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 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 it
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.
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?
nope...
so in order doesn't appear the boolean type
only in posted document
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?
nope...
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...
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?
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.
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 help
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 ....."
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 ....."
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 ....."
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!
Answers
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.
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
Dynamics NAV Enthusiast
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.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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 it
create the same field name & number in the posted invoice header & it will transfer.
Is this what you're asking?
http://www.BiloBeauty.com
http://www.autismspeaks.org
so in order doesn't appear the boolean type
only in posted document
The answer is given...
YOU then say you want it to come from the sales header..
I ask to clarify if that's what you want & you say NO....
We also need to know why you need it if you want it to always be TRUE...
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?
http://www.BiloBeauty.com
http://www.autismspeaks.org
i just want to set a flag... which records have exported yet
but this problem already solved
thanks for the help
Andwian
i reverse the code
after posting it still boolean type false
and then after export i set it become true...
It's usually not changable to end-users and gives a message "You don't have permission ....."
We handle that by adding code to CU391
http://www.BiloBeauty.com
http://www.autismspeaks.org
i have developer license
Andwian
http://www.BiloBeauty.com
http://www.autismspeaks.org
You may want to test that with the customers license.
Ian
Ian
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!