I apologize I am new too programming in general let alone x++. I want to modify the way the InventMovement\checkDImPhysical method handles some productions when I am posting reported as finished productions in the production module. When I am debugging I see that when I validate the RAF journal it originally calls the ProdJournalCheckPostProd class. Eventually in the call stack it uses the checkDimPhysical method from the InventMovement class and "this" contains the prodJournalProd table with a single production journal selected. When I try to edit the checkDimPhysical method by adding this.prodJournalProd I get a syntax error. If I print "this" I get no error.
The table isn't mentioned anywhere in this method or class I don't know how but is it possible that the object is from another class in the call stack. How can I use this information in this method or do I have to declare the table as variable and run a query to find it?
I'm sorry if I am not clear if I need to reword this or provide more information please me know.
if (this.dimSearch().dimPrimaryStocking())
{
okTmp = checkFailed(strfmt("@SYS54776",fieldid2pname(_inventDim.TableId, x)));
This is the line in the InventMovement\checkDimPhysical method that I want to add on to. The IDE isn't providing me the option for prodjournaltable when I type "this" as well, but it providing me other methods and properties instead.
Thank you.
*This post is locked for comments
I have the same question (0)