Making a Field Value Always Negative in Acrobat

Hi,
I am trying to create a field in Acrobat that will always be read by the calculation tool as a negative number. For example, I have a filled-in form with the following (where the blank lines are the form fields):
Base Salary               $_____________
Pre-tax deductions     <_____________>
401(k) deferrals          <_____________>
Incentive bonus            _____________
Total                         $_____________
I have set the total field as a calculation of the sum of the first four fields, but I need the two fields with the chevrons ( < > ) around them to be negative numbers, without the user having to enter the value with a negative symbol ( - ). Is there a way to assign the value entered into those 2 fields as negative so that Acrobat will subtract them from the other two values when it caculates?
Thanks.

I am unclear on what exactly you are saying. Can you give me a little more detail.
What should I put in the "Custom calculation script" to make the calculation work correctly?
And how will I know if my field names meet the requirements for the "Simplified field calculation" method? I don't know what those requirements are. If I use this method, what coding do I need to put in the "Simplied field calculation" box?
I don't know any JavScripting so that's why I was using the "Value is the _______ of the following fields" option. How would creating a hidden field to compute the negative value of the fields help if I can't make a field negative? All I was wanting to do was see if there's a way to set any value entered into that field as a negative value. Is there not a way to make anything entered into that field negative? Do I just need to tell the user to enter a negative symbol ( - ) before the number so it will calculate correctly?
Thanks.

Similar Messages

  • PCUI- Making a field value as default value.

    Dear experts,
    In our activity management we have two activity journals and for this application we are using PCUI to display in Portal.
    so for example i have Activity1 and Activity2.
    What i want in my PCUI is when ever somebody creates a new transaction by default i want Activity1 as value in Activity Journal field in PCUI .
    any suggestions.
    regards
    Neel

    Hi Neel,
                 To default the value ,you can make use of the read method of the model access class which is assigned.Or try using any badi which triggers while creating an activity.Keep a breakpoint in the class 'Cl_exithandler' method 'GET_CLASS_NAME_BY_INTERFACE' to identify the badi names.
    *******Reward if useful.
    Regards,
    Ruby.

  • Report Builder: ContentType Field shows always "System.Byte[]"

    Hello Community!
    I use the following systems:
    SharePoint 2013
    SQL Server 2012 Report Builder 3.0
    So, I have a SharePoint List with some columns (Responsible Person, Serial Number, Content Type).
    Responsible Person and Serial Number is displayed correctly. But in the field Content Type, I have seen "System.Byte[]" instead of the realy value of Content Type.
    When I execute query, I have seen realy value of the field Content Type!
    Could anybody help me?
    Thanks a lot und greets from austria!
    Daniel

    Hi Daniel ,
    According to your description, when you use SharePoint list as data source, the Content Type display as "System.Byte[]" instead of real value when running the report.
    As we tested in our environment, Content Type can display correctly both in query designer and preview results. Please refer to our test results below to check if you design the report correctly:
    1. Type the query in dataset like below:
    2. Run the report:
    Besides, it has reported the same issue with Content Type. In your scenario, please also try to use XML data source to connect to SharePoint list to retrieve data. For more information, please refer to this similar thread:
    Reporting: ContentType Field Value always "System.Byte[]". If issue persists, please create the same report in SSDT and run the report, then check if there are warning messages in output.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Making an entered value negative dynamically

    Hello,
    Does anyone know the simplest way to automatically convert a number entered into a field to a negative value? For example if 7.5 were entered the value stored would be -7.5 Users often forget to add the '-'before a value and I want to elliminate this problem.
    Kind Regards,
    Steve Welch

    this works.
    abs will always return a positive number.... even if it was negivite like example below -10... then lead with "-" and it will make it a negitive number.
    example:
    select - abs(-10) from dual;
    Thanks Jade

  • Adobe Acrobat as a server to create PDF using PDF templates and field values

    I'm writing a web page to create a PDF using fields that we ask for them in the screen.
    My idea is:
    1. Ask for field values (text values and a photo) in my web
    2. Run Adobe Acrobat to load a PDF template (PDF form) and mix with the field values
    3. Create a final PDF mixing values and template
    4. Show to document to the user in his client web browser. I guess the only way to do that is to create the PDF on a server with Adobe Acrobat Pro and send to the user browser a JPEG that will represent the  PDF: If I do this operation in the PDF visor at the client browser, the problem is that it will will be mandatory to install Adobe Acrobat in each cliente because only this visor can manage javascript.
    Can you tell me if this idea is correct? It is possible to use Adobe Acrobat on a Server to create PDF when some proccess needs?

    and what other Adobe product o procedure can we use to do that?
    I only need to create a PDF mixing PDF Templete, field values and javascript.
    Thanks for your help.

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

  • Showing Postive Values as negative and negative values as negative itself

    Hi Experts,
    I want to bring using a formula the value in negative always how this can be done pls advise.
    For example
    {Field 1 - Field 2 } e.g - = 1 here the value 1 is coming as postive and sometimes the same
    {Field 1 - Field 2 } e.g - = -2 here the value -2 is coming as negative
    Now I want that there should be some formula that in the above scenerio the Positives are made as negative and negative values stays as negative only.
    Please advise how this can be achieved.
    Regards,
    Venky

    Hi Venky, 
    You can add to your formula like: 
    If {Field 1 - Field 2 } > 0 Then
        ({Field 1 - Field 2 }) * -1
    Else {Field 1 - Field 2 };

  • Problem 0RECORMODE fields value

    Hi developers,
    when is effectued a posting or modify on the sales document on the record with Rocancel X the quantity is with sign invers while the fields value dont'have the sign invers but in the two records (before and after) the value is positive. Is the correct way of working of the delta modifications?
    Thanks and regards
    Domenico

    Thanks,
    the problem is relative to this situation:
    Rocancel Quantity   Value
    X           -1      100 Eur
                 1      100 Eur
    When Rocancel is X the quantity is correctly negative and the value positive.
    When Rocancel is blank the quantity is correctly and the value is positive.
    My domand is why the value is always positive
    Regards
    Domenico

  • How to pass input field value from one region to another ?

    What I am trying to do :
    I have one page with 1 region with one text field and an apply button and a report region.
    I want to be able to enter a value in the text field, click on apply and exploit this value in the source of the report region.
    Of course, I want the the value in the text field remains after the click on the apply button.
    What I cannot control with my try :
    1 the text field is always wiped off after the push on the apply button, no matter what kind of "do not clear the cache" setting I have found, and no matter the "take this value for this parameter" setting I have done every where I have found it.
    2 (but I think that this is related to 1) I cannot get working the conditional display of the report region on a NOT NULL condition of the above region text field.
    I have tried the code of the page 23 of the customertracking demo packaged apps, but the button properties shown are not the same than what I can find in my apps : I guess this is a difference in apex version normal feature.
    I think that what I am trying to achieve must be terribly simple but I cannot see it.

    Ok I have found out that it was now an interactive report that has to be done for this kind of situation, and that in my case, I needed to enable a detailled report.
    Now I have another question : one of my field is rich text : how to render it in my detailled report ?

  • Field value(s) for object S_SERVICE were not entered

    Hi
    Whenever I try to generate a profile in PFCG I get an error, that is saying;
    ... field value(s) for object S_SERVICE were not entered
    Number of values could be different but message text is always the same.
    The problem is in CRM2007 IDES.
    It is regardless if I try to generate for existing role (like SAP_CRM_UIU_MKT_PROFESSIONAL) or for own role
    Does anybody know how to solve such issue ?
    regards
    Rafal

    Dear Rafal,
    kindly check documentation of customizing node
      SAP Customizing Implementation Guide
        Customer Relationship Management
          UI Framework
           Business Roles
             Define Authorization Role
    "Make sure that the authorization object S_SERVICE is set to inactive.
    An active authorization object S_SERVICE could interrupt the profile
    generation."
    You have to deactivate the S_SERVICE authorization object in PFCG to
    solve the error.
    Hope this helps,
    Gerhard

  • To modify field value in a transparent table

    how would i modify the value of a field in a transparent table? my data is from internal table. while im looping in the internal table the data goes to the first record of the table not on the right record.
    what wrong with  my code?
    loop at i_tble.
      wa_tble = i_tble.
      select single angnr
      into i_angnr
      from ekko
      where ebeln eq wa_tble-ebeln.
      ekko-angnr = wa_tble-angnr.
      modify ekko.
    endloop.

    Hi,
    I am sorry but I didn't understand the purpose of this code. You are reading in a field value of ANGNR from EKKO and you want to update the same record again with the same value? Why?
    <b>Secondly, you should never update any SAP table directly like that</b>.
    Now for the reason why your update is updating the first record always.
    Your 'modify ekko' should be modified as
    MODIFY ekko TRANSPORTING angnr WHERE ebeln = wa_tble-ebeln.
    Please reward and close the post if answered.
    Regards,
    Srinivas

  • Want to read Field value set by Value help

    Hello,
    I have BSP View which is using Value help extensions for one of the input. The search help is based on the Elementary Search Help which is further based on Z-Table. In my BSP view [IE] I am able to popup the Search help and able to select the Value from list of choice. The selected value gets reflected in the Input field of browser. The problem is I am not able to capture the selected value in Event handler. I need to capture this value and get the related data in other input fields [which are display only]. How to do this?
    I even tried getting the value in the Javascript, but unable to assign the Javascript variable to my BSP View attribute or Controller attribute.
    Thanks in advance.

    >Do I have to trap it in DO_HANDLE_Event by doing Get_Form_Fields??
    If you are using MVC and data binding you don't have to do anything.  The field values will be brought in automatically for you.
    However in any MVC application, the highest level controller should always contain a small block of code in the redefinition of the DO_REQUEST method.  It is:
    if input is available, dispatch this input to subcomponent.
    * this call is only necessary for toplevel controllers.
    * ( if this is not a toplevel controller or no input is present,
    *   this call returns without any action)
      dispatch_input( ).
    * if any of the controllers has requested a navigation,
    * do not try to display, but leave current processing
      IF is_navigation_requested( ) IS NOT INITIAL.
        RETURN.
      ENDIF.
    This code is critical for properly dispatching events through the controllers.  It is also the code that triggers the MVC runtime to restore input values into the model.
    Also to eliminate the possibility with a problem in the implementation of the value help, why don't you temporarily switch out this element with just a plain htmlb:inputField.  This way you test to make sure that data binding works correctly with the standard field.

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • Key Field Value in FCC

    Hi Experts,
    I have a scenario in PI, where I have 1 Header, n Data Records and 1 Trailer in the source file. This data is coming in CSV format.
    I am using FCC to convert CSV into XML.
    In the FCC, I have used keyFieldValue parameter. For the Header Record, the Key Field Value is constant "H"; for Trailer Record the key field value is constant "T".
    However for Data Record, the key field value is not constant. The first character of Key field of Data Record will always be "D", but rest of the Alphabets can change.
    Sample File:
    "H","3.04",22/10/2009,16:31:12
    "D2S",21/10/2009,20:00:26,"20044",00666,"S",1
    "D2S",22/10/2009,14:26:20,"20044",00668,"S",1
    "D0S",22/10/2009,08:33:34,"00044",04165,"S",1
    "D0S",22/10/2009,11:59:59,"00044",04166,"S",1
    "T",1393.27,1393.27,8
    Here, first line is Header Line (Key Field Value "H"), Last Line is Trailer Line (Key Field Value "T") and all lines in between Header and Trailer are Data Records (Key Field Value starts with "D). I need to convert this file into XML.
    I have no clue, if this can be converted into XML through FCC.
    Any help will be highly appreciated.
    Regards,
    Varun

    >
    Varun Agarwal wrote:
    > Sample File:
    >
    "H","3.04",22/10/2009,16:31:12
    > "D2S",21/10/2009,20:00:26,"20044",00666,"S",1
    > "D2S",22/10/2009,14:26:20,"20044",00668,"S",1
    > "D0S",22/10/2009,08:33:34,"00044",04165,"S",1
    > "D0S",22/10/2009,11:59:59,"00044",04166,"S",1
    > "T",1393.27,1393.27,8
    >
    > Here, first line is Header Line (Key Field Value "H"), Last Line is Trailer Line (Key Field Value "T") and all lines in between Header and Trailer are Data Records (Key Field Value starts with "D). I need to convert this file into XML.
    >
    > I have no clue, if this can be converted into XML through FCC.
    > Any help will be highly appreciated.
    >
    >
    > Regards,
    > Varun
    Write a simple module. The module will do a replace of the Dxx fields to D (you can use simple regex function for this)
    After the module, use the messagetransformbean to do the FCC for you.
    The module might sound complex, but trust me its a simple logic you need to implement and you can easily do the FCC with the messagetransformbean

  • Some fields value goes missing while hitting backspace

    While hitting backspace on a page the previous page that opens does not hold all the data that was filled in. Some of the field values goes missing. I think it is a browser cache problem. The browser should always rememeber the field values while reloading a page. In some of the cases it does not(specially when backspace is being pressed). Is there any suggestion? Please help me out.

    Hey.. I have encountered the same problem too. Actually if I have some text field elements and if we implement some kind of Javascript or Jquery validation on it and then after moving to next page when we press backspace we do not get previous input values in the previous page. Not only that some times if we do not implement any validation still the values lost while coming back to the previous page by pressing backspace or browser back button. Any suggestion please..

Maybe you are looking for

  • Ascending Order of Objects at universe Level

    Hi Techies. I am working on BO 3.1 Designer SP5. I have one Period (Month Year) object at universe level and I have arranged the order of object as Descending by editing the properties of the object. and when I use this object in the Query Filter sec

  • How to search for pictures from the net

    and display them in jsp? I would like to write a jsp file that searches pictures on the net and displays them in the browser. what is the code for searching the net? should i download the pictures or can i link to them? thank you

  • How to limit the number of builds in tfs build queue

    Hey. I have a problem, i want to limit the number of requests for build that developers can trigger with gated check-in's. More like this, i have my developers and they trigger 10 builds , and 10 is my limit , so when another developer preform a gate

  • Data fetching error

    Hi Experts, Im doiing data archeving for sale module. My issue is  i had created a function module, in which ranges are used as select-options. while debugging i found that my input values are not getting validate. its moving out of the select query.

  • Sendig email about a few pages of a SAPScript

    Hi! I would like to know, is it possible to send via email some pages of a SAPScript. I've created a report, with SAPScript output. The report is collecting a lot of data, and is grouping the data by customer. So at the end of the report run, I have