Skip to Content
0

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

Feb 16, 2017 at 05:48 PM

172

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Edy Simon Feb 20, 2017 at 01:53 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded