Looks OK.. check for sure is variable TomHeader is the same record which is in RecRef.
Maybe You get error on EpFunction. Check debugger when error occurs.
Looks OK.. check for sure is variable TomHeader is the same record which is in RecRef.
Maybe You get error on EpFunction. Check debugger when error occurs.
This is how I have given in my C/AL Globals :
Parameters :
Var Name DataType Subtype Length
No GUID Text 50
Yes HeadRecordRef RecordRef
Variables :
Name DataType Subtype Length
TomHeader Record TomHeader
HeadFieldRef FieldRef
tmpNo Code 20
Iam still getting the same error. Any idea ???
Comments
On which object?
Probably a form/report that shows a field that doesn't exist in the table anymore?
Maybe some code with recorref or filedref variable?
Yes I have used recordref and fieldref. The following is my code for Employee Portal Insert
HeadRecordRef.OPEN(DATABASE::TomHeader,FALSE);
HeadRecordRef.INIT;
HeadRecordRef.INSERT(TRUE);
HeadFieldRef := HeadRecordRef.FIELD(TomHeader.FIELDNO(No));
tmpNo := HeadFieldRef.VALUE;
EPSupportFunctions.CreateTempHeadFilterTable(TomHeader.FIELDNO(No),tmpNo,GUID);
EPSupportFunctions.CreateTempHeadFilterKeys(TomHeader.FIELDNO(No),GUID);
where TomHeader is the record variable of my table.
Please do help me in finding my mistake.
Thanx in advance....
Maybe You get error on EpFunction. Check debugger when error occurs.
This is how I have given in my C/AL Globals :
Parameters :
Var Name DataType Subtype Length
No GUID Text 50
Yes HeadRecordRef RecordRef
Variables :
Name DataType Subtype Length
TomHeader Record TomHeader
HeadFieldRef FieldRef
tmpNo Code 20
Iam still getting the same error. Any idea ???
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.