using diferent key in cfront

PoweRoy
Member Posts: 43
Im currently working with a handscanner. there's a new function needed for it. If someone wants to add a article-part to an order it needs to check if that part goes with the orders-article, clear huh :P
example:
coffeemachine A has a bucket X, but that bucket X goes with coffeemachine B and not A (doesnt fit)
im using nav 3.70, tables production BOM line, Service Item Line writing code in Visual Basic with the ocx
on BOM there are 2 keys active. The problem is that i need key 2 for this function.
So in cfront i set the keys right with setcurrentkey
then i prepare a record with the articlenr and the type (standart article)
then findrecord with 3rd param as '='
but it doesnt find any records. I think the problem is with setcurrentkey. it gives an error when i use wrong params, with good params it doesnt give errors :P )
It's not a clear story but can anyone give me help with the setcurrentkey?
(the reason i dont use the first key is that i dont have a fielddata of line nr. That number is completly random, its not recorded anywhere :X)
example:
coffeemachine A has a bucket X, but that bucket X goes with coffeemachine B and not A (doesnt fit)
im using nav 3.70, tables production BOM line, Service Item Line writing code in Visual Basic with the ocx
on BOM there are 2 keys active. The problem is that i need key 2 for this function.
So in cfront i set the keys right with setcurrentkey
then i prepare a record with the articlenr and the type (standart article)
then findrecord with 3rd param as '='
but it doesnt find any records. I think the problem is with setcurrentkey. it gives an error when i use wrong params, with good params it doesnt give errors :P )
It's not a clear story but can anyone give me help with the setcurrentkey?
(the reason i dont use the first key is that i dont have a fielddata of line nr. That number is completly random, its not recorded anywhere :X)
0
Answers
-
I am not an expert of CFRONT. Never used it actually.
But I think you should try to use '-' as third parameter.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
hmm thx for bumping me in the right direction
clear mind after the weekend helps a lot
had to use "-" indeed but i needed to use the setfilter function (wich i forgot) now it works \:D/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