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";

Similar Messages

  • 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";

  • Is it possible to make a calculated field only appear when the result is greater than 0?

    I am using Adobe Acrobat X Standard.  I have created a form that has caculated fields.  However, the fields always show the "$0.00" when it doesnt have anything to calculate.  I would only like a result to appear in this field when the result is greater than 0.  Is this possible?

    The use of currency and percentage signs always behave this way since the display format is a character string and not a plain number.
    You will have to use some custom JavaScript in the Custom JS calculation, the custom format format, or the validation script.
    There is not a lot of documentation for this, but Acrobat JavaScripting Guide Version 6 has some infromation about usin the AFNumber_Format built-in function.
    If your users are using version 8 or below, you will need to adjust the format of the field.

  • Answers - would like to use calculated field's name, not expression

    Hi Everyone,
    I'am trying to make several calculated fields in a single query in Answers. Each field references the previous one, and the expression of the first one is already 5 rows long.
    Now I reference it in the second calculated field by using "Edit Formula" -> "Column" -> 'Colum name'.
    My problem is, that it puts the expression of the previous field, not it's name. I have to use it for almost 10 times in this single expression, so -although it works fine- it is totally unreadable, and very hard to debug for example.
    And after all, I should use this field again, in several next calculated fields.
    Does anyobody have an idea, how to make calculated fields having only the name of referenced other fields in it?
    The repo is set for ad hoc reporting also, so using session variables which need to be set in Administrator Tool, is not an option.
    Thanks for help in advance.
    Tom
    Message was edited by:
    user608765

    Hi Venkat,
    thanks for the response. It would work, no doubt, in this special case, the problem is, that users use the repo for ad-hoc reporting aswell (and they don't have access to repo administration of course), so one can count on it, that there would be a new request of this kind every day to change the repo with customized user variables. I would like to avoid this of course.
    Having the name of a referenced field in a new expression would be a simple solution. Is it possible, that it can't be done?
    Tom

  • Calculated fields based on data in multiple rows

    Hi,
    I am using SOA Suite 11.1.1.4 for BAM.
    Can someone please help explain to me if and how we can use calculated fields in BAM data objects where the calculations are not only based on the data for that row, but on multiple rows ?
    Like for example, this case can easily be constructed -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = Column1 + Column2
    But if I want to create something like this -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = max(Column1) + avg(Column2)
    Is it possible to do the above ?
    Is it possible to check multiple rows of the other columns while calculating a value ?
    Thanks & Regards,
    Karan.
    Edited by: user8890668 on Mar 9, 2011 3:58 AM

    Hi, Karan.
    Do you know you can do that in reports with calculated fields?
    I guess it is not possible using calculating functions offered in data objects to do that.
    If you, or anybody, discover how do that, please tell us. I would like to know that.
    Luciano Gomes
    user8890668 wrote:
    Hi,
    I am using SOA Suite 11.1.1.4 for BAM.
    Can someone please help explain to me if and how we can use calculated fields in BAM data objects where the calculations are not only based on the data for that row, but on multiple rows ?
    Like for example, this case can easily be constructed -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = Column1 + Column2
    But if I want to create something like this -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = max(Column1) + avg(Column2)
    Is it possible to do the above ?
    Is it possible to check multiple rows of the other columns while calculating a value ?
    Thanks & Regards,
    Karan.
    Edited by: user8890668 on Mar 9, 2011 3:58 AM

  • 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

  • Remove 0 Value in Calculated Field

    I copied the below question for another post here as it asks the question perfectly.
    "I set up an invoice form to calculate totals from quantity x unit price. Every line has this formula, however the users may not have a priced item on every line of the form. My total column shows a $0.00 value until I input data. I'd rather have nothing show in that column unless quantity and price are entered. Is that possible?"
    However, and I apologize, but I don't understand the answer that was posted. This is the first time I've needed a calculated field -- and I've not done scripting in Acrobat before.
    Can someone walk me through the exact steps of how to enter and what to enter in the form to remove "0" values from the form?
    Thanks, in advance, for any and all help.

    Thanks, again, so much. I think I got it, the procedure that is! But, but the 0 is still there.
    This does now sound like a simple thing if you know the code. But apparently I'm not there yet!
    This is what I did.
    Under Advanced, Document Processing, JavaScript Functions.
    Entered two different scripts, as follows (this is exactly how I entered them):
    SCRIPT 1
    Name: ds_format
    Script:
    function ds_format()
    if (+event.value) {
    //$ format for nonzero values
    AFNumber_Format(2,0,0,0,"$",true);
    } else {
    //Don't show anything if result is zero event.value="";}
    SCRIPT 2
    Name: ds_keystroke
    Script:
    function ds_keystroke() {
    AFNumber_Keystroke(2, 0, 0, 0, "$", true);
    Then, under the calculated field properties (in my case, Total Cost),
    Format Tab, Custom Format, Custom Format Script section, I selected edit and typed in:
    ds_format();
    Ditto above, but under Custom Keystroke Script:
    ds_keystroke();

  • How to change the column value which is coming from DO by a calculated field?

    Hi all,
    I want to change a column value based on my calculated field value. I have a column which is coming from DO which is based on External Data Source. I have a calculated field in my report. When there is any change in the calculated field then the column which is coming from DO needs to be changed. It means the DO needs to get updated when there is a change in the calculated field. Or like if the calculated field meets some condition then I need to change/update the same in the DO. This has to be done on the fly. the report should not submitted for this. when there is a change in the calculated column the DO column needs to get updated.
    Thanks,
    Venky.

    Ok, I've been a customer for very many years, I'm on a fixed retirement
    income.  I need to reduce my bills, my contract ends in  Dec. I will be
    pursuing other options unless I can get some concessions from Verizon.  My
    future son-in-law was given this loyalty plan, so I know this is a
    reasonable request.  My phone number is (removed)  acct number
    (removed)
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • How can I merge 3 or more individual text fields into an editable summary text field?

    I am stuck and do not know where to begin. I am self taught in using Adobe LiveCycle and have found many answers here in the forums and via trial and error.
    I cannot find or create the correct java script or form calc to feed multiple text fields into one text field.  My supervisor is asking me to do this for two sections of a form I created using Adobe LiveCycle Designer ES 8.2.
    1)       Merge all 3 user entered text fields to an user editable summary text field at the end of the form.
    2)       Merge all 24 user entered text fields to an user editable summary text field at the end of the form.
    Since they are all individual text fields in response to various questions, I cannot use the global binding function. I do not want the summary text field to override the individual text fields.
    Here is the java scripting I placed on Show: calculate* Language: javascript Run: at client
    1) PDStrengthWeaknessComments.rawValue + "_" + OCStrengthWeaknessComments.rawValue + "_" + CEBAStrengthWeaknessComments.rawValue;
    Needless to say, these instructions are not working on my form. Would someone with a lot of experience or an IT degree kindly help me?

    I just tried adding the front end as you suggested and confirmed that the Object > Value is set to "calculated - user can override" for the summary text field.
    OverallAnalysisAppFeedback.rawValue = PDStrengthWeaknessComments.rawValue + "_" + OCStrengthWeaknessComments.rawValue + "_"  + CEBAStrengthWeaknessComments.rawValue;
    I was still unsuccessful.
    I opened the debugger and received the following information. I do not understand what AdobeLiveCycle is asking me to define.
    PDStrengthWeaknessComments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page20-OverallAnalysisAppFeedback[0]:AllOverallAnalysis[0 ]:calculate
    PDStrengthWeaknessComments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page20-OverallAnalysisAppFeedback[0]:AllOverallAnalysis[0 ]:calculate
    Budget1Comments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page21-OverallAnalysisAppFeedback-Budget[0]:AlBudgetQs[0] :calculate
    Budget1Comments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page21-OverallAnalysisAppFeedback-Budget[0]:AlBudgetQs[0] :calculate
    Do you have any additional tips or suggestions?

  • Is it possible to map the cmp fields of the entity bean with out dictionary

    Dear sirs,
    I have created the EJB project module and WEB Module. Now i have to map the CMP fields of the entity bean to the underlying table. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
    I have got some error while mapping an EJB's CMP fields to the table through dictionary. I was actually intended to map 79 fields but it gives an error that more than 64 fields are not allowed while building the dictionary.
    1. Can you tell me what could be the possible reason?
    2. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
    Kindly helo me,
    Sudheesh K S

    Hi,
    Sudheesh please check up if the below link helps,there are other ways of writing the persistent.xml for container managed entity bean.
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/f695f0c84acf46a4e0b31f69d8a9b7/frameset.htm, probably in the studio you cannot browse through tables not in  the java dictionary,but manually editing it may still solve the problem.
    Also here is another link that specifies the databases supported by J2EE Engine.
    http://help.sap.com/saphelp_nw04s/helpdata/en/66/a5283eeb47b40be10000000a114084/frameset.htm
    The below link shows how to specify the database vendor and datasource
    http://help.sap.com/saphelp_nw04s/helpdata/en/e1/67fc3ee241ba28e10000000a114084/frameset.htm
    Hope you are able to solve the problem.
    Do let us know if you come up with the solution.
    Regards,
    Harish
    Message was edited by: HARISH SUBRAMANIAN

  • Can we edit Gross Price field in Sales Order

    Hi experts,
    According Help document (help - under Sales A/R/Sales Order-Sales document content tab ) as follows, userwe should be able to edit gross price field in Sales order
    Enter in this field the unit price including tax. SAP Business One calculates automatically the unit price before tax and the tax amount, based on the tax code in the row. After pressing the TAB key, the Unit Price field and the Tax/Unit field are updated accordingly.
    The tax amount is calculated as follows:
    *Gross Price / (1 + Tax %) * Tax % = Tax Amount*
    But when I set up in form setting visible and active for Gross Price,  though I AM NOT ABLE TO EDIT GROSS PRICE FIELD
    Is it bug in SAP ? I
    BR
    Samir Gandhi

    Hi Samir Gandhi,
    You may check SAP Note Number: 1060666 to see if it applies to you.
    Thanks,
    Gordon

  • Can I create calculated fields using formscentral on a locally created, fillable PDF form?  If so, how?

    I am using Acrobat XI Pro to build a fillable PDF form that can be used by customer who have Adobe Reader installed.  I would like to create calculated fields, including the summation of two or more currency fields and the product of a currency and number field.  The procedure for creating these escapes me.  Does anyone have any insight?

    Hi Gilad,
    thankyou! - yes it seems though I was using the text tool when I had this problem: When I had created a few fields in the 'form edit' mode I then may later have added some normal 'comment' fields of text in the normal mode to highlight certain aspects on a form - I used the text tool thinking that was the right way in to add or edit text - I can now see I double click with the hand tool to still be able to access any text field I want to. Yay!
    Many thanks for your kind assistance - I shall try this method later on a new form I was trying to create and which was giving me grief.
    One last thing then: what is that default text field that can't be deleted actually for - why is it there? After all, a 'blank pdf' should surely be a truly blank pdf? Perhaps this is one for mighty Adobe....?
    Kind Regards,
    Pete

  • Is it possible to populate an information field with the expect docURL?

    Hi,
    Is it possible to populate an information field with a function that checks for the expected docURL at checkIn time?
    I need to pass the value of the docURL of the checked in content item to a bpel process.
    Thanks.

    Thanks for the suggestion.
    To test:
    1. I created an information field called 'docURL'.
    2. Added a rule called 'docDisplayURL'.
    3. Selected global rule with Priority 1 and use rule activation condition.
    4. Added a condition called 'CheckIn'
    Selected 'Use Event'. 'On Submit'.
    Selected 'Use Action', ' CheckIn New', 'Check In Selected', 'Content Information', 'Content Update', 'Search', Clicked Ok.
    5. Selected the Fields Tab, Selected the 'Information Fields' in the Add Rule Field.
    6. Changed the Type to 'Info Only'.
    7. Selected the Is Derived Field and in Custom entered the following:
    <$DocUrl$>
    8. Now my rule 'displayDocURL' shows up.
    9. When I go to an item content information I don't see the 'DocUrl' field populated. What could I be doing wrong?
    Thanks
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim

  • Using Calculated Field in Multi Value Field

    In Siebel Application
    Sales Order---> List
    There is a field call "Sales Rep" which displays an "USERID" of Order Sales Team Mvg Applet.
    But We want to display the Last Name and First Name (combined).We got the first and last name using calculated field (Active Full name).
    When I try to get the full name, the system display the name based on the "Primary position", if I step out of the particular row and come back again
    Is there any way to display the full name without step out any rows for Sales Rep field

    Your description is a little confusing. For performance reasons it is always best to set the use primary join on multi value links. This means that when multi value fields are displayed in applets they always show the primary by default. If you want to display something other than the primary what is your rational behind this and why not make the record you want to display the primary?
    Message was edited by:
    Richard@AXA

  • Again: Number Format, Decimals in calculated fields

    My customer wants to know how he can have calculated fields in his reports.
    I've found out that e.g. this works for the calculation:
    <?format-number:((SALARY) div (../../DEPTSAL));'#,##0.00'?>
    But there is no way that I can get a precision of two decimals. All given formats are ignored.
    Maybe this is an issue with the european decimal sign , (Comma).
    How is this to be fixed?
    The use of the translate function was recommended somewhere. I have no idea how to bring it together with my calculation formula.
    Thanks in advance,
    Kai
    Message was edited by:
    kai

    Hi kai,
    First you need to remove comma from your amount field then you can get your result.
    If you have any comma in your amount field then xml number format does not work.
    Look this forum:
    Re: How to indicate number percission in a template?
    Thanks
    Ravi
    Message was edited by:
    Ravi Tripathi

Maybe you are looking for

  • How do I change the speed of my clip?

    I want to know how I can tweak my clips speed to the amount I want and not the option it gives on the menu 25% 50% , 2x, 4x ...etc etc. Is there an option or a route around to be able to customise the amount to what you want  suc as 10% slower or 7x

  • Problem with the Finder when copying stuff on a server

    Hi all ! I have a NAS at home and since a few days, copying stuff on its hard drive has become a pain. The hard drives connected to the NAS mount well with no problem, and when I start copying a big file on them, The finder sort of freezes, becomes c

  • How to use routing service property value in xsl

    Hi All, I need to use routing service's property value in xsl. I created routing service in esb project. after routing rules, thare is properties. In properties I added name as "propval" and value as "required". I need to use value of propval in one

  • Best Practice guide for purchasing - payment card processing

    Hello All, \Is there any Best Practice guide for “Payments by credit card”/ “Payment card Processing”. The biz process is: The purchasing department users purchase goods/services using their corporate credit cards. They obtain a credit card voucher/r

  • IWeb duplicates URL

    When I post my site using FTP iWeb duplicates the the address, for example if my URL is www.1234567.com iWeb publishes to http://www.1234567.com/www.1234567.com. How can i get it to publish without repeating the address?