Solved

Percent Sign upon user input - Numeric Fields

Posted on 2004-08-31
4
238 Views
Last Modified: 2013-12-18
Hi experts,
I have several editable numeric fields formatted as % in a form.
For user "ease" I am trying find a solution to enable a "%" to be appended to the number that the user inputs, to eliminate notes translation ie. 5 to 500%, and the user not having to put % after everything they enter.

Any Suggestions ??

Thanks
Craig.
0
Comment
Question by:cwtaylo
4 Comments
 
LVL 19

Expert Comment

by:madheeswar
ID: 11940869
U have answer in ur question.

Try using Input translation
@Text(Urfieldname)+"%"

or what ur looking exactly?
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 125 total points
ID: 11941567
It is not possible to append % and still keep the value of the field as numeric...What you can do is enable percent for the field... but in input translation divide the field value by 100.

eg:

numberfield/100

~Hemanth
0
 

Expert Comment

by:robb3369
ID: 11942357
If the percentage value is always less than or equal to 100%, then try adding this in the field translation:

@If(@ThisValue>1;@ThisValue/100;@ThisValue)


Rob
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 11943277
I would add a separate computed notation right next to the main field, in a different font, that shows the value entered as a per cent value, inlucding the % symbol.  That way, there are no issues of input validation, number conversion, applying the % reduction more than once (20 -> .2 -> .002), etc.  User enters 15, an right next to it you have the text "%", and right next to that, you have a parenthetical (0.15).
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now