Skip to main content

B1UP Macro on Goods receipt

Comments

5 comments

  • Keshava Best

    Add another Activate()

    ActivateRightClick(5922);

    Activate();

    Set($[$13.9.NUMBER]|@STORE1); 

    Keshava

  • Tom Blais

    Thanks but I tried adding another Activate() and it still won't let me set the quantity. I even tried changing my code to activate from menu id and enter the production order number from there with no luck. I removed the variables to simplify but I continue to get the same error message.

    Macro error in UF-164: System.Exception: Error setting Matrix '13' - Column '9' - Row '0' with value '1' [Check that it is visible and active] (Item - Form item is not editable)
     [Macro Command: Set($[$13.9.NUMBER]|1)]

     

    Macro below:

    OpenForm(202|$[$BOY_1.DocEntry.0]); //Open PO

    ActivateRightClick(5922);

    Activate();

    Set($[$13.9.NUMBER]|1); 

     

     

  • Geoff Booth

    Hey Tom, turn on the Debug Mode on your macro.

    Then you can walk through the macro line by line and it will show you which form is inactive / active.

    That should help determine whether you need another Activate () or possibly a PopFormStack() to move to the form you want to activate.

  • Keshava Best

    Hi Tom,

    I tested and the issue is you need to provide the row number when setting the quantity. You also need the Activate()

    Fix for your example

    OpenForm(202|$[$BOY_1.DocEntry.0]); //Open PRO
    ActivateRightClick(5922);
    Activate();
    Set($[$13.9.NUMBER.1]|1);


    Alternate method
    Activate(4370); //Open Receipt from PRO
    Set($[$13.61.0.1]|1); //Set DocNum
    Set($[$13.9.0.1]|1);


    Keshava

  • Tom Blais

    Thank you. I tried manipulating the row number in the set command but I was doing that wrong and that was my problem. I appreciate the help and support.

Please sign in to leave a comment.