Pdf live cycle  form through sap abap editor to validate user input by java script coding

I am new to apply a java script in a Adobe form.
So i need of help that i have 9 page form of HR module i need to verify every blank field and wrong entry field also.
I look around a lot of code but still i am not able to perform good validation in a Adobe form.
I am using SAP ABAP editor where i am making through PDF Live cycle FORM & try to put java script validation on the field.
My problem is that how can i link or configured to Adobe form.
Here are some event are given "mouseup","validate" or more are given.So how i can do.
i wrote the code like
/ Get the field value
var f1 = this.getField("VORNA");----why it is not working.Some thing is wrong?
var v1 = f1.valueAsString;
if (v1) {
} else {
   app.alert("Field: " + f1.name + " is blank.", 1);
//above code is not working.
but here we used rawValue() method it works , but it popup message  javascript with window error.
if( this.rawValue()==' ' || this.rawValue==null)---------this works
xfa.host.MessageBox("First name is blank!");---------this works
"VORNA" is "First name" field name binding with this value.
How we can linked java script file with Adobe form.
Kindly help me

You're mixing code for an acroform with code for an XFA form. SInce you're creating the form with LiveCycle Designer, it wold be better if you posted this to the LiveCycle Designer forum, if you haven't already.

Similar Messages

  • Pdf live form through sap abap editor to validate user input by java script coding

    I am new to apply a java script in a Adobe form.
    So i need of help that i have 9 page form of HR module i need to verify every blank field and wrong entry field also.
    I look around a lot of code but still i am not able to perform good validation in a Adobe form.
    I am using SAP ABAP editor where i am making through PDF Live cycle FORM & try to put java script validation on the field.
    My problem is that how can i link or configured to Adobe form.
    Here are some event are given "mouseup","validate" or more are given.So how i can do.
    i wrote the code like
    / Get the field value
    var f1 = this.getField("VORNA");----why it is not working.Some thing is wrong?
    var v1 = f1.valueAsString;
    if (v1) {
    } else {
       app.alert("Field: " + f1.name + " is blank.", 1);
    //above code is not working.
    but here we used rawValue() method it works , but it popup message  javascript with window error.
    if( this.rawValue()==' ' || this.rawValue==null)---------this works
    xfa.host.MessageBox("First name is blank!");---------this works
    "VORNA" is "First name" field name binding with this value.
    How we can linked java script file with Adobe form.
    Kindly help me.

    You're mixing code for an acroform with code for an XFA form. SInce you're creating the form with LiveCycle Designer, it wold be better if you posted this to the LiveCycle Designer forum, if you haven't already.

  • Is it possible to use Adobe Interactive Forms in SAP (ABAP) Trial Version?

    Dear All,
    i need some help concerning the usage of Adobe Interactive Forms in SAP (ABAP) Trial Version.
    I installed SAP Netweaver 7.01 (ABAP Trial Version) and i would like to use the Adobe Interactive Form editor (transaction SFP). Is this trial version prepared for this? Is it possible to edit and test Interactive Forms in the ABAP Trial Version too?
    Somebody told me that he installed Adobe Lifecycle Designer 7.1 but the layout manager part of the editor shortdumped when he wanted to go back to other  parts of the editor or he wanted to save what he did...
    Is it enough to install Adobe Lifecycle Designer 7.1? Is there something else to install or configure?
    Thank you for your help in advance.
    All the best, P. Phil.

    Yes, you need the lifecycle designer installed.  That should be enough to work with the SFP transaction.  But to actually use the form, I think you do need the ADS(Adobe Document Services) which runs on the java stack.
    Regards,
    Rich Heilman

  • How to check Adobe Live Cycle Designer version in ABAP Workbench ?

    Hi,
    Please advise how to check Adobe Live Cycle Designer version in ABAP Workbench ? Currently i am using NW 7.0 SP18 (ABA,BASIS).
    Thank You and Best Regards
    Fernand Lesmana

    There are 3 ways you can check which version of ALD you have installed on your machine.
    1. Go to transaction SFP (Forms Builder) transaction and enter a form name. Select Layout and it should open Adobe LiveCycle Designer. From ALD select Help --> About section and it should give you version details.
    2. Go to SE80 and open an Interactive form application. Select the InteractiveFormUI element and click edit. This will open the ALD. From ALD select Help --> About section and it should give you version details.
    3. A more simpler way is just go to C:\Program Files\Adobe on your machine and there should be Designer folder there for e.g. Designer 7.1 / Designer 8.0 / Designer 8.1
    Chintan

  • Update data of pdf (offline adobe forms) to sap system By Inbound E-mail

    Hello,
    I am trying to update data in PDF (offline adobe forms) to Sap system by Inbound E-mail. Kindly give some suggestions for scenario to do this task.

    Hi,
    There ia a good information for your requirement.
    Please check the below link.
    http://www.sdn.sap.com/irj/scn/events?rid=/library/uuid/c0c139d3-3eae-2910-01a1-d253f2587b0e&overridelayout=true
    Thanks.
    Uma

  • SMS through SAP ABAP in ECC 6.0

    hi
    i want to send the SMS through SAP ABAP,for that I need any FM or any other thing.
    currenlty user send SMS through the TCODE SO01,but i want to do it through abap code.
    please tell me is there any FM exits in SAP to do this,or any other code i have to write.
    regds
    vipin

    Hi Vipin,
    Just check if the
    FM - SO_DYNP_SHORT_MESSAGE
            SO_NEW_DOCUMENT_ATT_SEND_API1
    is useful for you.
    If helpful award points
    Regards,
    Vivek
    I think the below FM would be more helpful, check -
    1. SO_DOCUMENT_SEND_API1
    2. SO_DOCUMENT_SEND_API1_NEW
    Edited by: Vivek on Feb 7, 2009 2:57 PM

  • Hide Navigation Panel buttons in left side of live cycle form

    Hi, i need to "Hide Navigation Panel buttons" in the left side of the live cycle form when its open in the workspace using scripts, so the user no need to right click each time to Hide it,
    thank you

    Hi,
    Sweet, good to know
    Thanks
    Radzmar.
    Regards
    Malcolm

  • Adobe form created in LiveCycle does not remember user input

    Adobe form created in LiveCycle does not remember user input when the file has been re-opened after it has been saved.
    Example:
    "Check box" that has been selected and who have registered Action script (may be that it should be disabled), seems to be reset when the file is re-opened, although it apparently is checked.
    Are there settings or script that can prevent this?

    Hi there,
    usually if the values are not kept in form after saving and re-opening the form, it would be because of your code... or because it is not Reader Extended PDF...
    If your code has a function which is to return a value to your field without it to be working based on your Design, it will reset any data..(variables)
    Which means...
    e.g.: You have an array/var/JSONobject which you populate varying on the data entered in the design, as long as you are in the actual form, without closing and re-opening the form, it will keep all values inside that array / variables / JSONobject. But, once the form closed and re-opened, if you have a function that returns a value to your field, whatever the field, from any variable in the script it will return nothing because every variables are reset. To avoid such a thing, you must repopulate all variables that were assigned previously before closing the PDF Form. To do so, I recommend to have a page(hidden) which contains every important values according to that function and you must repopulate those variables according to the values in the keepVar page...
    If you do not have any function that returns a value to a field based on your variables, this is not the solution you are looking for and I am not aware of the reason why it behaves like this... Maybe more information on the behaviour of your form would help locate the issue...
    Hope this help

  • Create SAP B1 Query with Optional User Input Fields

    Hi All... any help is greatly appreciated, I am new to this forum and hope to contribute in the near future once I become more of an expert with B1.
    I have a query I need to build that will search about 10 UDF's. The problem is, I don't know how to make the user input fields optional within the query. Currently, I have the following queries as testing searching 2 UDF"s:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand] FROM OITM T0 WHERE T0.[U_Quality] = [%0] OR T0.[U_LengthFT] =[%1]
    This query works when leaving one of the user input fields blank. However, the values it provides are wrong because it is an OR statement which will show item codes with a certain quality OR a certain size.
    The following query is the same as above but switched the OR to AND:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand] FROM OITM T0 WHERE T0.[U_Quality] = [%0] AND T0.[U_LengthFT] =[%1]
    This query provides me with the correct values but will not work if one of the user defined fields is not filled out.
    How do I go about getting the results I want and not having the user fill out all the UDF's for the query to execute properly?

    I think I figured it out
    SELECT T0.ItemCode, T0.ItemName, T0.OnHand
    FROM OITM T0
    WHERE (T0.U_Quality = '[%0]' OR '[$0]' = '0') AND (T0.U_LengthFT ='[%1]' OR '[%1]' = '0')
    SAP must be defaulting empty user input field values to "0"
    I tried the above query and it worked!!!
    Is there anything you can add if I am missing something?
    Thanks, Alec.

  • Adobe live cycle form

    Hi Guru's
    I would like to know pre-requisites for adobe live cycle and is this tool installed in frontend systems (sap gui) or on sap servers and we  have only  abap stack in our landscape so please give some clarification it will be very helpfull
    Regards
    Mohammed

    These links may help you...
    SAP Interactive Forms by Adobe - ABAP Development - SCN Wiki
    adobe forms layout editor not working
    and ask basis person to install Adobe Live Cycle Designer 7.* or later to download & install in you system
    thanks
    Jyoti

  • Unable to view pdf created in Live Cycle Designer ES2-initially thought to be a user/OS issue

    Unable to view pdf created in Live Cycle Designer ES2.  I initially thought this was a user / OS issue when I created a document for someone who is new to a MAC laptop.  She could not view the document through email.  Unfortunately, I began seeing the same error in my own document folders when searching for another document showing as icons instead of a list.  I can open the file without a problem although I see the error she sees only while viewing the icons in my folder.  I am using a Windows 7 PC. Now, I also know that if the document is downloaded, it can be viewed.
    Other notes:
    If trying to access the form via the internet, the same error is seen through Chrome, Firefox, and Mozilla but NOT through IE
    Everyone seems to have the latest or a very recent READER
    The form is compatible with Reader versions 7 and up
    Again, downloading from the internet to the computer appears to allow the file to open properly
    Document cannot be viewed on the Galaxy Tab 2 via Chrome or the pre-installed Internet Browser, nor can it be viewed through the Reader after download to tablet. I did not try on an Apple iPad.
    All parties involved are up-to-date with virus protection.
    Below is a link to the exact message received when trying to open the document.
    https://www.dropbox.com/s/wmjqzwyriovg9vi/Adobe%20Error.pdf

    You're on to something KJ!  Yes the form was created in LiveCycle Designer ES2 which came bundled with my Adobe X Pro.  I began creating a new form yesterday and found that I could not preview the form, rendering this same "error" instead.  I ran a repair on my Adobe and at first it seemed to fix the issue but after making some changes to the form I tried to preview again and couldn't.  Here is what I get when I try to preview my forms in Designer ES2: 
    When I click the OK button, it then gives me that single static page as mentioned above in previous posts.
    I searched Adobe yesterday trying to figure out how I could repair the LiveCycle Designer or if there was some sort of patch that I haven't gotten but was not able to find anything.
    (Sorry for the delay in response, I've been on vacation.)
    Message was edited by: AngelaC

  • Submit Warning Live Cycle Form (with Chunk)

    Hi,
    I have created some pdf forms with Live Cycle Designer and save them in my database as base64 string.
    I created XDP with formdata and CHUNK of this pdf form from database and show this XDP on browser. This all works fine. but when user tries to Click Submit button it displays message "This document has access more then one site and might trying to share data among different location. This could be a privacy concern....."
    I understand i'm using chnuk and my base64 string (of PDF form ) is in database. but it needed. Also i am assigning the Submit URL on runtime.
    This code is written in Live Cycle button Init Javascript this.resolveNode("#event").submit.target= txtFieldSubmitURLH.rawValue + "Close.aspx";
    pls help.

    1. How are you converting from XLSX to PDF. Are you printing the file ato PDF then adding the fields after the fact?
    2. I was able to change the tabbing order using the tabbing tool (under the View menu). Moving the fields in the hoierarchy will not affect the tabbing order in this case. By default it is left to right - top to bottom. So if you move the fields on the page then it will affect tabbing order. You really shodul be doing this via the tabbing tool.
    3. On teh version that you sent it was showing a blank entry for all DDLists until you selected an item.
    Note that I am using version 9 of Acrobat/Reader and version 8.2.1. of Designer.
    Paul

  • Live Cycle Form problems - bug or user error?

    At work my assistant and I have created an interactive form from an Excel spreadsheet and then proceeded to add drop down boxes in numerous locations on the form. However, when we try to create a pdf in live cycle (8), the drop down boxes pre-populates with the first alpha-numeric character option in the drop down list, instead of a blank space, which is the default state. In addition, the tabbing between the drop down boxes becomes random and I am unable to change them. The form is six pages long, with about twenty to thirty drop down boxes on each page (I think - I don't have the form with me now - on my work computer). Either way - it is a pretty big form. The weird part is that when I split the form in smaller sections (i.e. one page at a time, the problems described above does not happen. I also have numerous other (shorter) forms that work just fine. Is there some sort of size or complexity limitation that is causing this, or is there another way to get around this? The only thing I could do so far to get it to work is to remove the drop down boxes and just make them text entry fields. Any advice would be appreciated.

    1. How are you converting from XLSX to PDF. Are you printing the file ato PDF then adding the fields after the fact?
    2. I was able to change the tabbing order using the tabbing tool (under the View menu). Moving the fields in the hoierarchy will not affect the tabbing order in this case. By default it is left to right - top to bottom. So if you move the fields on the page then it will affect tabbing order. You really shodul be doing this via the tabbing tool.
    3. On teh version that you sent it was showing a blank entry for all DDLists until you selected an item.
    Note that I am using version 9 of Acrobat/Reader and version 8.2.1. of Designer.
    Paul

  • PayPal and Live Cycle Forms

    I have a calculated "Total Amount" field on a Live Cycle generated form.  I would like to take that calculated value and export it to our payment pages on PayPal's secure online network.  On our website, we simply add some code to the page and, when clicked, the button takes you into PayPal's secure pages.  Is there a way to accomplish this in a Live Cycle generated form?  Do I convert the html code into xml?
    Please help - I am a novice user and, although I am learning quite a bit, I still have miles to go in this program.    We are a small not-for-profit organization with very limited resources. Any and all help will be appreciated.  Thanks very much.

    Dan, I've been thinking about this.  A couple of questions about your form. First, have you tested the submit form email functions, and does it work properly?  Second, do you have the ability to build a web page that can redirect to PayPal when it's accessed?
    I'm thinking that we can modify your form to use script behind a regular button rather than the stock email button.  First the script would fire off an email, then it would redirect to the url of the web page that you build, which can forward to PayPal.  If you need info from the form it can be included in the url as a parameter and the web page can grab it.
    Another idea would be to go directly to PayPal from the form, without the web page middleman, but I don't know what is done behind the scenes on your web site to get there.
    First, I'd like to make sure that changing the email method still works the same way as the old method of using the email button.

  • Fill out live cycle forms

    How can I fill out adobe live cycle forms

    Currently, Adobe Reader mobile products (Reader for iOS, Android, Windows Phone) do not support static or dynamic XFA forms created with Adobe LiveCycle Designer.
    The following blog post by Jeff Stanier (Adobe LiveCycle Designer Product Manager) explains the reason why XFA forms are not supported on mobile.
    Adobe Reader Mobile and XFA forms from LiveCycle Designer
    You can use the desktop version of Adobe Reader on a Windows or Mac computer to fill out XFA forms.
    Sorry for the inconvenience.

Maybe you are looking for

  • Sharing an iPhoto Library over an external drive with multiple Macs

    I have a library of photos that is around 30 GB. All of the photos are already on an external drive, which is accessed through Xserve, and I have begun creating an iPhoto library on that same external drive. I have seen mixed opinions on whether or n

  • Free Ipod Video Converter for Windows

    Ok, a lot of people are talking about using an Ipod converter to switch the format of the video so you can put it on the Ipod. However, when I searched it on google, a bunch came up. Could you help me and tell me which one is the best or better one t

  • 1 of 5 custom tones won't work with 'Text Tone'

    I have managed to create 5 custom tones that are now on my iPhone 5. All five of the tones work for the 'Ringtone' but only 4 out of the 5 work for the 'Text Tone'. This is more about a challenge to find the reason than anything else, because I can g

  • AS3 gallery with xml written from php/mysql

    I am creating an Image Gallery for products for a company. When you click on a product, it takes you to a page with description, images, etc.. I have all the data, including file names, on a MySQL server. I use php to load the data, and write a gener

  • Jdbc-odbc java error using SQL adapter in o9iASWireless

    I've used the SQL adapter in the previous releases of wireless without any problem. Most of the time I would use it for all the wireless PLSQL applications in the Oracle database and it works very OK. I have also used it to connect with a SQLserver d