on 06-26-2008 8:52 AM
Hi
Is there a standard way of checking for negative amounts that are entered into an input field? I'm thinking of something similar to the mandatory field check.
Cheers
Ian
read the attribute and compare using an IF condition.
You can have formats showing the sign using the following code
data: lr_info type ref to if_wd_context_node_info.
data: ls_prop type WDY_ATTRIBUTE_FORMAT_PROP.
lr_info = wd_context->get_node_info( ).
ls_prop = lr_info->GET_ATTRIBUTE_FORMAT_PROPS( name = 'VAL' ).
ls_prop-SIGN_POS = '-'.
lr_info->sET_ATTRIBUTE_FORMAT_PROPS( name = 'VAL'
FORMAT_PROPERTIES = ls_prop ).
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi
>
> You are quite correct. I was expecting the error on pressing enter or navigating away from the field but I only get on pressing a button - presumably initiating the roundtrip.
>
> Thanks for your help.
>
> Cheers
> Ian
Almost all validations in Web Dynpro are Server Side. That is reasoning why this is not checked until a button is pressed. In future releases we will include more client side/server side interaction and such checks might be possible seamingly on the client side. But that is still a way down the road. We have created the foundation for such functionality with the new AJAX enabled version of the Unified Renderer in the upcomming Enhancment Package 1 for NetWeaver 7.x.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.