Select a register in LookUp Trigger
hunter
Member Posts: 19
Hi, i have a little problem, i'm using the next code into the trigger section
but, always open the top of the records... i would like move the position to a determinate record...
for example:
Code = 3111
always open the top (Code 2000)
i'ts posible move the record to 3111 and preserve, the filter???:
recDimValue.SETFILTER(recDimValue."Dimension Code",'OBJGASTO');
recDimValue.SETFILTER(recDimValue.Code,'3000..3997|2000..2997');
CLEAR(recDimValue);
recDimValue.SETCURRENTKEY(Code);
recDimValue.SETFILTER(recDimValue."Dimension Code",'OBJGASTO');
recDimValue.SETFILTER(recDimValue.Code,'3000..3997|2000..2997');
IF FORM.RUNMODAL(0,recDimValue,recDimValue.Code)=ACTION::LookupOK THEN BEGIN
"Objeto del gasto":=recDimValue.Code;
END;
but, always open the top of the records... i would like move the position to a determinate record...
for example:
Code = 3111
always open the top (Code 2000)
i'ts posible move the record to 3111 and preserve, the filter???:
recDimValue.SETFILTER(recDimValue."Dimension Code",'OBJGASTO');
recDimValue.SETFILTER(recDimValue.Code,'3000..3997|2000..2997');
0
Comments
-
You mean something like:
recDimValue.GET('OBJGASTO','3111'); //get this record
orrecDimValue."Dimension Code" := 'OBJGASTO'; recDimValue.Code := '3111'; recDimValue.FIND('=<>'); //find same record or some nearest it0 -
:shock: :shock: amazing!!!
very simple and very functional, that solve the problem, many thanks for your help
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
