Reset and Deleteall

FaulconFaulcon Member Posts: 19
edited 2005-03-10 in Navision Attain
I see Deleteall used quite a lot in the standard navision codeunits, and lines like the following puzzle me somewhat:

TempJnlLineDim.RESET;
TempJnlLineDim.DELETEALL;

Given that TempJnlLineDim is a global variable for Record 356 (Journal Line Dimension), this would remove every row in that table would it not? My issue here is that the table in question (356) contains rows referring to multiple other tables and journal batches so for any single object to delete all rows in the table makes no sense to me. Can someone explain what it's really doing assuming my understanding is incorrect?

Comments

  • facadefacade Member Posts: 57
    TempJnlLineDim - referres to temp ie look for propery Temporary = Yes and I think you shall have a clue what's happening.
  • FaulconFaulcon Member Posts: 19
    Thanks, I keep missing those property pages. Doesn't seem to be the case in a couple of functions in Codeunit 5895 which might be where the problem I was trying to find lies.
Sign In or Register to comment.