How to show array's records in a Form

matias_jaure
Member Posts: 157
Hi everyone!... We have an issue here, we are storing some records in an array. Now, we want to show all the records in a form, we try to do the following:
CurrForm.Diary.FORM.SETTABLEVIEW(g_arrayDiary);
But Navision gave error "the dimension have to be equal" or something similar. So, we are stuck here. Any idea?
Thanks for your time people!
CurrForm.Diary.FORM.SETTABLEVIEW(g_arrayDiary);
But Navision gave error "the dimension have to be equal" or something similar. So, we are stuck here. Any idea?
Thanks for your time people!
0
Comments
-
Can you explain what you mean by "storing some records in an array"? Since Navision tables do not support arrays.There are no bugs - only undocumented features.0
-
bbrown wrote:Can you explain what you mean by "storing some records in an array"? Since Navision tables do not support arrays.
I create an array of type record of some table. So, array is a record. That's what I mean0 -
Each dimension of the array behaves as a separate record variable. You must issue commands like Array[1].SETRANGE and not Array.SETRANGE.There are no bugs - only undocumented features.0
-
bbrown wrote:Each dimension of the array behaves as a separate record variable. You must issue commands like Array[1].SETRANGE and not Array.SETRANGE.
Yes, I do so. But the problem is that I want to show all records in a form, all togheter.. Is there a way?0 -
In NAV you cannot create TextBox dynamically with your arrays (source)
Or if I don't have right please disprove it and tell me how anybody can, because sometimes it will be a clear compromise. O:)
http://www.mibuso.com/forum/viewtopic.php?t=213120 -
You need something like:
for i:=0 to MaxItems do begin RecVar := Array[i]; RecVar.FIND('='); RecVar.MARK := True; end; RecVar.MarkedOnly := True;
And pass the RecVar as the source...0 -
kine wrote:You need something like:
for i:=0 to MaxItems do begin RecVar := Array[i]; RecVar.FIND('='); RecVar.MARK := True; end; RecVar.MarkedOnly := True;
And pass the RecVar as the source...
In a function define array of length array[8] .now i want to change the length of array.please tell me process how i can define array size at time of declaration.please help me as soon as possible.0 -
-
Once again: see the variable properties. I mean "open the properties window when you are standing on the variable (on the definition)".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