Subtotals in adobe forms
Hi,
Sorry for this question.Although this has been asked a lot of times,i am getting problems.
I want to print the subtotal for each page in adobe forms.I am getting the total at end of last page.
This is the code given in sdn and saptechnical.
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var total = 0;
for (var i=0; i <= fields.length-1; i++)
if (fields.item(i).name == "PRICE")
total = total + fields.item(i).rawValue;
this.rawValue = total;
But it is not working for me.
Some have also asked to code in the program,but I have no idea about it.
Pls help.
Thanks and regards,
Raka.
Hi Raka,
Add a footer row for your table.
From the object palette -> Pagination, check property 'Include footer row in subsequent pages'.
Add total field in the required cell.
Hide unwanted cells in the footer row.
In the calculate event of the total field use the following script in formCalc
sum(Table1.Row1[*].amount[*])
Hope this will help.
Regards,
Sanoosh
Similar Messages
-
Arabic SubTotals in Adobe Form Page.
Hi Everyone,
I have a requirement of printing Subtotals of a table in Arabic as well as English on the same page for all pages in the form.
FYI i have made a function module to convert english digits into arabic, which i use in my code to convert english amounts to arabic amounts.
Like -
CALL FUNCTION 'ZJP_M_ARABIC_NUMERALS'
EXPORTING ENGLISH = V_AMOUNT
IMPORTING ARABIC = V_AMOUNT_AR.
This gives me the arabic amount.
Now i am printing english subtotals using the javascript code :
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var total = 0;
for (var i=0; i <= fields.length-1; i++) {
if (fields.item(i).name == "AMOUNT") {
total = total + fields.item(i).rawValue;
this.rawValue = total;
Through this code i am able to get the english subtotal in my offline adobe form.
My PROBLEM is - how do i use this english subtotal generated via javascript to convert it into arabic subtotal (using the FM)
for each page.
Any help is highly appreciated..!!
Thanks,
Piyush.Hi Piyush,
Check this below link set locales for a field using java script this might help if you are looking for @ scripting
/people/raghavendra.prabhu/blog/2010/12/17/currencynumber-formatting-in-hcm-forms
I have 2 approaches (hopefully both of them will work).
1) Have a hidden field with arabic locale, in your loop keep adding values to this field.
2) have the required field on the form set the locale to arabic, just assign the english value to this field. (if both english and arabic totals are from same records and same values mathematically then only the presentation locale is different but the value sud be the same right).
If I am wrong understanding your requirement, please explain what is the difference ...?
Cheers,
Sai -
Hide a row or field in adobe form
Hi guys,
Can any one suggest me how to hide a field in adobe form.
My scenario is:
Using control levels for deliveries with item data, if the item line is only one, then I should not display any subtotal field, if item lines are more than one, only then i need to display subtotal field in adobe form.
Subtotals are maintained at item level not at the page level.
Can any provide solution with scripting.
Thanks.
RP.One way is have some variable which tells how many rows of data is present. Check it and then make subtotal
visible or hidden. The script will be like below.
if (rownum.rawValue == 1) then
this.presence = 'hidden'
else
this.presence = 'visible'
endif
Thanks,
Aravind -
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
ChaitanyaHi,
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,
SiddharthThanks 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. -
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
RishaHi 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 -
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 RaoHi 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,
TerasaHi;
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 -
Error when Interative Adobe Form is called from Webdynpro ABAP.
Hi Experts,
I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error.
Line: -
The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout
The error occurred on the application server az18u021_GJD_01 and in the work process 0 .
The termination type was: ERROR_MESSAGE_STATE
The ABAP call stack was:
Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
Line: -
When I uncheck the enabled property of the Interactive From in the Page of the WebDynpro I am able to execute the application successfully.But the Adobe form behaves as a Static Form when I uncheck the enabled property.
So kindly provide your valuable suggestions to avoid the above error when I am calling a Interactive adobe form from Webdynpro ABAP.
Thanks in Advance.
Regards,
Arun.Hello,
Hello, are you sure you have your ADS credentials configured correctly and valid? I guess you know that is the only difference between clicking enabled on true or false. If you are not sure, you can use SE38, search for FP_* and pick some reports to check the licencing. The names of the reports are good enough to recognize the right one.
Or maybe that is a security problem? Have you checked the ADS_ERROR string? Did you use the ADS trace?
check: http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
and especially note 999998
Regards, Otto
Maybe you are looking for
-
I have a new computer, with some new music on it in my Itunes Library. How do I put that new music from here onto my existing ipod (which has a ~1500 song library from an old computer which is no longer accesible, and which music I do not want to er
-
Open PDF in new window to bookmark
Is it possible to open a PDF in a new window to a bookmark? I tried the code below; the PDF opens in a new window but does not open to the 3rd page. Appears that "page=3" is getting removed from the URL when opening. Any ideas? <af:goLink text="View
-
Hi! I have problem with saving in PDF. I am croatian and we are use č,ć,ž,š,đ whan I go to my AI file I am see č,ć,ž,š,đ and whan save in PDF everything is great. But Whan i open PDF file i have small "cube" instead č,ć,ž,š. This is picture of issue
-
Combining items with different fields
I have users that want to built a report that shows all the products in the same table. Problem is certain fields will only be populated for certain products. For example, a table with 15 fields, first 5 are constant across both products, 2nd 5 only
-
I have been trying to update my iPhone 4 with iOS 5 for about 30 minutes and I keep getting the same thing. It says,"There was a problem downloading the software for the iPhone. The network connection could not be established." What do I need to do t