Skip to Content
avatar image
Former Member

Can't set focus on Matrix Row after Update UDO document - SAP Business One SDK

Hi all,

i have a little but annoying problem on my addon.

I have an UDO document using a matrix and when i update the UDO everything works fine, except i can't automatically set the focus on the last row of the matrix after the update is completed.

I already tried to Click on a cell in the last row in the FormDataEvent Update, but it doesn' work, the focus is just Lost.

Anyone has some hint?

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 20, 2017 at 01:53 AM

    Hi Massimiliano,

    Do you have any specific reason you need to place the 'Click on a cell in the last row' code in the After From Data Update event ?
    After this event, SBO will refresh the form, thus you will loose the focus.

    What if you place the code in AfterItemPressed event and pVal.ActionSuccess == true?
    I assume the user will click the 'Update button' to update this form?

    Regards

    Edy

    Add comment
    10|10000 characters needed characters exceeded