Knowledgebase
Using modify to set useformat causes the editmask.mask to be set to the format in Appeon Web 2015
Posted by Nico Wang on 05 May 2015 01:29 PM

The following code will reproduce this problem.  Just setting the format and setting the editmask.mask is not a problem.

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. 

 ls_mod = "amt.editmask.Mask='###,###,###,###,###.00'"

ls_result = dw_1.modify(ls_mod )

This only occurs if the editmask.mask was already set in the IDE, and THEN changed as per above.

(0 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 

Please login if you wish to leave a comment about this article.

Help Desk Software by Kayako Fusion