Check off checkbox with Macro Respondida

Ajay Audich

Hi,

In Boyum Account Balance Mass Delivery configuration, there is a 'Preview before Execution' which I am trying to check off using Macro:

I tried click and set commands, both give me the same error.

//Set($[$BOY_26.0.0]|Y);
Click($[$BOY_26.0.0]);

Macro error in UF-055: System.Exception: Could not find Item with UID: "BOY_26" on Form: BOY_85_ACCTBAL ()
[Macro Command: Set($[$BOY_26.0.0]|Y)]

Macro Enviroment parameters:
[Current Form: BOY_85_ACCTBAL - ]
[Source Row: -1] [Target Row: -1] [B

Could you let me know what I am doing wrong?

Thanks,

Ajay

Comentarios

7 comentarios

  • Comment author
    Thomas
    • Comentario oficial

    Hi,

    Click($[$BOY_26.0.0]); works, the problem is the validation. The item is not there yet when the form is loading.

    Only way to do this is to add a IPT configuration and set a "Universal function" value to it that clicks the checkbox.

    I hope this helps.

    -Thomas

  • Comment author
    Ajay Audich

    Using it with a Validation when the form loads...

    0
  • Comment author
    Rasmus Jensen

    Not needed at all. Just make it default in B1 Print and Deliveries Base config :-)

     

    0
  • Comment author
    Thomas

    Even better :-)

    0
  • Comment author
    Ildi Wileman

    Hi,

    when I try to apply Click to a checkbox as per above, it briefly checks and then unchecks the box.

    Click ($[$BOYX_2.0.0]);

    What am I meant to do differently?
    Many thanks,

    Ildi

    0
  • Comment author
    Rasmus Jensen

    Most likely your Trigger is the issue then... It properly define to react twice... Check that 'Before Action combo' in B1 Validation os set to false

    Alternative I also think 

    Set($[$BOYX_2.0.0]|Y);

    Will work

     

    0
  • Comment author
    Ildi Wileman

    Thanks Rasmus!

    With the Before Action changed from 'ignore' to 'false'

    - Click still doesn't work BUT

    -Set does!

    Many thanks!

    0

Iniciar sesión para dejar un comentario.