Problems using recordref,fieldref... JOKER

AitorEG
Member Posts: 342
Hi everyone,
This is my first time using recordrefs and all the related issues, so may be I am asking about somthing obvius. First of all, I'll show a piece of code:
Variables:
lCampoREF FieldRef
lRegistroREF RecordRef
lDocNoRef FieldRef
When I compile I can see this error in the call to "Signed" function:

Probably I am doing something else worng because as I've said, I am new in this issues...
Any other clarification you can ask me, I know that it's quite hard to help without knowing waht it's the aim of the development
Thank you very much
This is my first time using recordrefs and all the related issues, so may be I am asking about somthing obvius. First of all, I'll show a piece of code:
LOCAL RecorrerRutas() //190212-01 lGeneralSetup.GET(); lRecordFilerelation.RESET; IF lRecordFilerelation.FINDSET THEN REPEAT lRegistroREF.OPEN(lRecordFilerelation."Object ID."); lCampoREF := lRegistroREF.FIELD(lRecordFilerelation."Field ID Posting Date"); lCampoREF.SETFILTER('>%1',CALCDATE('-<lGeneralSetup."Day-to Check">',WORKDATE)); IF lRegistroREF.FINDSET THEN REPEAT lDocNoRef := lRegistroREF.FIELDINDEX(1); IF NOT Signed(lDocNoRef.VALUE , lRecordFilerelation."Object ID.") THEN//comprobar firmado IF NOT Sent(lDocNoRef.VALUE,lRecordFilerelation."Object ID.") THEN//comprobar enviado a firmar ComprobarRegistros; UNTIL lRegistroREF.NEXT =0; UNTIL lRecordFilerelation.NEXT =0; LOCAL Signed(pDocNo : FieldRef;pRecType : Integer) : Boolean lSentNotReceivedDocs.RESET; IF lSentNotReceivedDocs.GET(pRecType,pDocNo) THEN EXIT(TRUE) ELSE EXIT(FALSE); LOCAL Sent(pDocNo : FieldRef;pRecType : Integer) : Boolean lSentReceivedDocs.RESET; IF lSentReceivedDocs.GET(pRecType,pDocNo) THEN EXIT(TRUE) ELSE EXIT(FALSE);
Variables:
lCampoREF FieldRef
lRegistroREF RecordRef
lDocNoRef FieldRef
When I compile I can see this error in the call to "Signed" function:

Probably I am doing something else worng because as I've said, I am new in this issues...
Any other clarification you can ask me, I know that it's quite hard to help without knowing waht it's the aim of the development
Thank you very much
0
Best Answer
-
in the parameter for signed function pDocNo, use the type variant. replied you on DUG as wellUnited Kingdom5
Answers
-
in the parameter for signed function pDocNo, use the type variant. replied you on DUG as wellUnited Kingdom5
-
Developer101 wrote: »in the parameter for signed function pDocNo, use the type variant. replied you on DUG as well
Thank yuo, appreciated!!!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