Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all articles
Browse latest Browse all 29197

Temporary Records

$
0
0

When Posting a Warehouse Receipt Line if all the quantity is dealt with the Warehouse Receipt Line is deleted. Way before  this happens I set the Record in a global variable to store for later use. However when the record is deleted it seems to be clearing my temporary record. I can't allow this as I need the values from this record after it is deleted. 

I've don it like this. 


grecWarehouseReceiptTMP := Rec;
grecWarehouseCommentLineTMP := recWarehouseCommentLine;
cuItemMgmnt.WarehouseReceiptAndCommentSet(grecWarehouseReceiptTMP,grecWarehouseCommentLineTMP);

WarehouseReceiptAndCommentSet(VAR recWarehouseReceiptLineTMP : TEMPORARY Record "Warehouse Receipt Line";VAR recWarehouseCommentLineTMP : TEMPORARY Record "Warehouse Comment Line")

grecWarehouseRcptLineTMP := recWarehouseReceiptLineTMP;
grecWarehouseCommentLineTMP := recWarehouseCommentLineTMP;

Now when after the original record is deleted I try and use these global variables (grecWarehouseRcptLineTMP ,grecWarehouseCommentLineTMP ) They are cleared. How can I prevent this? 


Viewing all articles
Browse latest Browse all 29197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>