Is it possible to make all the fields in a list form as non editable depending on a certain condition??
If yes kindly let me know how i can implement the same.
I like to get this done not in whole form but in a line.
There is no way to disable a line, nor is there a way to disable a tablebox control via code. The only ways are either doing the whole form ( and if it's a listform without any other controls that will LOOK the same as if you did just a line ), or do it for each and every field.
I like to get this done not in whole form but in a line.
There is no way to disable a line, nor is there a way to disable a tablebox control via code. The only ways are either doing the whole form ( and if it's a listform without any other controls that will LOOK the same as if you did just a line ), or do it for each and every field.
But my requirement is as follows:
consider there is a field called "a".
if a <> 0 then i want that particular lines to be non editable. And editable for those lines where a = 0 ....
I like to get this done not in whole form but in a line.
There is no way to disable a line, nor is there a way to disable a tablebox control via code. The only ways are either doing the whole form ( and if it's a listform without any other controls that will LOOK the same as if you did just a line ), or do it for each and every field.
But my requirement is as follows:
consider there is a field called "a".
if a <> 0 then i want that particular lines to be non editable. And editable for those lines where a = 0 ....
Is this possible???
yes, just add this to the OnAfterGetCurrRecord of your form :
Comments
OR
CurrForm.EDITABLE := MyBoolCondition;
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
BUt I do not know if vipinkuruvilla requested this per line or per table is ok for him...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I like to get this done not in whole form but in a line.
But my requirement is as follows:
consider there is a field called "a".
if a <> 0 then i want that particular lines to be non editable. And editable for those lines where a = 0 ....
Is this possible???
Thanks a lot ......