Formulas in an Adobe Form

I am trying to create a formula that will allow me to round up the answer.  The formula will take the total number of characters and divide by the total number per page to come up with the number of pages.  For instance is we take 1130 character and divide it by 1125 you come up with 1.004 I need this to be rounded to the next higher number 2.  Does anyone have any idea on how I can accomplish this task?

If you want the value in a field, then you need to set the field's value:
// set the focused field's value;
event.value = nPages;
Well you need to code how to calculate the number of characters or a best guess by summing the lengths of each word and an estimate for the white space. You can use the 'doc' object's 'getPageNthWord' method and JavaScript's 'length' property to get the number of characters in a word and then increment for a white space character.
Acrobat is not an authoring program like Word, so I am not sure why you need this.

Similar Messages

  • Substract in Adobe Forms

    Hi Experts,
    I am new to adobe forms. I'm trying to substract two dates in this kind of forms. I've found the possibility of add one quantity to other, but no substract.

    Hi,
    you can use FormCalc function Date2Num(). It returns the number of days since the epoch for date. So you will get number of days between two date with the following formula.
    diff = Date2Num(date1) - Date2Num(date2)
    Cheers

  • Validations in Adobe Form

    hello all,
            i am writing some validations in adobe form .I am not very comfortable with adobe forms but i have to work on.
    validation 1:  field 'NAME' ( type is free text )should support 'several entries'.
    validation 2:  field 'NAME' ( type is lookup)  and validation is ' LOOKUP vs SAP XX TRADER (another field).
    validation 3: field 'PHONE' (type is numeric) and validation is 'DEFAULT BASED ON VALUE IN TRADER LOOKUP'
    if any one have sample code please share..
    Thank you in advance,
    Prakash .S

    Hi Prakash,
    Please download the following PDF file and go through the File, it shows the Difference between Formula Calculations and Java Script Calculations with some of the Examples and the functions which we should use in the Formula Calculations and in Java Script.
    Hope this will help you.
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Thanks & Regards,
    Adi.

  • Excel to .pdf/ Adobe Acrobat or Adobe Forms - whatever may work best and easiest

    If we can, how, create excel formulas in either pdf or adobe acrobat or adobe forms. Something that will work in same way as it would in excel.

    Thank you for your advices.
    I already download Acrobat SDK before, but it's really complicated for someone who know only VBA at intermediate level.
    I really plan to learn javascripts and COM in future, but I was thinking that if I ask you for I guess easy think (opening files and saving them to pdf) you will help by giving similar code or some clues.
    Anyway I found  this two methods in documentation: PDDoc.Save and PDDoc.Open and I believe that a combination of them can finally help me. Do you know how I can connect them to one part?

  • Error when starting Adobe Form

    I have an Adobe Form which works Ok in the development SAP Portal, but that, when I log in the production portal gives the following error:
    Error when reinitializing the form (I guess, it's Error al reinicializar el formulario, in Spanish)
    I think maybe there is something missing to transport, or some misconfiguration, but I haven't been able so far to find it...
    Can someone give me a hand?
    Thank you in advance,
    S.

    Hi,
    Can you tell me when does the error message comes? Does it comes when you are trying to open the Form or when you are trying to execute it.
    Please check if it is still working in the development box?
    Regards,
    Susanta

  • Want to use Adobe forms departmentally.  How many users per license?

    How many people can use Adobe Forms per license/how many computers can we download software to?

    Adobe FormsCentral is a web-based app so there is nothing to download - you access from the web browser.
    Each users who creates forms needs a license of FormsCentral. In a month or so you'll be able to by a team pack (5,10,25) at reduces prices for a larger group who wants to create forms.
    Randy

  • How to print page numbers in adobe form

    Hi,
    Can anybody tell me how to print page numbers in adobe form.
    Thanks in advance
    Chaitanya

    Hi,
    Yes the field page n of m is used normally for printing page numbers. But it won't display the current page of total pages by itself. You have to set the run time property to n (current page ) and m (Total number of pages). Carefully select the # (current page ) and ## (Total number of pages). Hope this works for you.
    My requirement is to have the user control on current page. For Example:
    Example for a Invoice with 5 PO items (stands on 2 pages) :
    1st  page is the letter : no page number
    2nd page is the 1st page of the 1st copy of the invoice : we should read u201C1 / 2u201D
    3rd page is the 2nd page of the 1st copy of the invoice : we should read u201C2 / 2u201D
    4th page is the 1st page of the 2nd copy of the invoice : we should read u201C1 / 2u201D
    5th page is the 2nd page of the 2nd copy of the invoice : we should read u201C2 / 2u201D
    Presently i cam getting the current page number for page 4th as 3 / 2 and for 5th page 4 / 2. I could able to control the total number of pages from print program. But when i am printing the second copy (4th and 5th pages), I couldn't able to control the current page number. I need to initialize the Current page count (4th page ) as 1.
    I have used the follwing java scripting:
    this.rawValue = wv_pages - xfa.layout.page(this)
    where wv_pages is total no of pages calculated from print program.
    Please help me in this regard with some formcal or java scripting conditions.
    Thank You,
    Regards,
    Naresh.

  • Error while calling a adobe form?

    Hi All,
    in my webdynpro component , i am calling adobe form.but  i am getting error as mentioned below.
    Error when processing your  request .......
    Webdynpro Exception:The ADS call has failed.you can find information about the
    cause in the error.pdf on the application server.
    why this error coming? even when i  execute a standard application also i am getting this.why?
    Regards,
    lakshmi.

    Abhi
    I too got the same error:
    WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.
    I refered the link provided by you for testing the ADS configuration and it displayed a 2 page report.
    Is that mean that there is a problem in my form?
    Regards
    Vijai

  • Creation of UI elements on click of a button in ADOBE form

    Hello Experts,
    I have a requirement which is ,
    on the ADOBE form after pressing some action Button i need to create a row of UI elements like Textbox label and Radio button with the values coming from Backend WDA application.
    Number of rows created are equivalent to number of  times button is clicked.
    Also in some cases i have to preload the rows with the existing data.
    Please let me know if this requirement can be accomplished in ADOBE form.
    Any inputs ,Suggestion and help will be very helpful.
    Thanks,
    Siddharth

    Thanks for the help,
    I resolved this by creating elemnts in WD context on click of a button in ADOBE form,And in form i used the WD context structure as a table with required cell editors.
    PDF form should be of type dynamic in this case.

  • Error in Simple Adobe Form

    Hi ,
      I have gone through this below PDF
      https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-   ffd41e8e8d59
    It is Simple Adobe Form with two fields(Firstname and Last name ) not table. I am getting UI Interactive form but not getting PDF. I am using NWDS 7.0.15 and Adobe Live Cycle Designer 7.1.
    Please help me out.
    Thanks
    Risha

    Hi Risha,
    In NWDS Web Dynpro perspective, when you create a project, you will be able to create an InteractiveForm UI Element in any view. You need to set the 'datasource' property to some context node with attributes. You open the Adobe Designer for this InteractiveForm UI Element by choosing the context menu option 'Edit'. You can create some form elemnts for it by dragging the attributes of the binded datasource node from 'Data View' to the form preview area. When you build, deploy & run your application after this, you get this form in the browser. You can now save this form as pdf.
    You can refer to https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf (Using Table in Adobe Form)
    Hope this helps you.
    Kind Regards,
    Nitin

  • Error Opening the Adobe Form

    Hello Everybody,
    I have created an Adobe form and try to open it from the program with FM but I get and error
    "Job already open".
    Can someone tell me what could be worng.
    Thanks,
    Sneha SIngh.

    in my opinion you get the error when you test it from se37.
    create a small testprogramm and it will work!
    br
    norbert

  • Error while executing adobe form

    Hi All,
          I am working on an adobe form in development system everything is working perfectly, But the form is giving an exception ()when executed in quality system .I did remote comparison of both layout and interface and there are no changes.
         What i observed is when i execute the form in SFP in dev system it is creating an FM , But in quality system execution of form in SFP is giving me error saying "Error in include information for function module /1BCDW/0000000007" and when i try to check this FM in SE37 it says it does not exist.
      Please let me know if anyone has faced similar issue before and if you have found the solution.
    Regards,
    Anjana Rao

    Hi friend,
    Its simple.
    The same problem exists in Smart forms also.
    What you need to do is you need to give the Adobe form name to the function module "FP_FUNCTION_MODULE_NAME".
    It will return you a name just you need to substitute that in the form call.
    Because for each and every system the function module number generated for the Adobe form differs.
    Just see the link below its for smart form, just adapt the same for Adobe forms, see my post and use the above function module instead of the one in the link [Smartform error|http://forums.sdn.sap.com/thread.jspa?threadID=2127306&messageID=11037853#11037853]
    Do this it will solve your problem.
    If any queries please revert back to me i will help you.
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Feb 13, 2012 3:52 PM

  • Error when integrating Adobe form in Webdynpro

    Hi,
            Anyone tell me whts this error? How to solve this?
    The following error text was processed in the system AD0 : WebDynpro Exception: ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200.101).
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    Thanks...

    Hi Reema,
                        I created a Adobe interactive form. In a Webdynpro view i use the IAdobe nteractive UI Element & also File Upload. If i click a Submit or upload button in Webdynpro its not able to display a values in Adobe. I written all the XML Parsing to retrive the values. Its is working when i display in Webdynpro screen but not in Adobe form.
    Thanks.

  • Error when connecting Adobe Form with PayPal

    We are trying to integrate an Adobe Form into a PayPal purchase so that after a customer has purchased something, they are directed to a form to enter some personlization information.  However, it seems that the link is getting changed in the process as you get this message when you click on the redirect link:  an error has occurred.
    The form does not exist. Please re-enter the web address as the link may be misspelled.
    The form exists and this is the link: https://adobeformscentral.com/?f=EL-oB4MmM1PfLdRv4RBmEQ
    It works fine when used alone but we really need it to work in combination with the PayPal.  It is for the purchase of pawprint ornaments and can be found at http://www.humanesocietyofmarlboro.org/
    Pleae let us know how we can get this resolved.  We need it working ASAP.
    Thanks,
    Terasa

    Hi;
    Where is it that you have a re-direct link to the form from that Paypal purchase process?  I would double check that you copy/paste the entire link properly and look at the re-direct to make sure it is going to the entire URL and not modifying it or stripping part of it.
    Are you aware that you can do the Paypal payment process through the FormsCentral form?  https://www.acrobat.com/formscentral/en/video-index/paypal-integration-setup.html
    Thanks,
    Josh

  • Error when using Adobe form in Web Dynpro..

    I created an adobe form and gave the form name in template source property of interactive form in web dynpro component.The context node used in that form is automatically created. I pass value to that node using set_static_attributes. When I run the application I am getting an error msg 'Node <node name> does not contain any elements'.Can someone tell me how to solve this problem?

    Dear friend,
    Check the Below link
    https://www.sdn.sap.com/irj/sdn/adobe?rid=/webcontent/uuid/24b9e126-0b01-0010-e098-f46384fad9f3

Maybe you are looking for