cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

edy_simon
Active Contributor
0 Kudos

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