How can we use mode "UsePDF" in Interactive form?

Hello everybody,
I want to know that how can i use the mode usePdf in Interactive form?
My scenario is:
I have pdf form saved locally with blank fields.
I save this file after requied values in all fields.
Now i want to import this pdf file in interactive form and needs to submit this form so all the data in this pdf file are submitted to the System.
How can i do this?
regards,
Bhavik

Hi Bhavik,
you do not need to use the upload ui element, if your pdf-file which you want to upload resides in you web application project. In the following you can find Web Dynpro code snippets I use in one of my demos for displaying an uploaded pdf-file:
wdDoModifyView method of FormView:
    //@@begin wdDoModifyView
     try {
          // get interactive form element by ID
          InteractiveForm form = (InteractiveForm) view.getElement("Evaluation");
          if (wdContext.currentContextElement().getCurrentMode().equals("usePDF")) {
               form.setMode(WDInteractiveFormMode.USE_PDF);
     catch (Exception e) {
          e.printStackTrace();      
    //@@end
onPlugFromUploadView method of UploadView:
    //@@begin onPlugFromUploadView(ServerEvent)
     try {     
          // modify the context and set needed attributes
          wdContext.currentContextElement().setCurrentMode( "usePDF" );
          // extend the attribute "pdfSource" from the context to a modifiable binary type
          IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("pdfSource");
          ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
          IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
          binaryType.setFileName("evaluationForm.pdf");
          binaryType.setMimeType(WDWebResourceType.PDF);
          // add the generated pdf to the context
          wdContext.currentContextElement().setPdfSource( evaluationForm ); // byte[] evaluationForm
     catch (Exception e) {
          wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
    //@@end
If you do not want to display the data before submitting the data, then you have to use the WDInteractiveFormHelper class for extracting the form data after upload in the context. This class is available since NetWeaver04 Support Package Stack (SPS) 10. The class com.sap.tc.webdynpro.clientserver.adobe.api.WDInteractiveFormHelper contains at the moment one helper function for PDF document. Here are the details:
Constructor Detail
public WDInteractiveFormHelper()
Method Detail
public static void transferPDFDataIntoContext(byte[] pdfSource, IWDNode targetNode)
Method transferPDFDataIntoContext extracts data from a PDF document and copies the values into the Web Dynpro Context. The xml structure of the document data is applied starting from the specified target node. Usually, this node should be the same context node to which InteractiveForm-UIELement property dataSource is bound during PDF generation.
Parameters:
pdfSource - PDF document as byte[]
targetNode - target IWDNode
Hope this will help you,
Regards, Carsten

Similar Messages

  • How can i use the nested table in form 6i

    how can i use the nested table in the form 6i
    ( i.e i want to insert record into the nestred table field ).
    bye siddharth singh

    Nested tables are not supported in Forms 6i, only simple object tables.

  • How can i use Oracle intermedia with Oracle forms 9i

    Hi all,
    I have a requirment from one of our client that they want to manage a large amount of Images,by seeing the documents about the oracle interMedia we got some idea to manage this images ,but the client is alredy having a software which is been developed by Oracle forms9i and we need to develope this using oracle forms9i can anyone give us an idea that how can we make use of InterMedia through Oracle forms9i ....
    Thanks in advance....

    I am also trying to use interMedia objects with Oracle 9i forms. I've tried everything and I can't get it to work.
    So far I have a solution that loads images using WebUtil into a blob field in Forms 9i, then in a backend stored procedure I move the blob to an interMedia object. Which works, but the problem with the image item in Oracle forms is that the image format cannot be change at runtime, so the images will always be what you set at design time.
    Can someone out there please help.
    Thanks.
    Ray

  • How can i use Oracle interMedia with Oracle forms  Urgent

    Hi all,
    I have a requirment from one of our client that they want to manage a large amount of Images,by seeing the documents about the oracle interMedia we got some idea to manage this images ,but the client is alredy having a software which is been developed by Oracle forms9i and we need to develope this using oracle forms9i can anyone give us an idea that how can we make use of InterMedia through Oracle forms9i ....
    Thanks in advance....

    I will ask, but it would be good to ask in the Oracle Forms forum as well. Many tools recognize the interMedia columns and automatically handle them since they now can say "Oh, this is an image column, I know how to handle this". I am not sure where forms is in this regard.

  • Can i use deep structures in Interactive form interface?

    Hello
    I am trying to assign a standard_SAP_deep_structure to DATA SOURCE (dataSource) of Adobe Interactive Form UI Element of my_view. System is activating fine. But, when i open the Form and its assoiated interface in SFP transaction (or dbl clicking from webdynpro), i did not see all tree branches components of that standard_SAP_deep_structure, i saw only first branch with out any subbranches!
    In SE11, the standard_SAP_deep_structure looks like below,
    standard_SAP_deep_structure
    |
    | 1st branch
         |
         | 2nd branch
              |
              | 3rd branch
    But, when i saw the XML schema of the Form's interface, it looks like below
    standard_SAP_deep_structure
    |
    | 1st branch
    Thank you

    Sorry, i did not understood the above answer, Any help pls? Thank you
    I tried the that idea as below, but did not worked, still the 1st branch (node1) is not visible at all in rthe webdynpro piece
    node1---------> my_z_structure_1
        |
        | node2---------> my_z_structure_2
    Any other idea pls?
    Edited by: ABAP_SAP_ABAP on Oct 26, 2011 1:02 PM

  • How Can I Use Variables to Score Interactions?

    I've created a course. Each slide as a question/scenario and three buttons. Two wrong answers and one right. When you choose any of the buttons you get a feedback box that explains why you were right or wrong. These are not quiz slides, but I would like to use variables to score the slides if I could.
    My idea was to create a variable and call it congrats. The variable as a sum of zero. Is it possible for me to add a numerical value to that variable each time a person chooses one of the buttons?
    For example:
    I wanted to add 10 to the variable if you choose the right answer. I wanted to give the incorrect answers a  value of -5. In other words. You could either end up with 10 points on a slide if you choose the correct answer or 0 points if you choose the 2 incorrect answers and the correct answer, or 5 points if you choose a incorrect and correct answer.
    At the end, I would like you come to a slide. this slide will be based on the value of that variable at the end. Either you have a 100 or lower depending on how you did.
    I hope this isn't too confusing.
    Any and all help is appreciated.
    Thanks!

    You forgot one important detail: has the score to be transmitted to a LMS or is it only meant to be shown in the Captivate file?
    And which version are you using? The easiest way to achieve this is to use the partial scoring (and penalty) that is already available for MCQ slides with multiple correct answers.
    I have a lot of stuff on my blog about that type of scoring. Besides question slides, only interactive objects can have a score, everything you can find in the Advanced Interaction panel (F9). Here are some articles I wrote:
    Report Custom Questions - part 1 - Captivate blog
    Report Custom Questions - part 2 - Captivate blog

  • How can I use a cfwindow with a form in it to update the main page?

    This seems simple enough but I can't figure it out. My main
    page calls a query to get a list of departments. I have put this
    list in a table inside a cfdiv tag. I have an add department link
    on my page. When the user clicks on this link, I want a popup
    window (cfwindow) to display containing a form to add a department.
    Then when the user submits the form, the form should disappear and
    the main page should show the updated list of departments.
    I can't get the form to close without getting an error
    stating that there already is a window with that name and the new
    data doesn't display unless I refresh my screen.
    Here's my departments.cfm page:
    <html>
    <head>
    </head>
    <cfinvoke component="department"
    method="list"
    returnvariable="departments">
    </cfinvoke>
    <body>
    <cfwindow name="deptWindow" title="Department Window"
    draggable="true" resizable="false"
    initshow="false" height="400" width="600" x=200 y=100>
    <cfform action="processDepartment.cfm"
    onsubmit="ColdFusion.Window.hide('deptWindow')">
    Department:
    <cfinput type="text" name="deptname">
    <cfinput type="submit" name="submit">
    </cfform>
    </cfwindow>
    <a href="#"
    onClick="ColdFusion.Window.show('deptWindow')">Add
    Department</a>
    <cfdiv>
    <table>
    <tr>
    <th>Department</th>
    <th>Action</th>
    </tr>
    <cfoutput query="departments">
    <tr>
    <td>#deptname#</td>
    <td><a href="##"
    onClick="ColdFusion.Window.show('deptWindow')">Edit</a></td>
    </tr>
    </cfoutput>
    </table>
    </cfdiv>
    </body>
    </html>
    Here's my department.cfc page:
    <cfcomponent output="false">
    <cfset THIS.dsn="cf8test">
    <cffunction name="list" access="remote" output="false"
    returntype="Query">
    <cfquery name="departments" datasource="#THIS.dsn#">
    SELECT department_id, deptname
    FROM departments
    ORDER by deptname
    </cfquery>
    <cfreturn departments />
    </cffunction>
    <cffunction name="add" access="public" output="false"
    returntype="Boolean">
    <cfargument name="deptname" required="true"
    type="string">
    <cfquery datasource="#THIS.dsn#">
    INSERT INTO departments(deptname)
    VALUES (<cfqueryparam value="#Trim(ARGUMENTS.deptname)#"
    cfsqltype="cf_sql_varchar">)
    </cfquery>
    <cfreturn true />
    </cffunction>
    </cfcomponent>
    And finally, here's my processDepartment.cfm page:
    <!--- Form Field Validation --->
    <cfparam name="FORM.deptname" type="string">
    <cfif IsDefined("FORM.id")>
    <cfset method="update">
    <cfelse>
    <cfset method="add">
    </cfif>
    <cfinvoke component="department"
    method="#method#">
    <cfif IsDefined("FORM.id")>
    <cfinvokeargument name="id"
    value="#FORM.id#">
    </cfif>
    <cfinvokeargument name="deptname"
    value="#Trim(FORM.deptname)#">
    </cfinvoke>
    <!--- When done go back to the Departments listing --->
    <cflocation url="/departments.cfm">

    Hi Jeff,
    One way to do it is to write a JavaScript function that binds
    to your CFC. The CFC should both insert the user values, and then
    select all of the departments from the department table, and then
    return the query set to the page. I wrote sort of a test page which
    gets the state from the States table according to the state
    abbreviation that the user types in from a CFWindow. The table
    never gets updated, however, the result comes back from the CFC
    through AJAX, then updates the main page. You can use this same
    idea but you'll have to update your CFC a little bit. However, the
    idea is the same.
    Here's the code for my get State application. Especially
    notice the following three lines of code in the JavaScript function
    called getStates:
    var d = new getStates2(); //this is the name of your CFC
    d.setForm('form1'); //not sure if you need this, but I found
    it somewhere
    var stateName = d.getAllStates(); //the name of the function
    inside your CFC
    Anyway here's the code in full:
    <style>
    .stateClass {
    font-family: arial;
    font-weight: bold;
    font-size: 12pt;
    padding-top: 10px;
    </style>
    <cfajaxproxy cfc="getStates2">
    <script language="javascript">
    function enter_pressed(e){
    var keycode;
    if (window.event) keycode = window.event.keyCode;
    else if (e) keycode = e.which;
    else return false;
    return (keycode == 13);
    function getStates()
    if(document.form1.theState.value == '') {
    alert('Please make sure the textbox is not empty.');
    return false;
    var d = new getStates2();
    d.setForm('form1');
    var stateName = d.getAllStates();
    ColdFusion.Window.hide('stateWin');
    if (stateName == '')
    document.getElementById('stateDiv').innerHTML = 'No such
    state';
    else
    document.getElementById('stateDiv').innerHTML = 'The state
    is ' + stateName;
    </script>
    <cfwindow name="stateWin" x="100" y="100" width="400"
    height="200">
    <form name="form1" method="post" onsubmit="return
    false;">
    <input name="theState" type="text" size="5"
    onKeyPress="if(enter_pressed(event)){ getStates() }"
    />
    <input type="button" value="get state"
    onClick="getStates()">
    </form>
    </cfwindow>
    <div id="stateDiv" class="stateClass">
    </div>
    <a
    href="javascript:ColdFusion.Window.show('stateWin')">find a
    state</a>

  • How can i use an animated image in FORMS

    I like to use an animated image, means a jpg image created by a jpeg_animator, in a simple control image.
    Thanks for help.
    null

    i used an animated gif in my application.
    You could animate it, by using an activex-control (freeware). Download it from http://www.codeguru.com/atl/Gif89a.shtml.
    it works fine!

  • How can i use static image in a form

    I want to use a static image in the form I mean i need some images to show to end user and images but are static images, i was trying to copy paste image from from outside to forms but could not do it.
    Please what is the way to add static image in the form.
    regards
    Maz

    Hi
    Advice_: Pls note don't change the path of ur image cause this will hide displaying it into ur form.
    Regards,
    Amatu Allah.

  • I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Pictures taken with the device are designed to regularly be copied off the device to a computer as would be done with any digital camera.
    If you have failed to use the device as designed it may be too late to recovery anything.
    Is the device regularly backed up to a computer via iTunes?  If so, the most recent backup (when restored to a replacement iOS device) should contain all contacts and pictures as of when the backup was created.

  • Cloud storage - how can I use my .png file shared in "public mode" like a hosted file ?

    Hi every body,
    I am french and new on the forum so please be indulgent ! (for my english and my questions).
    I am working on HTML signature for my company and I have a little problem.
    to be viewed, my .png files needs to be on a server. So I remember that adobe gave me a 100giga storage for me to use.
    Cool !
    But the problem is that the link only send me to a special view of my file... a jpeg one. So when I try to copy the url I can only use the .jpg
    I want my file !
    So my question is : is it possible that the cloud storage isn't supposed to share any thing else than a miniature of my file and a download button ?
    How can I use it for my signature if I can't acess it but only download it?
    Thank you very much for your time
    Morgan

    Hi Morgan,
    You are correct.  Public link sharing works as follows:
    -  you can share a public URL to your PNG file on Creative Cloud.  The recipient of the URL can view a preview of the file and download the file in the original PNG format or JPG format.
    -  it is not possible to give other users direct access to the original file in Creative Cloud.
    For more info on sharing and collaboration options:
    https://helpx.adobe.com/creative-cloud/help/collaboration.html
    https://helpx.adobe.com/creative-cloud/help/share.html
    Thanks,
    Elba

  • How can i use Button in BEx  7.0

    Dear Folks,
    Could you help me please ..
    In BI 7.0, for BEx analyzer i see we can use button, combo box, analysis grid.
    If i have a requirement like this:
    1. I have sales report, where it has information about sales person.
    2. And i want to filter that report with the sales person that i choose from combo box.
    For that requirement, i tried to :
    1. I Create a query to Sales info-provider for displaying sales.
    2. I Create a query to either to MD Sales person / Sales info-provider in order to get Sales persons data.
    3. I assign point no 1 to Analysis Grid.
    4. I assign point no 2 to Combo box.
    My questions are:
    a. Is my techniques correct ??
    b. How can i use button to execute filter into the corresponding report ???
    c. Is there any tutorial regarding this ?? Could you share it to me please ..
    Really need your guidances..
    regards,
    Niel..

    Hi Niel,
    You can use the method you specified.
    In Bex Analyzer you have design mode where you can have the following items Button, Analysis Grid and Combo box.
    To work with the button you need to use the Command Wizard which consists of pre-defined functions, out of those select the one which suits your requirement and supply the parameters. As it is done thorugh a Wizard it would be easy to do.
    Also,
    The Button Name displays the name of the button, which is generated automatically and is unique. This name is used on the BEx Analyzer Design Toolbar menu to refer to a particular instance of the button.
    · Range u2013 Manipulate coordinates for a cell or cells in this field to move or resize the button.
    · Button Text - The text (caption) you want to display on the button. You can use this to describe the command the button executes.
    · Command Range (optional) - Specify a three-column range of cells in the worksheet that contains command parameters. In these cells, you provide the same parameters (Name, Index, and Value) as in the Static Parameters, but in the worksheet these can be variable, changing during
    navigation based on query results or on a value you manually specify.
    Button in Bex analyzer
    Regards,
    Neelesh Jain.

  • My gf is one of those ppl with the horrible habbit of downloading anything and everything the internet tells her she needs how can i use FF to better protect her from the various virus she downloads on a regular basise

    as i write this i have just restored my gf's computer back to default factory setings and cleaned the HD she has a horrible habbit of downloading anything and everything something tells her to download it her most recent actions caused her to dl a virus along with a prog called "flv tube" ive never heard of it but in less then 5 mins on google i found it to be common with viruses how can i use FF to prevent and or stop her from downloading all this crap so im not always having to fix it for her

    Public Fox: https://addons.mozilla.org/firefox/addon/3911
    Be aware that an extension can easily be bypassed by starting Firefox in [[Safe mode]] or by using the portable Firefox version.

  • HT4901 I have HughesNet with a capped amount of Internet capacity. How can I use iCloud but adjust the time it is on to conserve my Internet allowance and not have to backup my information all the time????

    I have HughesNet satellite for an ISP with a capped amount of Internet capacity. How can I use iCloud but adjust the time it is on to conserve my Internet allowance and not have to back up my information all the time?

    Thanks Roger W1,
    Yes, I was using iTunes to sync over cable without problems since orinigal purchase in 2011 and using 10.6 w/o problem. There was an "update" in Nov 2012 that crashed the sync service. I went to the Apple Store and reviewed the problem with the Geniuses there. It was discovered at that time that the update included mandated use of iCloud but enough of the un-updated code remained that he was able to patch functions to allow Microsoft Office to still sync over iTunes.
    This March (+/-) there was another "update" to 10.6 that totally destroyed the patch that was in place so there was no sync service available between Microsoft and iTunes what-so-ever. Then recently, because of some unknown process, all my notes, contacts, and calendars were erased in both my Apple utilities and Microsoft utilities.
    After many hours of frustration I was able to recover most of the information to the Apple utilities only, but those were unstable. At my visit to the Apple store it was suggested that an upgrade to 10.8 might solve the stability problem. That it did but being connected to the iCloud all the time keeps using up all my Internet time and I have nothing left to check emails or do research.
    This, to me, is not my problem but one created by Apple. I have searched the Internet and support groups and there doesn't seem to be a solution.
    The "aircraft mode" turns off all other communication functions and is not acceptable. Neither is disconnecting/turning off Airport on my MBP.
    Thanks,
    Jay

  • How can I use my iPod as source for reinstalled iTunes?

    Hello @ all.
    Unfortunately I had to completely reinstall my system (WinXP Pro PC) and lost my media library!
    How can I use my iPod as a source to copy all my songs and settings (incl. covers, aso) to iTunes?
    iPod: 30GBs Video iPod
    iTunes Version: 7.0.2.16
    can u guys help me with that?
    Thanks very much!

    The transfer of purchased content to authorised computers has been introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows posted in this thread: MacMuse - iPod to iTunes
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod, this is just a selection. Have a look at the web pages and documentation for these, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPodCopy Mac and Windows Versions
    iPod Access Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions
    PodPlayer Windows Only
    CopyPod Windows Only
    If your iPod is set to update automatically take care when connecting back to your computer and an empty iTunes. You will get a message that your iPod is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Check the "manually manage music and videos" box in Summary then press the Apply button. Don't uncheck Sync Music it will be unchecked by default when you choose the manual setting: Managing content manually on iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync again. I would also advise that you get yourself an external hard drive and back your stuff up in case you have problems again. External drives are comparatively inexpensive these days and you can get loads of storage for a reasonable outlay.

Maybe you are looking for

  • In Bex Query designer - Flat is not supported

    Hi all, In Bex query designer, While execution of the query, the following error is coming . Failed to process request; contact your system administrator Error Summary Exception occured while processing the current request; this exception cannot be h

  • Path and file name to long

    Hi I have a schema with a deep hierarchy that I am running xmlbeans on. Initially it failed to build because it couldn't find some of the class files it had generated. It turned out that the path and filename was too long for Windows XP to handle and

  • Experimenting with email/attachments

    Experimenting with email/attachments - and the problem with an ATT00001.htm attachment also appearing in Outlook/AOL recipients. is there any way to always force attachments added in any app to be placed AFTER the default email signature ie. at end o

  • Is Adobe Reader INSTALLED?

    Adobe Reader shows in control panel programs as 7.0.5 and XI, but is not on All Programs from start menu nor on my desk top or as a newly installed program. I have no way to click onto an icon to reach file. This has been very very very frustrating.

  • ACS 4.2.1 - PEAP Machine Authentication - Hostname different from PC account name in AD

    Hello! I don't really know, whether this issue has been asked before. I have to configure PEAP Authentication with ACS 4.2.1 for Windows against Active Directory. ACS ist Member of AD Domain xyz.domainname. The PC account is located in an OU of xyz.d