Line No. doesn't work

mark_christs
Member Posts: 156
Dear All,
I have added a field in a table, and it's line no. that will show position of item for exmple Line No. 10000, 20000, 30000, etc. according to item put in the line. The field is shown in the form but created in a table. the table is a sourcetable for the form.
I've set autosplitkey in the form, or add the field in the primary keys of the table as the last but still not work good.
Any answers from you are expected and welcome. tks a lot.
Rgds,
Mark Christs
I have added a field in a table, and it's line no. that will show position of item for exmple Line No. 10000, 20000, 30000, etc. according to item put in the line. The field is shown in the form but created in a table. the table is a sourcetable for the form.
I've set autosplitkey in the form, or add the field in the primary keys of the table as the last but still not work good.
Any answers from you are expected and welcome. tks a lot.
Rgds,
Mark Christs
0
Comments
-
In the form, you need to filter ONLY on the fields of the primary key that come BEFORE the "Line No.". If you have other filters, the autosplit-functionality gets confused.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi,
I can't still find it work good, is it another solution besides that..?
Rgds,
Mark0 -
mark_christs wrote:I can't still find it work good, is it another solution besides that..?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Dear kriki,
I have a table (let say table x) and it exists in navision. There is a field there let say field x. its datatype is integer. It is primary key in the table. I create then line no. field and has datatype integer too. I want it to be indicator of line, for example in the table there are item A, line no. 10000, item B line no. 20000 etc. the field x also show that but its no. begin from 1, 2, 3 etc..
So, I want to create coding that functions to split a data in a certain field (let say field y) in the table to a selected lines for example I select line 10000 - 30000, then a data in the field y will be splitted and filled to the other line but the same field.
Tks a lot for your answer then
Rgds,
Mark0 -
I created a table+form where it works. Save the code in a textfile and import it into a cronus 4.0 or higher DB (probably it works also in a lower version). It uses table 50000 and form 50000.
To have it work correctly, you should put a filter on field x to show only 1 value.OBJECT Table 50000 Split Line { OBJECT-PROPERTIES { Date=22/06/06; Time=15:25:42; Modified=Yes; Version List=; } PROPERTIES { } FIELDS { { 1 ; ;x ;Integer } { 2 ; ;y ;Integer } { 10 ; ;Some Data ;Text30 } } KEYS { { ;x,y ;Clustered=Yes } } CODE { BEGIN END. } } OBJECT Form 50000 Split Lines { OBJECT-PROPERTIES { Date=22/06/06; Time=15:26:08; Modified=Yes; Version List=; } PROPERTIES { Width=9790; Height=6710; TableBoxID=1000000000; SourceTable=Table50000; AutoSplitKey=Yes; } CONTROLS { { 1000000000;TableBox;220 ;220 ;9350 ;5500 ;HorzGlue=Both; VertGlue=Both } { 1000000001;TextBox;0 ;0 ;1700 ;0 ;ParentControl=1000000000; InColumn=Yes; SourceExpr=x } { 1000000002;Label ;0 ;0 ;0 ;0 ;ParentControl=1000000001; InColumnHeading=Yes } { 1000000003;TextBox;0 ;0 ;1700 ;0 ;ParentControl=1000000000; InColumn=Yes; SourceExpr=y } { 1000000004;Label ;0 ;0 ;0 ;0 ;ParentControl=1000000003; InColumnHeading=Yes } { 1000000005;TextBox;0 ;0 ;4400 ;0 ;HorzGlue=Both; ParentControl=1000000000; InColumn=Yes; SourceExpr="Some Data" } { 1000000006;Label ;0 ;0 ;0 ;0 ;ParentControl=1000000005; InColumnHeading=Yes } { 1000000007;CommandButton;2530;5940;2200;550; HorzGlue=Right; VertGlue=Bottom; Default=Yes; PushAction=LookupOK; InvalidActionAppearance=Hide } { 1000000008;CommandButton;4950;5940;2200;550; HorzGlue=Right; VertGlue=Bottom; Cancel=Yes; PushAction=LookupCancel; InvalidActionAppearance=Hide } { 1000000009;CommandButton;7370;5940;2200;550; HorzGlue=Right; VertGlue=Bottom; PushAction=FormHelp } } CODE { BEGIN END. } }
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Dear Kriki,
Tks a lot for the codings. I will try to use them. Anyway, I will inform if any problems arise.
Rgds,
Mark0
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