Field Table - Optionstring of <Field> "Type"
warrax
Member Posts: 25
Ifsomeone can quickly help me. I want the Optionstring of the <Field> "Type" in the Field Table - Table 2000000041.
The only way I know of how to do it is to create a new report with the "Field" table, go to the sections, add the <Field> "Type", go to the Properties of the TextBox, go to the <Property> Optionstring, and get the values. Only problem is, my session just kills itself the moment I get to that property - it just disappears without any message or anything. #-o
Can someone please give me the value? [-o<
Thanks
The only way I know of how to do it is to create a new report with the "Field" table, go to the sections, add the <Field> "Type", go to the Properties of the TextBox, go to the <Property> Optionstring, and get the values. Only problem is, my session just kills itself the moment I get to that property - it just disappears without any message or anything. #-o
Can someone please give me the value? [-o<
Thanks
0
Comments
-
You could create a form on that table, and then get the options list by lookup in the field. Not the actual optionstring, but at least all the option values.
Regards Fredrik0 -
Hi
I know of many ways to get the values, but I want the actual optionstring. I need it to be exactly the same, because I will to comparisons between the 2 tables.0 -
Compare the values based on their position in the option string (numeric value). That way you don't need the string.There are no bugs - only undocumented features.0
-
test with RecRef and FieldRefDo you make it right, it works too!0
-
Holy cow that is bizarre :shock:
I tried, added that table as the source table of a form, looked at the properties of the type field, and right as soon as you put the cursor on the option string property the system crashes.....0 -
garak wrote:test with RecRef and FieldRef
This is the correct way. You can read the Captions and Names through the FiledRef.0 -
kine wrote:garak wrote:test with RecRef and FieldRef
This is the correct way. You can read the Captions and Names through the FiledRef.
If you don't know the code to use:varRecRef.OPEN(2000000041); varFieldRef := varRecRef.FIELD(5); MESSAGE('%1',varFieldRef.OPTIONSTRING);
Or the more appropriate method:varRecRef.GETTABLE(FieldTable); varFieldRef := varRecRef.FIELD(FieldTable.FIELDNO(Type)); ...
0 -
Tried to execute above code with OPTIONSTRING and OPTIONCAPTIONS - both just closed Navision (4.0 SP3 and 5.0 SP1) client. I think there is buffer overflow in code execution.
Then I created table with one field for every data type. And run process which inserts data about my new table from Field Table in to another table.
The result "a bit" surprised me., though it could explain buffer overflow:
OptionNo OptionStr
34559 Integer
11519 Text30
35071 Code10
12799 Decimal
35583 Option
34047 Boolean
11775 Date
11776 Time
33791 Binary4
33793 BLOB
11797 DateFormula
04912 TableFilter
36095 BigInteger
36863 Duration
37119 GUID
04988 RecordID224
37375 DateTime
Of course with Case statement I got what I wanted, but I'm just curios about Type field properties
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
- 322 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

