"There are too many dimensions " Error

MarharytaMykytenko
Member Posts: 53
I have a List Page which displays data of one integer field from a table.
I have to produce some operations with this field (sort in decreasing). So my field is like 10 dimension array (10 integer numbers are get).
Here error is occurs ("j" gets value from 1 to the (length of array-1))

Could anybody tell me what I have to change or just why I have this error
I have to produce some operations with this field (sort in decreasing). So my field is like 10 dimension array (10 integer numbers are get).
Here error is occurs ("j" gets value from 1 to the (length of array-1))

Could anybody tell me what I have to change or just why I have this error
0
Answers
-
What does the error specify? Hold your mouse over the j with the red line to reveal more information.0
-
-
MarharytaMykytenko wrote: »
Check the "dimensions" value of the properties of your variable J.
If it's undefined, set it to 1, as so:
0 -
MarharytaMykytenko wrote: »
Check the "dimensions" value of the properties of your variable J.
If it's undefined, set it to 1, as so:
OK, thanks but now "j" is array and this error is occurs
0 -
MarharytaMykytenko wrote: »MarharytaMykytenko wrote: »
Check the "dimensions" value of the properties of your variable J.
If it's undefined, set it to 1, as so:
OK, thanks but now "j" is array and this error is occurs
I'm sorry @MarharytaMykytenko , I meant the "Input" variable, not the "J" variable, my mistake.
0 -
MarharytaMykytenko wrote: »MarharytaMykytenko wrote: »
Check the "dimensions" value of the properties of your variable J.
If it's undefined, set it to 1, as so:
OK, thanks but now "j" is array and this error is occurs
I'm sorry @MarharytaMykytenko , I meant the "Input" variable, not the "J" variable, my mistake.
heeeh,
No, nothing changed0 -
Hi,
1 is not a sensible value for dimension. In this property you specify, how many elements your array will have.
Dimension is actually quite misleading here (and also in your usage if the term in your original question).
An array, as you used it in your example code has one dimension (It' is a line or string of data, having 1 coordinate). You can give it additional dimensions by adding more values to the Dimension property, separated by semicolons. You then specify the same number of subscripts when using the values of your array
e.g
A has property Dimension=10;10
A[1,1] is your first element (note: it's 1-based)
Array A now has two dimensions. It is a field (or plane) of values needing 2 coordinates to identify a value. The size of each dimension is 10.
An ordinary Array has on dimension. So in your case
variable Input should have property Dimension=10
If you still have problems, try to remove any code that has no bearing in the error, reducing the code to the bare minimum where the error still occurs. If that process did not help you by itself to figure out the problem, post that code, including the declarations, for the community to investigate further.
1 -
Hi,
1 is not a sensible value for dimension. In this property you specify, how many elements your array will have.
Dimension is actually quite misleading here (and also in your usage if the term in your original question).
An array, as you used it in your example code has one dimension (It' is a line or string of data, having 1 coordinate). You can give it additional dimensions by adding more values to the Dimension property, separated by semicolons. You then specify the same number of subscripts when using the values of your array
e.g
A has property Dimension=10;10
A[1,1] is your first element (note: it's 1-based)
Array A now has two dimensions. It is a field (or plane) of values needing 2 coordinates to identify a value. The size of each dimension is 10.
An ordinary Array has on dimension. So in your case
variable Input should have property Dimension=10
If you still have problems, try to remove any code that has no bearing in the error, reducing the code to the bare minimum where the error still occurs. If that process did not help you by itself to figure out the problem, post that code, including the declarations, for the community to investigate further.
Thanks everyone for answers and ideas.
I have already solved my problem. Your tips were so useful.0 -
May be somebody knows how can I get all values of field in table for writing in the variable of array? (type of field - Integer)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
- 320 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