Scripting

  • 1.  In attempting to SetValue the StandardUnitCost in

    Posted 05-25-2016 12:15
    In attempting to SetValue the StandardUnitCost in CI_ItemCode_Bus, I get a return code 1 on the SetValue and subsequent Write; however, the StandardUnitCost is not changed. After the retVal = 1, the LastErrorMsg is set to ""Module W/O is not on file"" WTF? This is the ABC company. Not sure the message is related to the StandardUnitCost not being changed. Does anyone know how to work around this peculiarity?


  • 2.  RE: In attempting to SetValue the StandardUnitCost in

    Posted 05-25-2016 12:21
    Is the item valued as standard cost? If so you cannot edit Standard Unit Cost. You must instead use Standard Cost Adjustment Entry.


  • 3.  RE: In attempting to SetValue the StandardUnitCost in

    Posted 05-25-2016 12:27
    *cough**cough* SetValueNoValidate *cough**cough*


  • 4.  RE: In attempting to SetValue the StandardUnitCost in

    Posted 05-25-2016 12:29
    Oh wait, if it returned a 1, that probably won't work either. @MichaelNottoli 's probably right.


  • 5.  RE: In attempting to SetValue the StandardUnitCost in

    Posted 05-25-2016 14:36
    I think @SteveIwanowski may be right with the SetValueNoValidate. I'd try it.


  • 6.  RE: In attempting to SetValue the StandardUnitCost in

    Posted 05-25-2016 14:40
    I did! It doesn't work either. I should have realized that for Standard Cost items it is a read-only field and controlled programmatically and not something I could change in the DD.