Change log issue

siyak
siyak Member Posts: 66
Hi good people!!! I've writen a code that write straight to the change log,I'm doing a reject/Approve on that code the it writes to the change log.Here is the Code
Oldrecref.GETTABLE(Rec);
Lastname := "Old Lastname";
Initials := "Old Initials";
"ID No." := "Old ID No.";
"VAT Registration No." := "Old Vat Registration No";
"Actual Status" := "Actual Status"::Rejected;               
cChangeLogMngt.LogModification( NewRecRef, Oldrecref );


This working very well,when i do the reject,it shows the modification verify and Rejected on the change log,but when the client do it shows the changes but not the modification Rejected.I don't know if its the Change log setup or what? :-k

Comments

  • Sandeep_Prajapati
    Sandeep_Prajapati Member Posts: 151
    Whenever something is happening proper with developer and improper with customer, mostly It is the Licence and/or Permission problem. Please do let we also know what is wrong when you get the problems - root. :-k
    Sandeep Prajapati
    Technical Consultant, MS Dynamics NAV
  • Albertvh
    Albertvh Member Posts: 516
    Hi
    You are not getting the NewRecRef maybe you should try this


    Lastname := "Old Lastname"; 
    Initials := "Old Initials"; 
    "ID No." := "Old ID No."; 
    "VAT Registration No." := "Old Vat Registration No"; 
    "Actual Status" := "Actual Status"::Rejected;
    //Add
    MODIFY;
    NewRecRef.GETTABLE(Rec);
    //EndAdd
    cChangeLogMngt.LogModification( NewRecRef, Oldrecref ); 
    

    Hope this helps

    Albert
  • siyak
    siyak Member Posts: 66
    I'm sorry i left thison when i copied the code
    NewRecRef.GETTABLE(Rec);
    
    I have this piece of code before i call the function!!!