Hello,
I should make a TESTFIELD as in ex. following (that doesn't go right):
TESTFIELD(Type,((Type::"G/L Account") OR (Type::"Item")) )
I want the message if the type is not "G/L Account" and is not "Item".
Is that possible or do I have to use IF statement and message with text constant?
Thank you
0
Comments
it's a bit ugly (if you have to add another condition you will be in trouble) but i think it works 4 your scenario(never tried)...
at least you don't have to create a new text constant
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
in this case if Type is resource the error message will be:
"type must not be Resource in Sales Line blah blah""
if not type in [type::"g/l account",type::Item] doesn't work ! :-k
better try
Here is the message displayed
Microsoft Dynamics NAV
This prefix operator cannot be used on Option.
OK
if (type <> Type::"G/L Account") AND (type <> Type::"Item") THEN
Fielderror(type);
But other question. What is with type BLANK like for the "ext. Text" of an Item or other Description lines with a BLANK type?
does not work?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog