B1 UP - Document Rows - Find out if a row is selected (highlighted)

Stefan Thole

Hi everyone,

I am working on a function that copies item information from an inventory transfer line into a service call (internal repair of faulty products).

I created a button on the inventory transfer that leads to a simple makro using the row syntax described here: https://support.boyum-it.com/hc/en-us/articles/222036088-Working-with-rows-and-Keywords-using-Dynamic-Syntax 

The first draft of the macro is simple:

Activate(3587);

Transfer($[$23.1.0.SELECTED]|$[$33.0.0]);

It all works great, with one exception:  if no line is selected, the system defaults to using the item in line 1 to create the service call, as also described in the video.

My question:  How can I figure out if ANY line is selected at all before executing the macro?

Thank you and best regards,

Stefan

Comentarios

1 comentario

  • Comment author
    Stefan Thole

    Hello everyone,

    just as a quick response. I found the solution.  The key was to run through the grid with a line loop and use the $[IS_ROW_SELECTED(item|row)] special keyword to find out if a row is selected or not.  With the below line loop settings, I could check if the query returned the proper result and then proceed like above.

    I just thought it would be good to share.

     

    Best regards,

    Stefan

    0

Iniciar sesión para dejar un comentario.