cashshurley Posted February 3, 2011 Share Posted February 3, 2011 I have a field in a database of type integer, I want the user to input a variable (say .05), then I want the next column to multiply the input number by the variable. How do I do this?? ThanksCash Link to comment Share on other sites More sharing options...
notrolls Posted February 3, 2011 Share Posted February 3, 2011 the one that you want to do is: create a field then set this as prompt so the user may input his/her variable everytimethen use this formula: set the two to double not integer in case of deciaml. then set to display 2 decimal places. new Double($F{field1}).doubleValue * new Double($F{field2}).doubleValue - this is your varialbe then formulathen set the variable calculation to nothing. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now