on 06-11-2015 11:44 AM
Hi Friends ,
I need to hide the decimal field when the value is 0.00 .I have seen many links ,but nothing works for me .
Thanks and Regards,
Subeesh Kannottil
1. Which scripting language are you using? FormCalc or JS?
2. Either way, you will need to decide which "event" will trigger this to hide (maybe when the form loads or you do something to some other field)
3. In your "event" section script, reference your "decimal field" and check it's value. For instance in Javascript, this would be something like:
if (xfa.resolveNode("MyDecimelField1[0]").rawValue == 0.00; {
//hide your field
}
4. Set the "presense" attribute accordingly.
(your object path).presence = "visible"; or (your object path).presence = "hidden";
Here is a good example for you...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christopher ,
I have done the changes .I declared the field in character and passed the quantity to that field .
and used bapi BAPI_CURRENCY_CONV_TO_EXTERNAL for formatting the quantity in commas
(10,000.00 instead of 10000.00) and hided the field using the script
if(this.rawValue == null)
{
this.presence = "hidden";
}
I appreciate the help .
Regards,
Subeesh Kannottil
User | Count |
---|---|
95 | |
13 | |
13 | |
11 | |
10 | |
7 | |
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.