Creating a percentage form field?

I have an element called SOACTIVITY_STATUS, the value of the element is part of a group by.
I want to display three columns on my report. The first column is the total count of SOACTIVITY_STATUS rows. The second column is the total count of rows where the value is 'MIS' and the third column is the percentage of column2 / column1.
I have defined column 1 as: <?count(current-group()/SOACTIVITY_STATUS)?>
I have defined column 2 as: <?count(current-group()/SOACTIVITY_STATUS[.='MIS'])?>
When I run the report I get a count of "7" for column 1 and "5" for column 2. How do I define column 3 so my result will be "71%" ?

Hi
<?( ( count(current-group()/SOACTIVITY_STATUS[.='MIS']) ) div ( count(current-group()/SOACTIVITY_STATUS) )  )* 100 ?> Will get you the 71, if you want the template to format the number with a % sig. then leave out the * 100 and assign the field numeric and set the format appropriately.
Yep, you have to do the calulations over again - expensive. You could create a couple of variables to hold the values and divide those.
So rather than your columns totals being as you have, you would have:
<?variable: cnt1,'count(current-group()/SOACTIVITY_STATUS)'?>
<?variable: cnt2,'count(current-group()/SOACTIVITY_STATUS[.='MIS'])'?>Then for your column values you would use
1st Count     2nd count     Percentage
<?$cnt1?>   <?$cnt2?>     <?$cnt2 div $cnt1?>     that will save some resources.
Regards
tim

Similar Messages

  • Creating a modifiable form field

    Hi,
    I would like to create a modifiable form field that maps onto a directory server multi-valued field. This field should have the ability to add a value or remove a value as well as displaying the contents of the list. I've spent time reviewing the Workflows, Forms and Views (v8) document but it's not clear how to achieve this sort of field. Is it possible?
    Regds
    CK

    The ListEditor component is what you are looking for.
    Check out this code snippet directly from the documentation:
    <Field name='accounts[Sim1].Group'>
      <Display class='ListEditor' action='true'>
        <Property name='listTitle' value='stuff'/>
        <Property name='allowTextEntry'>
          <Boolean>true</Boolean>
        </Property>
        <Property name='ordered'>
          <Boolean>true</Boolean>
        </Property>
      </Display>
      <Expansion>
         <ref>accounts[Sim1].Group</ref>
      </Expansion>
    </Field>The important stuff in this case is the field name, in this case accounts[Sim1].Group. This means you are displaying/modifying the contents of an attribute "Group" on resource "Sim1". Change this to suit your needs.

  • How we create dynamic add form field in web form

    How we create dynamic add form field in web form?

    Hi,
    Thanks for reply.
    I need to create a form in which "add more" input field dynamically. For
    example sometime we need field on or more. Please look at the demo, I need
    to create form as per demo in business catalyst:
    http://www.openjs.com/scripts/examples/addfield.php

  • When creating a fillable form fields from an existing pdf file, how do you set or allow end user to set the font size in the fields?

    I successfully created a form filled pdf using an existing pdf document.  However, the font size is too large to allow end user to type in information in the form box.  Is there a way to 1)globally set all  of the form fields when generated to a much smaller font size &/or 2) allow end user to change the font size if needed to put all information in one box without font being so large?

    Hi DenisonDoc,
    There is no option right now to set properties globally primarily for Text fields. You may make sure fields doesn't contain anything.
    Select all the text filed from the form and right click any of the selected field make sure all of them are selected choose properties --> Appearance there you can choose Font Size and Font type.
    - End users cant change size and type of font. It is up to designer.
    Regards,
    Ajlan Huda.

  • How to create a New form field button.

    Hi there.
    I have this form that allows the admin and or client to change their Business details and on that form there is a field (text) that they can fill out their product detail and price. I wanted to have a button to create another form field (to do the exact samething) to allow them to add more products.
    Is this possible with CF?
    Thanks in advanced.

    Javascript is what you want to use.

  • Auto Create Filename from Form Fields

    Hello all,
    I am trying to find a way that I can save a form with a certain filename. I have the form create and all set to go. The user will be input some information into boxes. For instance I will have a Name box and a Date box. After the user is done filling out the form I would like the filename to be these two input boxes. Is there a way to do this? So basically I need to take these two form fields and have them be saved as the filename. Any help would be great. Thanks alot.

    You can export the data form the PDF using the FormDataIntegration service.
    Once you have the data in xml format, you can use a setValue and concatenate the value of the two nodes you're interested in.
    Jasmin

  • Is there a way to create entry form/fields in Numbers.

    Can anyone let me know if there's a way to create an entry form/field in Numbers. The idea would be to have already created a list of contacts, then at an event on an iPad, people can check off if that person is there and also enter new contact info. Thanks in advance.

    Isnt this just a table? A list of people, with a check box field in the second column, followed by a few columns for contact info to be entered in?
    Jason

  • How do I cause a form field to raise its blur event?

    I have a web form that displays an editable pdf document.  When a user clicks a button the form will get validated.  If one of the fields being validated has the focus its value will not get updated when I need to do the validation.  For example, if I am validating the First Name field and I type text in it and then click on a button (from the web) to cause validation, the document says the field is invalid because there is no data.  If I hit tab on the field to focus a new field the validation works fine.  How can I cause the field to get updated?  I have tried to create an empty form field and focus to that first but that does not work.

    Nope, I have a button on the website that the user clicks to send a validation request.

  • 2 Bugs in PDF Form Field Rendering

    Both of these bugs appear when "Show border hover color for fields" is on.
    In XObject streams used for Text Widget Annotation appearences the BMC operator does not properly respect whitespace. To reproduce:
    Create a fillable form field with a text widget annotation.
    Fill in text in the field, save the document
    Edit the content stream of the appearance stream used for the widget so that there are two spaces between /Tx and BMC instead of 1.  Be sure to shorten the content stream by 1 byte (shorten a string by a byte or remove a leading 0 in a decimal) when making the change so as not to change offsets.  Save the file.
    Open the file in Acrobat and note the text doesn't appear.  Turn "Show border hover color for fields" off and the text appears.
    In XObject streams used fo all WidgetAnnotations, the general color operators, CS, cs, SC, and sc are not respected.
    Create a fillable form field that uses /DeviceGray SC 0 sc to set the text color (this can be done by create a text field and filling it with a lot of repeating non-white space characters and then replacing the 0 g with /DeviceGray 0 sc then shortening the text string to keep the stream length the same.  Save the file.
    When the file is opened in Acrobat, the field will appear blank until "Show border hover color for fields" is turned off.
    An example file is here.
    This file has several fields, two which are prefilled.  The first field contains filled in text but does not show (it appears when you turn off "Show border...").  The second is visible.
    By editing the raw data, the second field (object 13 0) can be changed to exhibit both bugs.  To exhibit the BMC bug, insert a second space between /Tx and BMC and remove a space elsewhere.  The exhibit the second bug (after restoring BMC), change both "0 g" and "1 g" with "/DeviceGray cs 1 sc" and "/DeviceGray cs 0 sc" respectively (there is enough blank spaces to do that).

    Bugs must be reported via the official route at http://www.adobe.com/go/wish
    Posts in these forums are not logged and are unlikely to receive any attention.

  • Why does Acrobat crash every time I try to organize form fields?

    I am working on an 18 page pdf that was created in InDesign. I am copying and pasting fields from an existing document to retain importability. Every time I drag a field to a new location in the field menu, Acrobat crashes. Any idea how to fix this? My software is up-to-date, and I am working on a Retina display MacBook Pro hooked up to a Thunderbolt display. I have had nothing but issues with Acrobat since upgrading to Creative Cloud. I know that there were issues a few months ago with Acrobat & the Retina display MBPs....does this have anything to do with that?

    As a test, try the following preferences:
    Acrobat > Preferences > Forms > Automatically adjust tab order when modifying fields [Deselect]
    and:
    Acrobat > Preferences > Forms > Show field preview when creating or editing form fields [Deselect]
    So deselect if either are selected. No guarantees, but it's something to try.

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • I have created a PDF form with field but for some reason I cant type in them

    I have created a PDF form with field but for some reason I cant type in them

    May be that the text fields are read-only.

  • I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. How can I fix this?

    I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. Can I fix this?

    I'm fairly new to this, but I think it has to do with the way you have the drop downs named. Did you copy one then keep pasting it in each field? If so, that is the problem. You should rename each one with a different number: Dropdown1, Dropdown2, etc. I think that might solve the issue.

  • Problem with Buttons/Form Fields in Acrobat PDF when created in InDesign CS4

    So I have been working for quite some time on an interactive form for an internal client at my job. It has two major components, one is the side bar navigation, which I created using buttons in InDesign which link to bookmarks in the document. The second aspect is that I also created "check boxes" accoring to this video: http://www.adobe.com/designcenter/cs4/articles/lrvid4434_ds.html
    I have two major issues:
    1. Whenever I try to convert my boxes to form fields in Acrobat it will not recognize them unless I save out 4 pages at a time (rather than the whole document).
    2. I then have to combine the document and get multiple sets of bookmarks, and some bookamrks are corrupted (not working properly). Even when I try to convert the whole document some of the buttons are corrupted.
    UGH tired of this project, I am really bastardizing the whole thing to get it done, but want to figure out the problem as this is an ongoing document that we will be using over and over again in future years.
    I am attaching the pdf file--this is a pieced together one (saved out 4 pages at a time) (which I did do some fixes to to get buttons to go to proper locations) and the original indesign file (partial file due to size).
    PLEASE OH PLEASE HELP ME!

    Acrobat's Form Wizard is good but not perfect when creating form data from a PDF. I have never encountered Acrobat not able to finish the process of creating all form fields, but have encountered very slugish performance afterwards when there was a lot of forms, buttons, and other elements within the pages. And I would say, from your attached PDF, it is pretty heavy with content. I am going to suggest an idea, but I have not tested this to see if it would work.
    In InDesign, create a layer for your navigation tabs, and a layer for your text with the check boxes. Create two PDFs from ID, one PDF with just your-nav tabs, the second with just your text with check boxes. In Acrobat, perform the Form Wizard on the second PDF and see if this will finish, the idea here is to reduce the cllutter for the Form Wizard to finish. If it does, you can merge the first PDF as a layer with the second to have a completed document. Again, I have not tested this theory.

Maybe you are looking for

  • The page total amount is not correct on discoverer plus 10.1.1.48.18

    on my discoverer report, there is sunnary field based on a column. for example, I have a salesrep expense discoverer report. the salesrep name is the page item, each page has one salesrep, under the page item there are many line which show the expens

  • How to remove time machine backup from a mackbook pro used in target disk mode

    Many months ago I (as my backup drive failed) I used my macbook pro in target disk mode to store the time machine backup of my iMac.  How do I delete the backup on the macbook pro?  I am running mountain lion on both machines.  When I boot the macboo

  • Sound file doesn't s

    Hello everybody, I've written a program in Borland Delphi 5, which controls the sound output with DirectX 9.0c. In this program, i'm starting a sound file (.wav), that doesn't stops after playing it. I've got a "SoundBlaster Li've! 24-Bit" installed.

  • SAP Library

    Hello guys, Is it true that there is some SAP books and papers from SAP Library very intersting to read to set up easly for example the different infoproviders and extractor from SD, CRM for BW It seems that the books deals with how to and where to u

  • Printing Multiple PDF

    Is there a program or javascript that can do this? I have a 40 page dcument, I would like to make say 3 pdf files with differing page ranges from this one 40 page document and name them North Div, South Div, and Eeat Div. I would like all the three d