Error Right-Click menu only in document rows

Ivan Nussi

I created a Right-Click menu in Sales order and I would have this menu only when right click in a row of the document.

To make this I selected a function type Conditional with this very simple SQL structure:

IF($[CURRENT_ITEM] = '38')
BEGIN
SELECT 'GO' FOR BROWSE
END

When I do Right-Click in the rows everything works correctly, but if I do Right-Click in the other parts of the document the system returns an error.

Function menu Right-Click

Error right click not in rows (ex. in the grey area in the header or footer)

Comentarios

3 comentarios

  • Comment author
    Dave Gutman

    Hi Ivan,

    I reproduced the issue you have here, and then addressed it by changing the Condition logic as shown here: 
    IF($[CURRENT_ITEM] = '38')    

       BEGIN

       SELECT 'GO' FOR BROWSE

       END

    ELSE

       BEGIN

       SELECT 'NOTINGRID' FOR BROWSE

       END

    I did not add NOTINGRID to the Condition grid (at the bottom)

    0
  • Comment author
    Ivan Nussi

    Hi Dave,

    the workaround works only if you do right click with the focus inside a field.
    But if you do right click in the grey area of the document (not inside a field) the error appears newly.

    I believe this is a wrong behavior.

    0
  • Comment author
    Ivan Nussi

    Does anyone have a solution?
    Boyum is not a system bug?

    0

Iniciar sesión para dejar un comentario.