Reading offline form from mailbox and processing with scheduled job.

Hi,
i'm trying to prepare an application that runs scheduled on portal.
This applcation will get attached .pdf form form mailbox and parse and process it.
I can receive attached pdf form from mailbox. And i can develop a scheduled application for portal.
My problem is to parse into fields the pdf form with java to use in scheduled portal app.
Thanks.

hi Chandra,
I store the url in one of hidden field in form, then copy javascript below to click event, button control type: Regular.
just replace all the "<>" in the code below.
var message;
var response;
// The name of the data connection will be pulled from the WSDLConnection name in the ConnectionSet packet
var sWSDLName = <DataConnection name>;
// clone, modify and execute the connection.
var vConnection = xfa.connectionSet[sWSDLName].clone(true);
vConnection.soapAddress.value = <url>;
// Execute the connection, without remerge data after the result.
  var ws_rc = vConnection.execute(true);
for multiple data connection, you have to repeat these code with replace different data connection name and it's url address.
you may use script object (something like subroutine).
Regards,
Kathy Lau

Similar Messages

  • Read PDF form from email attachment

    Hope someone is able to help on this one...
    We are using a pdf form at work to gather some feedback and the user will be submitting the form via email...
    Using outlook 2003 I had a crack at writing a vba module to read the pdf form from the email attachment to update into an excel spreadsheet
    Is it possible to read pdf forms from the email attachment with outlook vba? Or does the attachment need to be saved to a directory first?
    I have in the past done a vba module to save the pdf form attachments to a directory and then using acrobat and it's in-built form data collection tool and exported as a csv, but this feedback form will be an ongoing thing that will be updated daily - and to minimise handling would like to run the outllook macro that reads straight from the email attachment instead of doing another 3 or so steps...
    Below is the snippet I am using - it's a mashup of different code I've found on the net
    Sub Feedback()
        On Error GoTo Feedback_err
        'Dim ns As NameSpace
        Dim objNS As NameSpace
        'Dim Inbox As MAPIFolder
        Dim objFolder As Outlook.MAPIFolder
        'Dim SubFolder As MAPIFolder
        Dim objExcel
        Dim oBook
        Dim oSheet
        Dim gApp As Acrobat.CAcroApp ' In Tools > References > Checked all Acrobat Libraries in VBA > Tools > References
        Dim pdDoc As Acrobat.CAcroPDDoc
        Dim jso As Object
        Dim Item As Object
        Dim Atmt As Attachment
        Dim filename As String
        'Dim i As Integer
        Dim myOrt As String ' Added 13/1/2010
        Set objApp = CreateObject("Outlook.Application")
        Set objNS = objApp.GetNamespace("MAPI")
        Set objFolder = objNS.PickFolder
    ' Check subfolder for messages and exit of none found
        If objFolder.Items.Count = 0 Then
        'If SubFolder.Items.Count = 0 Then
            MsgBox "There is no Feedback emails in this folder.", vbInformation, _
                   "Nothing Found"
            Exit Sub
        End If
    ' Check each message for attachments
        Set objExcel = CreateObject("Excel.Application")
        Set oBook = objExcel.Workbooks.Open("G:\Path\Filename.xls")
        Set oSheet = objExcel.Worksheets(1)
        oSheet.Range("A2").Select
        Set gApp = CreateObject("AcroExch.App") ' make acrobat session
        Set pdDoc = CreateObject("AcroExch.PDDoc")
        Set jso = pdDoc.GetJSObject ' set the Javascript object via this way we can fill in the PDF document fields
        For Each Item In objFolder.Items
            For Each Atmt In Item.Attachments
                If Right(Atmt.filename, 3) = "pdf" Then
                    Do
                    If IsEmpty(objExcel.ActiveCell) = False Then
                        objExcel.ActiveCell.Offset(1, 0).Select
                    End If
                    Loop Until IsEmpty(objExcel.ActiveCell) = True
                        objExcel.ActiveCell.value = jso.getField("CurrentDocDate").value
                        objExcel.ActiveCell.Offset(0, 1).value = Item.Session.CurrentUser
                        objExcel.ActiveCell.Offset(0, 2).value = jso.getField("txtJobNo").value
                        objExcel.ActiveCell.Offset(0, 3).value = jso.getField("rbStatus").value
                        objExcel.ActiveCell.Offset(0, 4).value = jso.getField("rbFeedback").value
                        objExcel.ActiveCell.Offset(0, 5).value = jso.getField("txtComments").value
                End If
            Next Atmt
        Next Item
        oBook.Save
        objExcel.Quit
    Feedback_exit:
        Set Atmt = Nothing
        Set Item = Nothing
        Set objNS = Nothing
        Set pdDoc = Nothing
        Set objExcel = Nothing
        Set jso = Nothing
        Exit Sub
    ' Handle Errors
    Feedback_err:
        MsgBox "An unexpected error has occurred." _
            & vbCrLf & "Please note and report the following information." _
            & vbCrLf & "Macro Name: Feedback" _
            & vbCrLf & "Error Number: " & Err.Number _
            & vbCrLf & "Error Description: " & Err.Description _
            , vbCritical, "Error!"
    Resume Feedback_exit
    End Sub
    I get a vba error 91 "Object Variable or With  block variable not set"
    Cheers
    Ben

    hi Phani,
    with regard to your problem I would suggest you to please go thru this link.
    Hope this would be helpful to you.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/offline%20interactive%20pdf%20form%20using%20e-mail.pdf
    Thanks,
    kris

  • How to send an  email to external user (offline form) from se38

    Hi all
    how to send an  email to external user (offline form) from se38 and upload the same from recipent.
        we have sent mail using scripts and smartforms but couldnt do here. It will be helpful if you can give us any sample code
    regards
    mohammed

    Hi,
    Have a look at this thread [Re: Sending PDF forms (created using SFP) as Email Attachment]  i explain all the solution with a sample code .
    Hope it's help you
    regards

  • Exchange 2010 disconnect AD user from mailbox and reconnect the mailbox to a new copy of the same user with a different username

    How can i get the following done:
    Exchange 2010 disconnect AD user from mailbox and reconnect the mailbox to a new copy of the same user with a different username?
    i nmust do this for 16 users TODAY, SO PLEASE HELP ME OUT HERE.
    Thanks in advance!!
    kind regards,
    Rene Veldman
    System Administrator Teidem bv, The Netherlands.

    Rene,
    Why are you not changing the username of the existing account, instead of deleting the existing one and creating a new one?
    If you truly need to delete and create new, you can save the GUID for the mailbox (Get-MailboxStatistics <mailbox alias> | Fl MailboxGuid), mail disable the existing account (Disable-Mailbox <mailbox alias>
    will work), clean the mailbox database it was hosted on (Clean-MailboxDatabase
    <database name>), then create your new account and recover the existing mailbox to that new account (Connect-Mailbox -Identity <Guid from before> -Database <Database name> -User <SAM account name of new account> -Alias
    <what you wish to set the alias to>).  In PowerShell, for all steps, you would do the following:
    $MbxAlias = <mailbox alias>
    $NewMbxAcct = <SAM Account Name for new account>
    $NewMbxAlias = <new alias for mailbox>
    $DomCtrl = (dir env:\LOGONSERVER).Value.Substring(2)
    $MbxGuid = (Get-MailboxStatistics $MbxAlias -DomainController $DomCtrl).MailboxGuid
    $MbxDb = (Get-Mailbox $MbxAlias -DomainController $DomCtrl).Database
    Disable-Mailbox $MbxAlias
    Clean-MailboxDatabase $MbxDb
    Connect-Mailbox -Identity $MbxGuid -Database $MbxDb -User $NewMbxAcct -Alias $NewMbxAlias -DomainController $DomCtrl
    You will need to supply the information in bold in the above commands, and you will need to create the new account before you run the above commands.  I include direct use of a specific domain controller so you won't need to worry about replication. 
    If you are changing the account from one domain to another, this will not help, and you will need to wait for replication throughout the process, running the commands individually.

  • I created a pdf form from a Word doc with 9 pt aerial font formatting; the text on the pdf form is aerial 9 pt, but the fields are formatted in courier 12 pt - How do I reformat the font in the fields??

    I created a pdf form from a Word doc with 9 pt aerial font formatting; the text on the pdf form is aerial 9 pt, but the fields are formatted in courier 12 pt - How do I reformat the font in the fields??

    You can set up a temporary button (or link, bookmark, etc.) and add the following JavaScript action:
    // Mouse Up script for a temporary button (or bookmark, etc.)
    // Change the font and font size for all text fields in this document
    for (var i = 0; i < numFields; i += 1) {
        var f = getField(getNthFieldName(i));
        if (f.type === "text") {
            f.textFont = font.Helv;
            f.textSize = 9;
    It also sets the font size, but you can remove that line if you don't need to do that.

  • File Adapter - Reading 2 files from sender and one file to receiver

    All - I am looking for a best solution for reading two files from sender and generating one file to the receiver.
    Here is the scenario
    Sender file s - A is a master file. B is a detail file; B will have a one to many records for each record of File A.. that is the relation ship between 2 files..  I am looking for a better solution to
    Example
    Input:
    File A will have a record like "summary1 ABC 1234"
    File B will have a record like "Detailfor Summary1 CDF 8679"
    Output:
    File C shall have a record "consolidatedofSummary&Detail ABC 1234 8679"
    1) read records of master row and detail row from these 2 files
    2) do the mapping to the receiver output format which it is creating for records with some harcoded values and based on the values from master and detail rows of sender file
    if I can accomblish reading sender files and do the mapping to the receiver , assume that mapping to the receiver format would not be cumbersome.
    please help me...
    Thanks

    Hi Gopal,
    Ur approach to the interface is perfect.... Go ahead.
    For selecting multiple files in source use Advanced Selection for files.. and specify the directory paths and also the file name shema...
    This will fetch the 2 files into the integration engine... then u map the 2 source files to one target file(2:1 mapping).
    Specify accordingly the receiver side FCC and test it end to end...
    If u face any prblm post here... some1 will help u out..
    Babu

  • Retrieve message that was accidentaly deleted on Mailbox and handheld with vital info in it

    Is there anything I can do to get a message back that i need to repoly to and accidentaly deleted on both the handheld as well as the mailbox at my e-mail address.  I am in a panic.  Please help!

    well that was my next bet. does the message normally disappear from deleted items as well, when you delete from mailbox and handheld?
    anyhow, if the message is not in deleted items, your only option is to contact  your email service provider, nothing can be done on BB side.
    Click on KUDOS to appreciate our efforts and mark the thread RESOLVED if your issue is resolved.

  • When I try to share a project to theater I get the message Your Theater could not be opened.There was a problem reading your movies from iCloud and the project does not share. Can anyone help?

    When I try to share a project to theater I get the message Your Theater could not be opened.There was a problem reading your movies from iCloud and the project does not share. Can anyone help?

    Set up iMovie Theater and iCloud
    In order to take full advantage of the capabilities of iMovie Theater, you must be signed in to iCloud. If you are signed in to iCloud, movies and trailers shared to iMovie Theater are automatically uploaded to iCloud. You can also turn off automatic uploading, and upload just the movies and trailers you want, or delete individual movies and trailers from iCloud. For more information about the Theater, see iMovie Theater overview.
    If you sign out of your iCloud account on your Mac, all iCloud movies disappear from the Theater, but they are not deleted; the movies reappear when you sign in again. If you ever run out of space in iCloud, an alert icon appears in the top-right corner of your movie, indicating that you can’t upload new movies. For more information, click the icon. After you upgrade your iCloud storage or clear space, your movies automatically appear in iCloud again.
    Hide
    Set up automatic iCloud uploading
    Choose Apple menu > System Preferences, and click iCloud.
    Make sure you’re signed in, and then select the Documents & Data checkbox.
    Click the Options button next to Documents & Data.
    Make sure the iMovie checkbox is selected.
    In iMovie, choose iMovie > Preferences.
    Select the “Automatically upload content to iCloud” checkbox.
    To turn off automatic uploading, deselect the checkbox.

  • I need help integrating Microsoft Office, Outlook and Calendar with my job and is it possible

    Ok guys I am new to the iphone 4s. I just dumped my Blackberry after 10 years. I need help integrating Microsoft Office, Outlook and Calendar with my job and is it possible? Also I need it to automatically push email and appointments to my phone? I will buy any app just need to know which is best for work environment. Here is what I am thinking about doing. http://www.groovypost.com/howto/apple/sync-iphone-or-ipod-touch-calendar-and-con tacts-with-google/ Is this the best way? For personal use I am using paid G whiz app

    I use Google Calendar Sync to sync my work Outlook calendar to a gmail account, then sync that to my iPhone.  It works well for me for the past couple of years.
    As far as mail itself, just ask your it folks for settings for remote access to your exchange account, and then set it up on the phone.
    As far as working with Office docs, to be able to actually edit them and such, look in the app store for DocsToGo or QuickOffice - they both are good but each has it's pros and cons, so on balance it's down to mere preference i think.

  • HCM forms and process with single workflow

    Hi Experts,
    Can we use single workflow for multiple form scenarios?
    Actually we have some 10 scenarios with 20 forms. We planned to combine all the scenario's in a single workflow and use it in different form scenario.
    Is it possible or we need to create a separate workflow for each process?
    Thanks in advance,
    Helps will be appreciated.

    Thanks for the reply Rick.
    For normal workflows its fine. I would like to know for HCM forms and process will it allow or not?
    HCM forms and process framework has come limitation's. Please check the below link.
    http://help.sap.com/saphelp_erp60/helpdata/en/42/f2cd04249b3268e10000000a1553f6/frameset.htm
    So I doubt will it make any issues.
    Thanks.

  • I have read 118 files (from a directory) each with 2088 data and put them into a 2 D array with 2cols and 246384row, I want to have aeach file on a separate columns with 2088 rows

    I have read 118 files from a directory using the list.vi. Each file has 2 cols with 2088rows. Now I have the data in a 2 D array with 2cols and 246384rows (118files * 2088rows). However I want to put each file in the same array but each file in separate columns. then I would have 236 columns (2cols for each of the 118 files) by 2088 rows. thank you very much in advance.

    Hiya,
    here's a couple of .vi's that might help out. I've taken a minimum manipulation approach by using replace array subset, and I'm not bothering to strip out the 1D array before inserting it. Instead I flip the array of filenames, and from this fill in the end 2-D array from the right, overwriting the column that will eventually become the "X" data values (same for each file) and appear on the right.
    The second .vi is a sub.vi I posted elsewhere on the discussion group to get the number of lines in a file. If you're sure that you know the number of data points is always going to be 2088, then replace this sub vi with a constant to speed up the program. (by about 2 seconds!)
    I've also updated the .vi to work as a sub.vi if you wa
    nt it to, complete with error handling.
    Hope this helps.
    S.
    // it takes almost no time to rate an answer
    Attachments:
    read_files_updated.vi ‏81 KB
    Num_Lines_in_File.vi ‏62 KB

  • Reading each value from spreadshee​t file with delay (multiple rows and columns)

    Hi,
    a) I want to read EACH VALUE from a spreadsheet file having multiple rows and columns WITH DELAY. I am attaching my VI and sample datalog file for reference (tempsensor.txt).I need to do so because as soon as I read put ON the Sensor button on front panel, LV reads all the values at one go. I need the values for each temperature to be displayed after a delay.
    b) Secondly, I would like to read another file containing the state of four antennas (deployed:1; undeployed:0). I am logging state of each antenna in each column of the file(magnet.txt) I need to have four LEDS on front panel to display state of the antennas. I dont know what I have done for antennas in my VI is right or wrong. I guess thats rhe wrong way to approach the problem. Please help!!!(column1: Antenna1 state ; Column2:Antenna2 state.. and so..on..)
    Any help would be greatly appreciated!!
    Thanks in advance,
    Ratnesh
    FYI: The first column in my datalog file represents timestamp(number of seconds elapsed), second column: reading for temperature sensor 1, third column: reading for temperature senosr 2, and so on. I am using approx. 11 temperature sensors.
    Also, I have generated the log files for the reference purpose only. They do not represent the actual values. They are far away from actual values.
    Attachments:
    01032005.zip ‏30 KB

    Look at this modified version of your VI. After looking at it, I determined that a shift reggister was not required in this case.
    Lynn
    Attachments:
    MultiSensors.2.vi ‏85 KB

  • Subscribe event and processing with data

    Hi.
    We made a portal component with DynPageWithJSP model and this program subscribe event from other iview.
    Other iview trigger event and store Data using data bag.
    When event trggered my portal component, load data and I wan to process with this data in PAI routine.
    So, Here is JSP file.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="SalesOrderBean" scope="application" class="com.sap.training.portal.SalesOrderBean" />
    <script>
    function eventFired () {
         var Cust_No = EPCM.loadClientData('urn:com.sap.training.portal','Cust_No');
         var Sales_Org = EPCM.loadClientData('urn:com.sap.training.portal','Sales_Org');
         alert(Cust_No + " " + Sales_Org);
         var funcName = htmlb_formid + "_getHtmlbElementId";
         func = window[funcName];
         var ipField1 = eval(func("Cust_No"));
         ipField1.setValue(Cust_No);
         var ipField2 = eval(func("Sales_Org"));
         ipField2.setValue(Sales_Org);
         var form = document.all(htmlb_formid);
         form.submit();
    EPCM.subscribeEvent('urn:com.sap.training.portal',
                        'SalesOrder',
                        eventFired);
    </script>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId">
              <hbj:inputField id="Cust_No" type="string" maxlength="20" value="" jsObjectNeeded="true" >
                 <% Cust_No.setVisible(false);%>
              </hbj:inputField>
            <hbj:inputField id="Sales_Org" type="string" maxlength="20" value="" jsObjectNeeded="true" >
                 <% Sales_Org.setVisible(false);%>
            </hbj:inputField>
            <hbj:textView id="welcome">
                 <% welcome.setText("Hello, " + SalesOrderBean.getCust_No() + " from " + SalesOrderBean.getSales_Org()); %>
            </hbj:textView>              
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Above code, I checked portal compoent load data when event trigger. (in statement : alert(Cust_No + " " + Sales_Org);)
    After then, I try to access that data using following code.
        public void doProcessAfterInput() throws PageException {
              InputField myInputField1 = (InputField) getComponentByName("Cust_No");
              if (myInputField1 != null) {
                   this.Cust_No = myInputField1.getValueAsDataType().toString();
              InputField myInputField2 = (InputField) getComponentByName("Sales_Org");
              if (myInputField2 != null) {
                   this.Sales_Org = myInputField2.getValueAsDataType().toString();
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              IPortalComponentContext myContext = request.getComponentContext();
              SalesOrderBean myNameContainer = (SalesOrderBean) myContext.getValue("SalesOrderBean");
              myNameContainer.setCust_No(Cust_No);
              myNameContainer.setSales_Org(Sales_Org);
    I can't acess it.
    Is there any problem ?
    Welcome to any comment.
    Regards, Arnold

    hi arnold
    try placing submit button...and use onClientClick="eventFired" in jsp file...try this out...
    hope it works fine...
    regards,
    purush

  • Need to run popup from pl/sql process with a twist

    I am trying to do the following:
    User comes in and selects a date/time for a process to be started at a certain station. User then goes to click create button. Either on the exiting of the date/time picker or the click of the create button, I would like to run a process to determine if there is already something scheduled for that time/station. If there is already something scheduled, I would like to alert them to the fact and confirm if they want to shift the exiting item around and have the just entered item go in it's place..
    Trying to do this in APEX 4.02, Oracle 11g database..
    Thank you,
    Tony Miller
    LuvMuffin Software
    (281) 871-0950

    Luis,
    Thanks for the input.. What I am trying to do is this:
    User comes into page and selects a item to process, then a workstation and a start time & end time for the processing
    After the start and end times are selected I am developing a dynamic action to alert them if a process is already scheduled
    ** NOW ** here is where it gets interesting.. If a item is already scheduled, the want to bump that item from that time & workstation and put the just entered item into the schedule.
    I am looking at a dynamic action, but do NOT yet have the knowledge to do multiple things in it (Only if this is a NEW item):
    I know how to query the table to confirm if there is already and item with the workstation & start-end time period
    Need to see how to generate a popup (confirmation) to confirm they want to bump the existing entry
    I know how to generate the update statement to update the existing item.
    Thank you,
    Tony Miller
    Webster, TX
    If vegetable oil is made of vegetables, what is baby oil made of?

  • Windows media Player suddenly can't read some of my MP3, and only with one user account !!!

    Hi!
    here is my problem:
    I have a lot of MP3 in my W7 personnal computer at home. I read MP3 everyday with WMP and all was working fine, until some days ago. Some of my MP3 can't be read by WMP. I've looked at their properties, but there is nothing wrong, compared to others
    MP3 that I can read.
    The "unreadable" files are correctly read by VLC. So they are not corrupted.
    When I swtich to an other user, the same MP3 are read correctly with WMP. (Both usersd are admins)
    My MP3 are présents on two computers at home. When I connect from my second computer with a
    \\computername\c$, I can read these files. So the files are definitivly OK. But when I connect from my first computer to the second one, I can't read the MPS that have the same name! it's absolutely strange!
    I've tried to uninstall WMP, to delete all files related to WMP in my Appdata folder, I have even tried the FixIt from Microsoft, but any of these steps were helpful.
    I've copied the "unreadable" files from the Music folder to my desktop, allways the same issue.
    I've disabled my Antivirus, but without any results. I've tried the system restore, idem.
    My computer is running W7 32 bits, SP1, all updates installed regularly.
    Please help me, I want to understand what has happened!!! :)

    Hi Yolanda,
    the error message is inside a popup: (French trnaslation) "Windows media Player encountered an error and will close." I have the choice beetween "CLOSE" and "HELP ON THE WEB".
    Of course the "help" is totally useless....
    I don't see any troublshooter related to "media player". The only troubleshooter where I can choose Media player is for the "compatibility mode", so it's not helpful. On the "audio and devices" troubleshooter I see "read
    a DVD with Windows Media Player", but that's not my case.
    I've already done the last step. I copy the MP3 from my second computer to the "problematic" one, and I can't read my file. But, on the second computer, i can read this MP3 so the issue is ONLY when I try to read this file with my Windows session.
    (in the same computer, with the administrator session, I can read all the files).
    To put it in a nutshell:
    on computer A logged as CEDRIC i can not read the mp3 called SUPERSONG (it's an example lol)
    on computer A logged as administrator, I can read the SUPERSONG
    on computer B logged as CEDRIC (other local account but same name) I can read the SUPERSONG mp3 that is present in the music Library (that is not the same file, but it's a file with the same name, and of crouse this is the same song). (all my MP3 are copied
    from computer A to computer B in case of failure on one of the computers)
    on computer A logged as CEDRIC, if I do a
    \\computerB\c$\...\SUPERSONG I can not read it.
    I know this is complicated to explain, but if I ask to the Microsoft community that is because I don't know what to do ;) ;) ;) 

Maybe you are looking for