Event.value = Math.round (a.value * 5.00) / 100; Replace this with an input field for user to change

I have a taxe calcul script in a field with a annulation check box like this:
if (this.getField("CheckBoxHST").value=="Off") {
// no tax
event.value = 0;
} else {
// calculate the amount of tax to be paid
var a = this.getField("pricehorstx");
event.value = Math.round (a.value * 5.00) / 100;
I like to able the user to change the percentage —>  (a.value * 5.00) with a simple text field — Say they enter 6% or any other percentage in there and the calcul become (a.value * 6.00) / 100;
Not to sure how to acheive that....

Work perfectly thanks...
I feel so bad, everything work perfect, almost   — 
— I just want when I check off (checkbox) the tax calculation to put whatever is in the tax percentage input box to zero and I can’t

Similar Messages

  • How to pass value from new pop up window to the input field

    Hi,
    i have a F4 help on a input type field and adjacent to that two more input fields, on clicking the help on the first input field a new pop up window opens, the value in this pop up window is to be selected to give the value in that field and the other two values should be appeared in the input type. suppose the pop up window has three fields "15   LIMA  PLANT   45802 ", so on clicking it in input field only 15 should go to the firstinput fields and "LIMA PLANT" and "45802" should go to new window
    do anyone know this?

    avoid duplicate threads
    F4 help in dropdownlistbox and values in input fields
    if you feel that the thread heading or content is not what you wanted, you can edit it and leave a note in the same thread that you have edited it.
    Raja

  • Having trouble with if else when used with event.value... please help

    Please can someone shed any light on where i'm going wrong.
    I have a pdf form that uses a drop down menu for the SubBrand and a series of checkboxes for the Location.
    the following code is placed as a custom calculation script in an address text field and what im after is dynamically setting the address based on the subbrand and location.
    However whats happening is the address only changes based on the location and not the subbrand.
    Does anyone please have any advice on this.
    Thanks
    if 
    ((this.getField("SubBrand").value == "Passion" || "Passion for Men") && (this.getField("Location").value == "WW")) {
    event.value = "Not Applicable";
    else if ((this.getField("SubBrand").value == "Passion" || "Passion for Men") && (this.getField("Location").value == "US")) {
    event.value = "US02";
    else if ((this.getField("SubBrand").value == "Passion" || "Passion for Men") && (this.getField("Location").value == "WH")) {
    event.value = "WH02";
    else if ((this.getField("SubBrand").value == "Adventure" || "Liquid" || "Silver") && (this.getField("Location").value == "WW")) {
    event.value = "WW01";
    else if ((this.getField("SubBrand").value == "Adventure" || "Liquid" || "Silver") && (this.getField("Location").value == "US")) {
    event.value = "US01";
    else if ((this.getField("SubBrand").value == "Adventure" || "Liquid" || "Silver") && (this.getField("Location").value == "WH")) {
    event.value = "WH01";
    else
    event.value = "";

    Thanks for the tip GIlad I've amended my code but am still experiencing the issue, im at a loss as to what is preventing the address field from changing when the subbrand changes.
    Can you suggest anything else that may be preventing this from happening?
    Updated Code:
    var subBrand = this.getField("SubBrand").value
    var location = this.getField("Location").value
    if      ((subBrand == "Passion" || "Passion for Men") && (location == "WW")) {
            event.value = "Not Applicable";
    else if ((subBrand == "Passion" || "Passion for Men") && (location == "US")) {
            event.value = "US02";
    else if ((subBrand == "Passion" || "Passion for Men") && (location == "WH")) {
            event.value = "WH02";
    else if ((subBrand == "Adventure" || "Liquid" || "Silver") && (location == "WW")) {
            event.value = "WW01";
    else if ((subBrand == "Adventure" || "Liquid" || "Silver") && (location == "US")) {
            event.value = "US01";
    else if ((subBrand == "Adventure" || "Liquid" || "Silver") && (location == "WH")) {
            event.value = "WH01";
    else    event.value = "";

  • Not Refresh Value After Add New Record used with RPC Component

    This is my code in the class Users.as
    package inthanous
    import mx.controls.Alert;
    import mx.rpc.http.HTTPService;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    public class Users
    private var service:HTTPService;
    [Bindable]
    public var xmllist_user:XMLList;
    public function Users(){
    service = new HTTPService();
    service.method = "POST";
    service.useProxy = false
    service.resultFormat = "e4x";
    public function listUser():void{
    service.url = "/user/get_all_user_group_name";
    service.addEventListener("result", httpResultListUser);
    service.addEventListener("fault", httpFaultListUser);
    xmllist_user = new XMLList();
    service.send();
    private function httpResultListUser(event:ResultEvent):void{
    service.removeEventListener("result", httpResultListUser);
    service.removeEventListener("fault", httpFaultListUser);
    xmllist_user = new XMLList(service.lastResult.children());
    listAllUser();
    private function httpFaultListUser(event:FaultEvent):void{
    var faulstring:String = event.fault.message;
    service.removeEventListener("result", httpResultListUser);
    service.removeEventListener("fault", httpFaultListUser);
    Alert.show(faulstring,"Error");
    public function createUser(_xml:XML):void{
    service.url = "/user/create_user";
    service.addEventListener("result", httpResultCreateUser);
    service.addEventListener("fault", httpFaultCreateUser);
    service.send({firstName: _xml.firstName,
    lastName: _xml.lastName,
    gender: _xml.gender,
    login: _xml.login,
    pwd: _xml.pwd,
    dtBirth: _xml.dtBirth,
    telephone: _xml.telephone,
    idGroup: _xml.idGroup
    private function
    httpResultCreateUser(event:ResultEvent):void{
    service.removeEventListener("result", httpResultCreateUser);
    service.removeEventListener("fault", httpFaultCreateUser);
    listUser();
    clearUserDetail();
    private function httpFaultCreateUser(event:FaultEvent):void{
    var faulstring:String = event.fault.message;
    service.removeEventListener("result", httpResultCreateUser);
    service.removeEventListener("fault", httpFaultCreateUser);
    Alert.show(faulstring,"Error");
    This code i used with Ruby on Rail to connect with MySQL.
    When i used with FireFox browse after i create new user
    success it refresh the new record in Datagrid. But for the Internet
    Explorer Datagrid not refresh it because of it display the old
    recode before create.
    So i don't know it problem by Internet Explorer or my script.
    i hope someone can help me the solve this problem.
    thanks

    If you restrict the selection, a record value outside of that selection is not acceptable and will give you this error. This is how BPS works.
    You need to restrict on some other char so BASIC1 doesn't come in, but this value should be part of any selection on ZSEGMENT field for it to be accepted back.

  • How to get Input field value?

    Hi All,
    I have some problem in getting of input value from View to customcontroller.
    My problem is I have created a Input field in the view and if Iam giving the value to that field I can capture the value from View to customcontroller and send it as BAPI input.But My input filed is in the view Context.
    How can i capture InputFiled value from View to CustomController.
    Advance thanks
    Nageswara.
    Message was edited by: nageswar mandapati

    Thanks for your response Patrick,
    In my customcontrollerView all my BAPI mathods instances and execute methods are declared.All the attributes directly getting from model class.
    But I have two views , in first view I created a input field(for that i created valueAttribute in that context).
    Here I want give the conditions If  the input field is empty then directly call the execute method of BAPI.
    Otherwise give any input to the inputfiled then capture that value and send it input to BAPI from view to BAPI.
    In my customcontroller
    BAPI b = new BAPI();
    b.Param1();
    b.param2();
    and
    execute BAPI()
    I done like this.
    How can i capture the view input value how to send as a b.parama();
    Please guide me .
    Any snippests appriciate.
    Thanks
    nageswara.

  • Release PO against contract whit limit value for USER

    Dear colleague,
    We work SRM server 5.5 . SP14 extended classic scenario, and we use contract management.
    We need to release PO against contract and we want to LIMIT the users that PO value have  to be between 60 USD as minimum order value and 120 USD as maximum order value.
    We know that solution for the minimum order value is to use the u2018minimum order valueu2019 in the contract item with the value 60.
    Can someone help with the solution to limit user to maximum order value against contract.
    Thanks
    B.R.
    Gil shinar

    One option is that you could implement the maximum value logic in BADI BBP_DOC_CHECK_BADI and give out proper error message if the user enters value outside of the range.

  • How to set default value to input field

    Hi Experts,
    I need to set default value to one input field for the transaction crmd_order as a screen variant. Guide me in doing that.
    Regards,
    Harish

    Using the transaction SHD0, you can define the screen variant. While defining the sceen variant, you are allowed to define the default values.
    Using screen variant, for the main transactoin, you can also define the transaction variant and you can use this as an independent transaction.

  • Default Value in Numeric Input Field in Visual Composer Application

    Hi All,
    I have developed a visual composer application which has a numeric input field for Hours.
    It is mapped to a backend module.
    We are using portal 7.31
    The problem is that the deafult value of this input field is "0", but the rquirement is to display as "0.0"
    The functionality has been tested with input values in decimals and works fine. The problem is when the screen first populates, that field should show "0.0" .
    Please advise.
    Thanks

    Hi Soumya Chanda,
    I don't know of an agreeable way around it. You could have a textual input, but then it doesn't have the numeric control behavior, plus you need to handle incorrect typing (alphanumeric notes).
    Sorry!

  • User can not enter value in INPUT field.

    hi experts,
    i have a table control on the screen which have one input field which user needs to fill. But as per he business req. we don't want him to enter any value, values should be enter from the search help only.
    If i make input field Read only it comes in gray color and user get confused. tell me some way so i can create white input field in which user can not enter values from key board.
    Please suggest...
    points will be awarded...

    >
    ashish gupta wrote:
    > hi experts,
    >
    > i have a table control on the screen which have one input field which user needs to fill. But as per he business req. we don't want him to enter any value, values should be enter from the search help only.
    >
    >
    > If i make input field Read only it comes in gray color and user get confused. tell me some way so i can create white input field in which user can not enter values from key board.
    >
    >
    > Please suggest...
    >
    > points will be awarded...
    This you cannot control. because if it is enabled only in that case you can see it white.
    do that thing as suggested by basakar to add a new input field just besides first one with zero padding.
    One workaround is use an image instead of real input field. the image should have the input field as image.
    and besides it create the input field with width 0 and padding also zero.
    i think this can fulfill the requirement.
    Thanks
    sarbjeet singh

  • Enter-Event on an "Input Field"

    Hello Community...
    i would like to trigger an event on an Input-Field in my Form. When I enter a value and press "Enter" the value should be given via an output signal to another iView. What kind of event do I have to choose to achieve that? I chose a Custom Action, but the value was passed to the output signal when I left the field.
    Greetz, Jochen

    Hi Jochen,
    As per your requirement:
    " When I enter a value and press "Enter" the value should be given via an output signal to another iView"
    press Enter means u want to have a button in the form along with the input field. Am I correct?
    If so then why to give action in the input field.
    "I chose a Custom Action, but the value was passed to the output signal when I left the field"
    Beacuse If you will give the event in input field then when you will fill the value in the input field that action will be triggered.
    Better to give the action in the button if you want to press and then event has to be triggered.
    Go to the Button property--give system action--as submit.
    Then to pass data between the iviews you must have used signal out and signal in.
    Regards,
    Nutan

  • HTMLB .. Input field event handling..

    Hi guys,
    I have a input field htmlb in my jsp. I have to handle on blur event for this.. i.e if a user gives in somethin in the input field and once it looses focus, a event should get triggered. And probably in my case it will be helpful for me if I have this event handler method in the dynpage. For this kind of event handling what should I write in the followin tag
    <htmlb:inputfield id="" value="" width=""> plz tell me a tag attribute which supports this event.
    Regards,
    PP.

    Hi Priyanka,
                      You can get reference of your input field in JSP into DynPage. Do like this:
    Declare input field in JSP
    <hbj:inputfield id="input"  value="test">
    In DynPage, get refernce of the input field
    Wherever you want to trigger event
    InputField myInputField =(InputField) getComponentByName("input");
    myInputField.setClientEvent();
    Hope this helps.
    regards,
    Siva
    Note: If you get success, please post the solution before you close this thread.
    Message was edited by:
            Siva Rama Krushna

  • Automatic Event Fire on every entry in Input Field

    Dear All,
    Here i have a scenerio, I am using barcode reader application. After reading the barcode from barcode machine, , numeric value eg  '1234567890' is automatically displaying in my input field. After that I have to call my RFC according to every entry in that field.
    Mean to say as the value comes to the input field , automatically my next view should be called where i am displaying the detail of particular employee having I card of that barcode.
    So is there any possibility in Webdynpro Java to fire an event automatically on every entry?
    Kindly help me out.
    Thanks & Regards
    Nivedita

    Dear Monalisa,
    Thanks for your quick response (SDN was down so i could not reply back). But as i explained earlier, my application is not for mobile barcode reader. Its for normal Id card Barcodes. Mobile Barcode Reader requires 2 types of barcode reader equipments and link given by you is explaining that proccess only.
    Here I am able to read the data from barcode Reader. But after reading data i need to generate any automatic event. I dont want to use any submit button or Enter key action. I want that as the value comes to my input field ,automatically it should go to database. webynpro does not support Javascript as per my knowledge.
    Kindly suggest something.
    Thanks & Regards
    Nivedita

  • "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?

    I don't know what's wrong with my Mac Mozilla Firefox, version 3.6.8, but today, it started alerting me about an error message on the "Error Console". In every website I visit, it tells me: "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?
    I saw a pop-up which did not allow me to click it when I scatter the windows on my Mac. I was using Private Browsing, with pop-ups disabled, but one pop-up managed to get passed my settings, and open in another window. It would not allow me to select it, so all I did was to close Firefox, and start a new session. So far, everything has been normal, I also deleted the cookies it installed.
    But, I still keep seeing that "Error Console" notice under my "Tools" on the Menu Bar, and when I clicked on it, it listed errors (such as what I listed above).
    Would someone explain this to me?
    Thanks for your help!

    The messages you see in the Error Console are mostly to assist the web site's author in resolving compatibility problems. Some of them can assist you in determining why a web site doesn't work as intended. The one you mentioned doesn't sound that suspicious, except that it occurs on many sites. Perhaps one of your add-ons is trying to monitor what you type?
    To diagnose whether this is caused by an add-on or one of your settings, you could try the following:
    First, make a backup of your computer for safekeeping. To back up Firefox, see [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does that resolve the errors? If so, then an add-on usually is the culprit. If not, try creating a new (blank) profile: [http://support.mozilla.com/kb/Managing+profiles Managing profiles].
    If the new profile works correctly, you can choose between further research on your old profile or moving key settings like bookmarks from your old profile to the new one. [https://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile Recovering important data from an old profile].
    Hope this helps.

  • Event for value change of an input field

    Hello,
    I'm a newbie in WD4A.
    I've got a input field. Is there a event that's fired, if the value of an input field is changed?
    Regards Christian

    No.  There is only an event when the user presses enter.  You can check the online help for all events of all UI elements.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d7/ef8841e3af1609e10000000a155106/frameset.htm
    In 7.02 there is an AJAX based change event on the inputField, but it is not available as a normal WD Event. It instead triggers the attached SearchHelp without the WD Phase Model.  This is the new SuggestValues feature in 7.02.

  • Event.Value population delay

    I have some forms that require barcodes for scanning purposes.  In order to generate these barcodes, I create a text field using a 3of9 font, set it as read only, and script the value as:
         event.value="*"+this.getField("FIELDNAME").value+"*";
    This normally goes off without a hitch, but i'm having an issue with passing that value from FIELDNAME when FIELDNAME is a scripted value.  For example, in one situation, FIELDNAME is a locked text field with a scripted value of:
         var A = this.getField("PART1").value;
         var B = this.getField("PART2").value;
         var C = this.getField("PART3").value;
         var strPart1 = String(A);
         var strPart2 = String(B);
         var strPart3 = A<2?"0"+String(C):String(C);
         var fullname =  (strPart1 + strPart2 + strPart3);
         event.value = fullname;
    This is being done because "PART1" is a data-mapped field of 7 digits, "PART2" is a data-mapped field of 2 digits, and "PART3" is a data-mapped field of 2 digits that often starts with a leading 0.  They have to be concatenated for the barcode to be proper, but there is no data map for a fully concatenated value.  The FIELDNAME field populates fine, but the barcode only outputs "**".  As soon as any other field in the form is manually filled, the barcode changes to the appropriate "*FIELDNAME*".
    I have no validation triggers set anywhere in the form, but this seems to be an event validation gone awry.
    Any ideas?
    Thanks in advance,
    A.

    I tried to use the appropriate valueAsString property, but was having problems getting it to work properly.  However, setting that calculation order got it all worked out.  A thousand thanks, sahib.  May your camels always have healthy calves.
    -A.
    --Edit, found the problem with the valueAsString property I was having (leftover junk from declaring a var as an int).  You're correct, that's a much more efficient way to handle the same issue.  For any interested parties, here's how it turned out:
         var A = this.getField("FIELD1").valueAsString
         var B = this.getField("FIELD2").valueAsString;
         var C = this.getField("FIELD3").valueAsString;
         var fieldname =  (A+B+C);
         event.value = fieldname;

Maybe you are looking for

  • Cal plsql pkg from Java concurrent program

    Hi, I try to execute one plsql pkg inside a java concurrent pgm.plsql code executed from view output i got the out put.Bt my status Shows ERROR. this is my code try{ System.out.println("transation type inside try block "+deptno); CallableStatement cs

  • Order BY String, not ordering correct alphabetical

    Hey, I have the following query. SELECT TBLREQUESTTYPES.ID, TYPE_NAME, SCHEDULED, CASE WHEN SCHEDULED = 1 THEN 'No' ELSE 'Yes' END AS SCHEDULEDTEXT, DAYS, CASE WHEN SCHEDULED = 1 THEN DAYS ELSE NULL END AS NUMDAYS, CASE WHEN SCHEDULED = 1 THEN 'Unsch

  • Help with flash

    Here's the link: http://www.oldshoecreative.com/KnexGen/convergence_alignment.htm I've placed a flash animation on this page put it won't play. It plays when I test it on my local machine. Help me please.

  • AMC technology software cti integration with CCM

       Hi,    Would like to know the following,    1) Have an agent when call local calls and mobile numbers from a Cisco ip phone, able to get through but if uses the AMC technology software unable to get through the numbers    2) Have another agent whe

  • Endpoint Protection Antimalware Policy SQL 2008

    We use SCCM 2012 to manage our antimalware solution (SCEP). We created policies for different servers for example SQL server 2008 R2. We created Endpoint Protection Antimalware policy SQL 2008: To prevent performance issues MS reccomends to exclude s