See if Record Link exist by customer
 
            
                
                    RLukassen                
                
                    Member Posts: 2                
            
                        
            
                    Does anybody know how I can show at the customer card that a Record link exist (table 2000000068) for this customer (same as comment exist, with a boolean). The data is in a Datatype RecordID. We use Nav 5.0.                
                0                
            Comments
- 
            This is already there in the status bar (just to the right of the work date).0
- 
            Have a similar problem. While having Navision automatically display LINKS in the status bar is nice, I need to create a CU that does some processing for all jobs that have an attachment. So far, I am unable to format the Record ID field. What type is it, really, and how does one format a lookup key?
 TIA.0
- 
            Hi,
 You will need to create the recordid you need. This is done by using a recordref type variable
 e.g.
 CustRecRef.OPEN(18);
 CustRec.GET( '20000' );
 CustRecRef.GETTABLE( Custrec );
 recid := CustRecref.RECORDID;
 CustRecRef.CLOSE;
 where CustRecRef is a recordref variable and CustRef is a record variable0
- 
            Hello,
 Variable called recid which datatype has?
 I am doing a similar thing for Items:
 I am on trigger Form - OnAfterGetRecord() of form 30 Item Card
 and defined these local variables:
 ..
 Name DataType Subtype
 lRecRecordLink Record Record Link
 lRecRefItem RecordRef
 lRecItem Record Item
 ..
 lRecRefItem.OPEN( DATABASE::Item);
 lRecItem.GET("No.");
 lRecRefItem.GETTABLE( lRecItem );
 lRecRecordLink.SETCURRENTKEY(Company);
 lRecRecordLink.SETRANGE(Company,COMPANYNAME);
 lRecRecordLink.SETCURRENTKEY("Record ID");
 lRecRecordLink.SETRANGE("Record ID",lRecRefItem.RECORDID);
 MESSAGE(FORMAT(lRecRefItem.RECORDID));
 IF lRecRecordLink.FINDFIRST THEN
 gBoolAttachmentPresence := TRUE
 ELSE
 gBoolAttachmentPresence := FALSE;
 lRecRefItem.CLOSE;
 The message is correct for example 'Item : ABC'
 but filter
 lRecRecordLink.SETRANGE("Record ID",lRecRefItem.RECORDID);
 is not applied. Why this?0
- 
            Can nobody help me?
 What is wrong?
 Thanks0
- 
            Dear ufuk,
 I don't find this thing in the help.
 Is there another way to solve my problem?
 Thank you very much0
- 
            Probably you can get into a loop and query the values...Ufuk Asci
 Pargesoft0
- 
            NAV help says that you cannot set filters on RecordID but you can apply textfilters on it. So I think you can filter like:
 RecLink.SETFILTER("Record ID",FORMAT(prec."Record ID"));
 The FORMAT is essential, no other way of filtering (except flowfield in the table using a recordid field) will work.
 grtz.Straight forward... Move!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
- 323 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





