hello
i keep gettin an error in my general journal saying you cannot make any changes in the database until a transaction has been started. this is happening when i m tryin to edit any already inputted entry when adding a dimension
Please help :?
If you just swtich on "Tools/Debugger/Active", then the execution of the code wil stop on the line that causes the error. Surrounding code can tell you more about the problem.
I have turned the degugger on it stops on JnlLineDim.MODIFY; in codeunit 408 below is the snip of the code. hope this helps
GetGLSetup;
IF ShortcutDimCode <> '' THEN BEGIN
IF JnlLineDim.GET(
TableID,JnlTemplateName,JnlBatchName,
JnlLineNo,AllocationLineNo,GLSetupShortcutDimCode[FieldNumber])
THEN BEGIN
xRecRef.GETTABLE(JnlLineDim);
JnlLineDim.VALIDATE("Dimension Value Code",ShortcutDimCode);
JnlLineDim.MODIFY;
RecRef.GETTABLE(JnlLineDim);
ChangeLogMgt.LogModification(RecRef,xRecRef);
Comments
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Regards
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
GetGLSetup;
IF ShortcutDimCode <> '' THEN BEGIN
IF JnlLineDim.GET(
TableID,JnlTemplateName,JnlBatchName,
JnlLineNo,AllocationLineNo,GLSetupShortcutDimCode[FieldNumber])
THEN BEGIN
xRecRef.GETTABLE(JnlLineDim);
JnlLineDim.VALIDATE("Dimension Value Code",ShortcutDimCode);
JnlLineDim.MODIFY;
RecRef.GETTABLE(JnlLineDim);
ChangeLogMgt.LogModification(RecRef,xRecRef);