ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

ConfirmHandler receives wrong Message when Confirm() with implicit StrSubstNo() is used.

Open MatjazSega opened this issue 3 years ago • 3 comments

Hello all!

I am working on automated tests for one of our new apps and I have issues with ConfirmHandlers not receiving the whole message text when using Confirm() with Values for implicit StrSubstNo().

For example, when my Confirm looks like this:

image

where labels are:

image

ConfirmHandler receives Message with only ConfirmChangeQst text, without having %1 replaced with BillToPartnerTxt:

image

When I change Confirm to include explicit StrSubstNo:

image

ConfirmHandler receives correct Message:

image

I guess this is a bug? I am working on version 22.1.

BR, Matjaž

MatjazSega avatar Jun 27 '23 10:06 MatjazSega

Hey, @MatjazSega, good to see you around here.

I was pointed to this issue by Kilian Seizinger as I had just reported it to MS on yammer and wrote a blog post about it: https://www.fluxxus.nl/index.php/bc/getting-handed-over-the-full-text-to-your-confirmhandler/.

lvanvugt avatar Jul 07 '23 09:07 lvanvugt

Hey @lvanvugt !

Yeah, I've encountered this issue before, but I could usually avoid it by checking just the beginning of the confirm message. This time, it was impossible and I really did not feel like changing the code to enable automated tests...

I'm just realizing that I might have picked a wrong place to report this bug - Yammer is probably a better place for platform bugs.

MatjazSega avatar Jul 07 '23 10:07 MatjazSega

@nikolakukrika has created an internal bug now.

lvanvugt avatar Jul 07 '23 11:07 lvanvugt