SetSelectionFilter and Temporary Table
Staminos
Member Posts: 68
Hi,
I have a little problem with currform.setselectionfilter(VarTable) based on temporary table.
It is simple, it doesn't work.
So, if anybody know how record was mark when it selected i take it !
Thank a lot
I have a little problem with currform.setselectionfilter(VarTable) based on temporary table.
It is simple, it doesn't work.
So, if anybody know how record was mark when it selected i take it !
Thank a lot
0
Comments
-
native or sql? if sql is the sort order the pk sort order? viewtopic.php?f=23&t=27755
Is there an error message displayed?
example: form is based on tab 18Form - OnInit() InitTempTab(); Form - OnFindRecord(Which : Text[1024]) : Boolean TempCust.COPY(Rec); Found := TempCust.FIND(Which); Rec := TempCust; EXIT(Found); Form - OnNextRecord(Steps : Integer) : Integer TempCust.COPY(Rec); ResultSteps := TempCust.NEXT(Steps); Rec := TempCust; EXIT(ResultSteps); InitTempTab() Cust.setrange("No.",'00000001','00000010'); cust.find('-'); repeat Tempcust := cust; Tempcust.insert; until cust.next = 0; <Control1119402005> - OnPush() CurrForm.SETSELECTIONFILTER(Cust); IF Cust.FIND('-') THEN BEGIN REPEAT MESSAGE(Cust."No." + ' ' + Cust.Name); UNTIL Cust.NEXT = 0; END;
or the the TempTab is set before in a other function likeTempTab := Rec; //somewhere in a loop for example form.run(FormID,TempTab);
In the form (FormID) you have the same setselectionfilter function like in the source above.
RegardsDo you make it right, it works too!0 -
Thank for your response.
But my problem is when i mark.
I can't get marked line without function in menuitem. I use function coded in assistedit trigger form's control.
So if somebody have a solution...0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions