Is it possible you to edit a calculated field?

Is there a way to make a calculated field editable, overriding the calculation? My form table calculates HST on pay amounts. But not everyone charges HST so I'd like the user to be able to put $0 in the field manually. I can create an HST option box for each row but...that's a lot of "contriving" and not a practical solution ( I don't think). Is there an easier way to do this?
Thanks.

The HST is variable because the form is used in all provinces.
In order to make it a no-brainer for the user, I have incorporated a check box on each row. If the check box is checked (value=1) then the HST calculation happens, otherwise the value=0. So this makes sense but doesn't work. I have adjusted the calculation order, doesn't make a difference.
Note: I've never used java but I used to work with Access databases so I do have an understanding of the language/logic, hopefully enough to help me learn this quickly.
Here is what I tried. HST option is the value of the checked Check box, which is "1". This code is returning the else value fine but otherwise isn't working and doesn't change when I toggle the Check box. Can you help me adjust this.
var h = this.getField("HSToption");
var f = this.getField("TOTALbeforeHST");
var g = this.getField("HSTPercentageValue");
if(h == 1){
event.value = f.value * g.value;
}else{
event.value = "0";

Similar Messages

  • Is it possible to edit a calculated field?

    Is there a way to make a calculated field editable, overriding the calculation? My form table calculates HST on pay amounts. But not everyone charges HST so I'd like the user to be able to put $0 in the field manually. I can create an HST option box for each row but...that's a lot of "contriving" and not a practical solution ( I don't think). Is there an easier way to do this?
    Thanks.

    The HST is variable because the form is used in all provinces.
    In order to make it a no-brainer for the user, I have incorporated a check box on each row. If the check box is checked (value=1) then the HST calculation happens, otherwise the value=0. So this makes sense but doesn't work. I have adjusted the calculation order, doesn't make a difference.
    Note: I've never used java but I used to work with Access databases so I do have an understanding of the language/logic, hopefully enough to help me learn this quickly.
    Here is what I tried. HST option is the value of the checked Check box, which is "1". This code is returning the else value fine but otherwise isn't working and doesn't change when I toggle the Check box. Can you help me adjust this.
    var h = this.getField("HSToption");
    var f = this.getField("TOTALbeforeHST");
    var g = this.getField("HSTPercentageValue");
    if(h == 1){
    event.value = f.value * g.value;
    }else{
    event.value = "0";

  • New Calculated field question. Complicated I think.

    I have managed to create this table from a MySQL database: http://ppbm5.com/DB-PPBM5.php
    The field 'Total' is a calculated field using this SQL query:
    $query_Recordset1  = 'SELECT *, `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE  Off`) As Total, `CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1  ORDER BY (`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`)),  `Date & Time` ASC';
    So far, so good, but as you may have  noticed, there is a next field called 'Rel. Perf.' which only contains  blanks. And that is where my problems start.
    The table is sorted by 'Total' and the first record shows these figures and field names that are relevant for my question:
    Fields: 'Total'  'Disk I/O'  'MPEG2-DVD'   'H.264-BR'   'MPE On'   'MPE Off'
    Values:  131,        67,              21,                  37,              6,              64
    In addition, I use four 'weight' figures, let's say these are 0.27 , 0.30 ,  0.20 and 0.23 denoted as W1, W2, W3, W4.
    First step is to calculate four temp values, using a formula like this resulting in T1, T2, T3 and T4:
    T1 = W1 x  Total /Disk I/O; T2 =  W2 x Total/MPEG2-DVD ; T3 = W3 x Total/H.264-BR ; T4 = W4 x Total/(IFNULL(MPE On, MPE Off)
    Note that this only applies to the top record and here the SUM(T1, T2, T3, T4) results in 131, equal to the Total.
    The result of 100 x SUM(T1, T2, T3, T4)/ Total = 100 should be the 'Rel.Perf.' result for the top record.
    Now  is gets difficult. Let me call the records R1, R2, R3, ..., Rx. Now, in  the previous step we have established that the figure 100 should into  R1.
    For R2 the result of the 'Rel.Perf.' is 100 x SUM(T1 x Disk  I/O(2), T2 x MPEG2-DVD(2), T3 x (H.264-BR(2), T4 x (IFNULL(MPE on, MPE  Off)))/ Total(2)
    For R3 the result of the 'Rel.Perf.' is 100 x  SUM(T1 x Disk I/O(3), T2 x MPEG2-DVD(3), T3 x (H.264-BR(3), T4 x  (IFNULL(MPE on, MPE Off)))/ Total(3)
    etcetera for all the rest of the records in the table.
    A  complicating factor is that the reference point of the top machine  should remain fixed at 100, but when doing queries, the top machine may  not be in the query results, but all the query results for the Rel.Perf.  should be derived from these scores. Life would be infinitely easier if  one would be certain that the top machine is fixed, but that is not the  case.
    Sorry to make this such a long and complicated post, but  for those who have struggled through this long message, if you have any  suggestions on how to make this work, I would appreciate it.
    Thanks in advance.
    Harm, while non is intended.
    PS. I have been trying to generate a SQL query, using the following code:
    $query_Recordset1 = 'SELECT *, FORMAT(`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`),0) As Total, FORMAT((54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`))/129,1) As RPI,`CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1 ORDER BY 54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`), `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`) ASC';
    For static work it is OK, but not when a new top performer submits his data.

    Hi William,
    Per my understanding that you want to count the number of the value in the field wait which is smaller then 15, right?
    I have tested on my local environment and that you can add the calculated field (Count) using the expression as below:
    =IIF(Fields!wait.Value<15,1,0)
    Insert an outside group row and then get the total count by using below expression:
    =SUM(Fields!Count.Value)
    Preview you will get the result like below:
    If your problem stil exists, please try to provide some sample data and the exprect count result you want.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Editing a calculated expression.

    Hi All,
    I have requirement of editing a calculated expression, is it possible to do so in MDM?
    If possible please let me know.
    Regards,
    Pramod

    Hi Pramos,
    My requirement is I want some fields to be dafulted with values when i am creating or importing a
    record & i should be able to change atleast one time if required.
    In my View, you can use the Assignments for this requirement. You will have to include the assigment in a workflow and then run the workflow for the import of records. SO as soon as the records are imported, the default value for the field for which you have written the assigment will be achieved.
    You can't use Calculated Expressions for this requirement, as you will not be able to change its value later on.But with Assignemnt, you will be able to make changes to the defualted value
    While Importing, you can then defualt some fields with some values.
    Just use this field property: For that field, You can make the field property as Writable Once as" YES"/"NO".in console.
    This property will allow you to make changes to that field if it is NO and will not allow you to make changes if its YES.
    So if you want to use it, put Writeable Once as "NO" for that field.
    Hope it helps.
    Thanks and Regards
    Nitin Jain
    Edited by: Nitin Jain on Aug 5, 2008 6:46 AM

  • Is it possible to have editable text field in interactive report?

    Is it possible to have editable text field in interactive report?
    Thanks,
    Dip

    Hi,
    I followed your suggestion and defined an IR with apex_item.text columns and it works fine. Now however I face a new problem when I run the page and use the standard Search Bar:
    - Click on Actions/Filter
    - Select a column, for example the employee name.
    - Open the Expression field LOV: I correctly see the different names.
    - When I select one of the names, in the Expression field, instead of the name, I see:
    "<input type="text" name="f03" size="20" maxlength="2000" value="Eugene" />"
    Horrible!!!!!!
    Is there a way to see the name and not that expression? The same thing get downloaded, so it´s really annoying.
    Thank you very much in advance for your help!!!
    Regards
    Francesco

  • Is it possible to have a live calculator in my keynote presentation so that I don't have to exit it while I am presenting?

    Is it possible to have a live calculator in my keynote presentation so that I don't have to exit it while I am presenting?

    This is not possible.
    If you open both Keynote and Calculator, you can use the application switcher (command Tab) to swap back and forward between the two applications.

  • Variable bitrate streaming possible with streaming edition?

    Is bandwidth detection and bitrate adjustment possible with
    Flash Media Streaming Server 3? I know the streaming edition
    doesn't support custom application deployment, so does this mean
    flexible bitrate streaming is not possible?

    you may refer to a good article by David Hassoun on Dynamic
    streaming :
    http://www.adobe.com/devnet/flashmediaserver/articles/dynamic_stream_switching.html
    server-client bandwidth detection is possible with streaming
    edition. The sample code of live/main.asc & void/main.asc uses
    checkbandwidth() to invoke b/w detection.

  • Did you know you can Edit Buttons??

    OK, who knew that you can EDIT the buttons on the bottom of the screen in You Tube and Music? Can rearrange or replace with different buttons. Is this New News, or was everyone aware of this already and I'm late for the party?
    Gunny

    Yeah I was in the reading room and read the button editing topic and didn't remember anyone talking about it, so I figured I'd see where everyone is at on it. But it looks from what your saying that it is a pretty well known item. Thx!
    Gunny

  • On an iPad with iTunes, do you know if you can edit/delete all your tunes on your device with a "clear all" button rather than having to delete a song one by one like you have to do on an iPhone if not synching via a MacBook/ PC with iTunes account?

      I'm signed up to the Cloud and itunes match - the whole game. But I cam getting annoyed with having to delete songs one by one on my iPhone once dowloaded from the cloud as I only have a 16GB phone....yes I listen to music non-stop!  So, I am thinking about getting an iPAD as I rarely use my MacBook Pro for anything other than surfing and music now...  so the question is:  "On an iPad with iTunes, do you know if you can edit/delete all your tunes on your device with a "clear all" button rather than having to delete a song one by one like you have to do on an iPhone (if not synching via a MacBook/ PC with iTunes account where I know you can clear down and refill with ease)????

    Have you tried
    Settings > General > Usage > Music > Edit > Delete

  • Is there an app where you can edit a PDF on the ipad?

    Is there an app where you can edit a PDF that was scanned/ emailed to you on your ipad? Like the way you can in Preview?

    Sorry here's the link for GoodReader.
    http://itunes.apple.com/us/app/goodreader-for-ipad/id363448914?mt=8
    Here's link for nue.Annotate PDF
    http://itunes.apple.com/us/app/neu.annotate-pdf/id407107609?mt=8

  • How do you make editable entries in an Interactive Report?

    I have seen a feature in other Apex applications that I can't reproduce. There is an interactive report in which each row has an Edit icon (pen and pad) and clicking on it leads to a form page which displays the info, so you can edit it.
    I haven't been able to build an IR that will show this icon. How can I do this?
    Steve "the n00b" in Raleigh NC

    Steve,
    This link should show you the way.. Edit Link on Interactive Report
    Also, could you change your profile name to smeothing more human? We know you are steve, maybe you could change it to the signature you use on your messages?
    Thank you,
    Tony Miller
    Webster, TX

  • How do I show the bookmarks toolbar while in fullscreen on Firefox 20? In older versions you could edit the userChrome.css file. Does that still exist?

    After searching for this option, it appears it was very easy to do in older versions of firefox on windows 7. Many posts say you can edit the userChrome.css file to add:
    #PersonalToolbar[moz-collapsed="true"] {
    visibility: visible !important;
    However, on 2 machines with firefox 20, I've searched for that file and cannot find it. Does it even exist any more? if not, how can I set firefox to go to fullscreen mode and continue to show the bookmarks toolbar? Unchecking hide toolbars does not work for the bookmarks toolbar.

    userChrome.css does not exist by default. You can create it; it's an ordinary text file. Note that you do need a namespace at the beginning of the file.
    You could try this:
    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    #PersonalToolbar[moz-collapsed="true"]{
    visibility: visible !important;
    #navigator-toolbox[inFullscreen="true"]{
    margin-top:-62px !important;
    I added the second rule to prevents the toolbar area from rolling all the way up. The specific value may need to be adjusted by a few pixels depending on your toolbar heights.

  • How do I get the line above the tasks, which allows you to edit the cell contents, without double clicking the cell?

    As title says.
    Normally in Gantt Chart View, above the tasks there's a line which displays the contents of the cell you have selected, and allows you to edit the contents without having to double click the cell.
    In my case, this line is not there, and it is slightly hindering my work.
    So, does anyone know where I should go to re-enable this line?
    Thanks a lot!

    Hi,
    Go to file, then options, then display and check the "entry bar" option.
    http://www.manageprojectsonsharepoint.com/blog/2012/04/02/microsoft-project-quick-tip-entry-bar/
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Does Lion allow you to edit the Address Book chat list yet so you can add Skype or Gmail? Real pain not having these

    Does Lion allow you to edit the Address Book chat list yet so you can add Skype or Gmail?
    Real pain not having these
    Thanks
    Carl

    Does Lion allow you to edit the Address Book chat list yet so you can add Skype or Gmail?
    Real pain not having these
    Thanks
    Carl

  • In FF (30.0) Password Manager, when you open Edit, what are all the fields and how do you fill them in?

    When you open Edit, there are two choices: Web form and annotated.
    What is the difference?
    Then, there are fields for Host, Submit Prefix, Username, Password, etc.
    How do you fill in these fields?
    When you click to have the manager "Guess from Current Page," all fields don't necessarily get filled in, so is it just for username and password?
    I use the edit feature constantly, so it's a little odd not to see more detailed instructions here.
    When I click on Tools, the Saved Password Dialog is on the list, so it's on my toolbar all the time.
    I use it constantly.
    What is the latest in password security? I know there are competing ideas. What does Mozilla think?
    Thank you.

    Hmm, could this be a feature of your extension, "Saved Password Editor"? The support article ([[Password manager - Remember, delete and change saved passwords in Firefox]]) doesn't show those changes when I switch the version from 29 to 30 in the left column.

Maybe you are looking for

  • Can't see external drive for movie import

    Hi gang, I have all of my iMovie projects on an external hard drive plugged directly by Firewire 2 into my MacPro.  When I run iMovie 9.09, I get a beautiful sorted list of all of my projects by year.  When I run iMovie 10.0.5., I can't even see the

  • ITunes wont finish syncing my iPhone and iPad.

    My system: Mavericks: 10.9.4 iTunes: 11.3.1 iOS: 7.1.2 iPhone 4S iPad Air Today I have encountered an issue with my iPhone and iPad when syncing with iTunes.  I connect my devices to iTunes and have the option selected to not allow the devices to syn

  • Warranty questio

    Can anybody tell me this? I bought my zen nx 2 years ago. I know that the warranty ends after a year, but is there a parts warranty or something like this that is more than a year. Because the headphone socket is faulty and has been for a couple of m

  • [locked] how to handle Machii_config_mode

    Hi experts... can u pls help its very urgent.... can u pls tell me how to work with MACHII_CONFIG_MODE

  • Strange network standstill SG-300

    hi all we have a production network that uses five SG300 switches that functions brilliantly most of the time. four of our switches run in layer 2 mode and the last switch runs in layer 3 as it is used to route our 7 vlans as well as routing traffic