Function which return 'Is not an option'
JedrzejT
Member Posts: 267
Hello All
Where is a function which return this Error ?
"Is not an option 'something'"
"The existing options are : "
" 'something,,,'
by the way
Is Navisin store all optionstrings of all field in database in table?
Sorry for my english
Where is a function which return this Error ?
"Is not an option 'something'"
"The existing options are : "
" 'something,,,'
by the way
Is Navisin store all optionstrings of all field in database in table?
Sorry for my english
0
Comments
-
It can be line like:
SalesLine.SETRANGE("Document type",'Order');
When you run this code under another language.
Correct form>SalesLine.SETRANGE("Document type",SalesLine."Document type"::"Order");
The options are not in table, but can be get through RecordRef and FieldRef.OPTIONSTRING...GetOptionValues(Tab : Integer;Field : Integer) : Text[200] var RecRef: RecordRef; FRef: FieldRef; begin RecRef.OPEN(Tab); FRef := RecRef.FIELD(Field); OptVal := FRef.OPTIONSTRING; RecRef.CLOSE; EXIT(OptVal); end;
0 -
Thanks
I know how take the optionstring by fldref
I'd like to take advantage of this function (if exists) to check that option is correct for optionstring of field.
I have table
TblID | FldIf | Value |
User lookup table and field, Then enter value.
If field is type:option i want check is this entry correct for this optionstring
The best if I could make from it DrillDown and select option, but this is probably impossible.0 -
"Field Type"::Option: BEGIN OptNo := STRMENU(GetOptionValues("Base Table","Field No."),1); NewVal := SELECTSTR(OptNo,"Option Values"); END;
What about this code?? I am using it for users to select the option...0 -
Thanks
I would run on it long time...
If you have a Solution to create a lookup on this field "Value" your a champion
I read on this forum today that is not possible
i try it
recref,OPEN(Table."Tabled id")
Fldref=recref.FIELD("Field ID")
IF FORM .RUNMODAL(0,FldRef.RELATION)=ACTION::LookupOK THEN
Thanks again0 -
By adding an option field to a form, Navision will put the field into a dropdown list control, and from there you can only enter valid values.0
-
Yes, but not in situation, when you are using recordref and fieldref and want to select options for different fields...0
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
- 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
- 323 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

