Skip to Content

Fix for appeon bug – using modify to set useformat causes the editmask.mask to be set to the format

The following code will reproduce this problem.  Note that we are saying NO to useformat.  That appears to be what is triggering the problem.  Just setting the format and setting the editmask.mask is not a problem.

My code did all of this via a single modify, i split it out so you could see the issue.

ls_mod = “amt.Format=’#,##0.00′ “
ls_result = dw_1.modify(ls_mod )

ls_mod = “amt.editmask.Mask=’###,###,###,###,###.00′”
ls_result = dw_1.modify(ls_mod )

ls_mod = “amt.editmask.UseFormat=’no'”
ls_result = dw_1.modify(ls_mod )

at this point the editmask limits user entry to 9,999.99

The work around is to set the useformat FIRST, and then afterwards set the editmask.mask.  Then it seems to work ok.

ls_mod = “amt.editmask.Mask=’###,###,###,###,###.00′”

ls_result = dw_1.modify(ls_mod )

Occurs in appeon 2015 WEB.  Did not occur in 6.6 web *** EDIT – this apparently DOES occur in 6.6 ***.  No idea if it occurs anywhere else.

also, appeon found that this only occurs if the editmask.mask was already set in the IDE, and THEN changed as per above.

1 Comment
You must be Logged on to comment or reply to a post.
  • Hi Micheal,

    Thanks for sharing the workaroud. We reproduced it with your newly provided test case in the Appeon Support Center and will work on it. We’ll keep you posed if we make any progress in the Appeon Support Center.

    Thanks,

    Appeon Support Team