What do I do to close eform on screen and display response of web service in another screen.?

Hi,
I am trying to build following functionality.
I want to submit form to a web service through SOAP request on click of a button.
I want to display response of web service like “form has been submitted successfully” on screen.
What has been achieved.
I am able to submit form to an adobe web service passing base64 string to adobe process.(see the script in image#1).
When I receive base64 string in adobe process, I am able to re-generate document (using getDocFromBase64(/process_data/@inputStr) ).
After that I am returning a message string to as response “Form submitted successfully”.
When I get the response I populate response to a text field variable (Out Str). See image#2
Problem/Desirable functionality.
I want to close this eform and display the message “form has been submitted successfully” on another page in browser so that it depicts to end user that form has been submitted successfully with confirmation.
What do I do to close eform on screen and display response of web service in another screen.?
Image#1
Image#2

Method1: This method only works in same PDF window.
On the click of the submit button, based on the webservice result we can close the PDF. As you already having in the "Out Str", this variable having detailed message kind of thing, so it would be easier if you have one more output variable to know if this submission is success or failure or can use the "Out Str", it self to compare and close the PDF.
Here i am using "strResult" to hold webservice success or failure using true/ false values.
Get the "strResult" value from binded field of webservice response and compare and close or display messages based on requirement.
var strResult = YourFieldname.rawValue;
                    if(strResult != "" && strResult != null){
                              if(strResult.toUpperCase() == "TRUE"){
                                        xfa.host.messageBox("Successfully Saved the Data.", "Submit Confirmation", 3,0);
                                        //Close the PDF
                                        app.execMenuItem("Close");
                    else{
                              xfa.host.messageBox("Failed to Save the Data.", "Submit Confirmation", 3,0);
If the result need to show in separate window and having LiveCycle process connected to PDF via. webservice or REST:
Method2. If the PDF inside the browser
Type1 - You can set the process output is document variable, this PDF may contain your static/dynamic message and this PDF. But with this method result PDF opens in same window, host pdf will be disappeared.
Type2 - You can set the process output is string variable, this STRING may contain your static/dynamic message. In this method the string will be appered in the same PDF window, host pdf will be disappeared.
Method3. If the PDF is stand alone (not opend in any browser)
Type1 - You can set the process output is document variable, this PDF may contain your static/dynamic message and this PDF. But with this method result PDF opens in new window, host pdf will be also stayed and may make readonly after submission success.
Type2 - If the process output is string, it cannot handle this situation, may get the content type exception while receiving the result string, because.
Used all of the above methods in various situations and it worked without any issues.
-Raghu.

Similar Messages

  • What happened to the Getting Close New Year post and why?

    Is someone going to tell us why this post was deleted? Or is it just my system?
    Getting close.
    Then we will know.

    Thanks for everyone's comments.
    What is also funny is I was sure this post was also deleted after I posted it as I could not see it. I figured I was being blocked or kicked off the forum. But then this msg shows up 10 hours later when Monkey first replied, and I could post later when I
    tried. Go figure.
    But the forum itself was being goofy at the time, as it has been lately.
    I just thought I must have broken a rule by putting (c) 2015 Sandia Software in the code I posted as thats what Razerz and I had posted about just before the entire thread disappeared. So I was hoping the deletor would tell us. If that is a no no then we
    should discuss it.
    On that topic, I think the latest is that when you post on a public board, you have the copyright from that moment whether you claim it or not. There was a case about it. I am going from memory. And am not a lawyer. But I do know something about it and I
    slept in a hotel with a lawyer one time (not the same room Monkey). I started putting (c) in somethings as I thought it might help some people realize they cant turn it in for homework or a PHD. The copyright case came up when someone somewhere posted a quite
    good something and then someone else started posted it claiming it was theirs. So the OP sued and won. As I recall. I could be wrong.
    However it appears the (c) had nothing to do with it.
    Its like what Crazy mentions, we do put a lot of time on here, often just to get a "thats not what I wanted" answer.
    I know I have clicked on "helpful" before when I did not mean to so who knows.
    Its no big thing to me personally. I just post these things for fun and to show off and if someone does get some value then good. I learned the important bits of code I posted from this forum.
    So I am moving on unless someone is really wanting to see the code again (I emailed it to Monkey).
    Thanks,
    Tom

  • Close/Remove a frame and display another

    I have a frame with a JButton.
    when the JButton is clicked i am displaying a new frame (By calling the instance of a GUI class).
    Now i want to close/remove the old frame, once the new frame is displayed.
    Can anybody help me out?
    -Achyuth B

    both are entirely different frames.
    this is the first time i am doing Swings program. And I am not sure whether the way i am doing is correct or not.
    Do tell me if there is a better approach.
    this is my login screen class.
    public class LoginScreen
         public static Container container; //i made this static so that i can call this from other class with out creating the object of class
         protected static JTextField txtLoginId, txtPassword; // made staic as i can access easly from other class
         public void createGUI()
              JFrame frame = new JFrame();
              container = frame.getContentPane();
              container.setLayout(new GridBagLayout());
              GridBagConstraints c = new GridBagConstraints();
              JPanel panel = new JPanel();
              panel =  createLogin();     //this panel displays a login id and password TextBoxs.
              c.gridx = 5;
              c.gridy = 6;
              c.anchor = GridBagConstraints.CENTER;
              container.add(panel, c);
              panel =  createdButtons(); //the submit button
              c.gridx = 5;
              c.gridy = 7;
              c.anchor = GridBagConstraints.PAGE_END;
              container.add(panel, c);
              frame.pack();
              frame.setLocation(190, 120);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.show();
         private JPanel createLogin()
              //create & return panel
         //other functions
    }

  • What happened to the icon that helped doenload music and video from a web p

    I forgot what it was called, but it is no longer there . It is not in the customize tool bar option either. I think it began with c?

    Greetings,
    I believe you're mistaken. There's never been an icon to download music or video from a web page in Safari. Maybe you installed something that put an icon there before you updated to Safari 4.0.3?

  • My apple mail 4.5 is not displaying my gmail but it will send from Apple mail. What can I do to get it to receive and display

    I can't get my gmail to display on my Macbook Pro Mail 4.5. It appears to be synching and it shows on the top that there are messages but they do not display. It will allow me to send emails but it does not display received emails. Any suggestions?

    Have you tried resetting the iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • If you close magic jack app and it's not running in the backround then the pod touch 4 wont' ring right?

       I might have put this question in the wrong catergory if you think it would be better asked in the app category please let me know but I know this is the general board for most main questions.
        HERE'S WHAT I READ"
       Most of the apps showing in the Recents tray are not actually running. Very, very few apps are doing much of anything in the background. The only ones that are likely to be draining your battery would be apps that play music or access location services. Unless you're noticing unsual behavior from the phone, it's not really worth the effort to go quitting everything. Last time I counted, I had about 80 "recently used" apps showing.  I have no issues with battery life.
       So if if I have Magic Jack open and I just hit home button once then it will ring but if I close it by double clicking the home button and deleting it to close it would it still ring?

       Thanks for your response IIIaass,
       I have a couple of questions, I was under the notion that when you simply clicked the home button once the app is closed but I've heard different.
       1)   So if you have an app open and you click the home button once and the screen shuts down it's still running in the background right. But to close the app completely you have to click on the home button twice and then the the screen raises up and you tap on the app until it jiggles and you see the red minus badge and then you delete it this is closing the app completely right? Or does the app close when your viewing it and just click the home button once and the screen shuts down it would be still running in background?
       2)  So let's me see if I got it straight. In order to close an app you have to double click on the home button tap until it jiggles and tap the red minus sign badge and then that completely closed the app? Am I right on that
         Also as long as you have notification turned on you can close the app completely by double clicking on home button and delete the app to close it and Magic Jack will still ring even though the app is completely closed because I didn't know if it had to run in the background in order for a call to come through and ring. But from what your saying you can close the app completely and as long as notification is turned on the call will still come through. See question 1 above to see if I've got it right about an app running in background and closing an app. I always thought when you were viewing an app and you home clicked one and the screen shuts down the app is closed until recently I heard it's not close until you double click and delete it from the bottom under the dock.  I just want to make sure I've got it straight!
       Thanks for your response!

  • What is the SAP ROLE to access ABAP Web Service ?

    Hi,
    I have deployed one of Function Module become Web Service in SAP Web AS. What is the correct roles to assign to external user that acessing SAP Web Service ?
    Please advise.
    Thank You and Best Regards
    FL

    SAP Role: SAP_BC_WEBSERVICE_ADMIN

  • Query as Web Services!!! What are its uses and why do we need it?

    What are its uses and why do we need it.. if other tools like Dashboard and crystal reports and Webi can connect to universe and create reports and Analytics...

    Hello  Rajsan Madhavarajan  
    Query as a Web Service (QaaWS) is a SAP Business Objects (BOBJ)  client-side tool that allows users to create and publish Web Services that can be made available over the Web.  Once these web services are created and published,  they can be consumed like any other standard Web Service in software applications including Xcelsius and Crystal Reports.   But first we have to understand what exactly is a Web Service.
    Web Service
    A Web Service is a software system that supports  interoperable interaction over a network from one computer or machine to another but is more commonly defined as a client and a server communicating data over the Web using the HTTP Protocol. Using Web Services along with Business Objects allows a live connection of data to be used in applications such as Xcelsius and Crystal Reports through a semantic layer called a Universe.
    Query as a Web Service (QaaWS)
    The two main components in QaaWS are the Client Tool and the Server.  The QaaWS Client Tool gives the end user an easy to use wizard that allows them to create Universe queries and publish them as Web Services.  Once the QaaWS is published, any user can securely access the data that the Web Service contains as long as they have access to that server. Have a look on  image below that shows the information flow to and from the server via the client.
    Advantages to QaaWS:
    Very easy to use and intuitive interface Familiar look and feel for people who have used Web Intelligence
    Leverages existing Business Objects Universes Shares metadata with Web Intelligence, Desktop Intelligence and Crystal Reports
    Maintains Business Objects Enterprise Security
    Allows live data feeds to be incorporated into Xcelsius Dashboards and Crystal Reports

  • What does this mean, " Web service is turned off. An administrator can turn it on using the Server application?"

    I'm attempting to connect to a website I've being using for 5 years plus. Now Firefox reports that the certificate is improper, and the message, " Web service is turned off. An administrator can turn it on using the Server application.", is given.
    I don't know what to do with this information. Web service is on for other websites. What is the "server application?" How can I take control and connect? I am the administrator.

    I cannot replicate on another browser. In fact, I now cannot replicate on my Firefox browser. I can only assume that the certificate problem was taken care of by the website involved. But in case this problem returns, I wonder what server application I am to use in order to turn my (?) web service on?
    Cryptic, unexplained error messages are a pet peeve of mine. It seems that Microsoft does not have a lock on such frustrating messages.

  • What happened to our web services after upgrading to 701?

    Hi,
    We started using web services on a 700 server. Looks something like this.
    SAP_ABA     700     0018     SAPKA70018     Cross-Application Component
    SAP_BASIS     700     0018     SAPKB70018     SAP Basis Component
    PI_BASIS     2005_1_700     0018     SAPKIPYJ7I     PI_BASIS 2005_1_700
    We could create a proxy in vb.net and call our SAP web services like this:
            Dim ws As New sapserver.webservice1
            Dim input As New sapserver.ZGetuname
            Dim output As New sapserver.ZGetunameResponse
            out2 = ws.ZGetuname(input)
    After upgrading to nw ep 7.1, which looks like this.
    SAP_ABA     701     0007     SAPKA70107     Cross-Application Component
    SAP_BASIS     701     0007     SAPKB70107     SAP Basis Component
    PI_BASIS     701     0007     SAPK-70107INPIBASIS     Basis Plug-In
    We no longer get the same input and ouput classes generated for us when consuming the service. It looks like it is now expected to be called like a function    ws.ZGetuname( param 1, param 2).
    We would like to be able to generate the proxy the same way as before. Any ideas?
    Thanks.

    What happened to the file numbers after switching to Photos. It would be nice to still have the file numbers show.
    You mean, the filename with the number on the card?
    Photos does not use the filenames as a title, when displaying the thumbnails. The filename will only show in the Info panel.
    Copy the filenames to the title field in the Info panel and then enable "Metadata" in the View menu.
    I wrote a script to copy the filenames automatically to the title field,  see:
    Photos for Mac: Batch Changing the Titles to the Filename

  • My ipad has a plug on the screen and itunes. i do not have a computer, try to reset it and still the plug shows up what to do?

    what to do after i uploaded ios7, i reset and the only thing that comes up the screen is a plug and itunes?  What to do?  don't have a computer

    Start troubleshooting your issue using the steps in this Apple article.
    Best of luck.

  • Black screen and then streams of what looks like unix or something ....

    I have just rebooted my imac and I get the spinney wheel and then a black screen and then reams of works walking across the screen with no end that say
    the date
    and then my computer's name and then
    MDNSR responder:
    and then it says no airport driver found
    I have tried rebooting and it has happenned twice
    what they heck is going on here????
    help>>>
    this all started just after I installed the routine update for the intel machines.

    Hello kt:
    The combo updater allows updating OS X from all levels (of OS X). An incremental updater will permit an update from one level (for example, from OS X 10.5.3 to OS X 10.5.4).
    The combo updater may be found here:
    http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx1054comboupdate .html
    Barry

  • When I click on a picture or a link, to take a closer look, I get a blank screen and it says at the top search bookmarks and history, at the bottom it says 'stopped' - what is this problem and why is it happening

    when I click on a link to complete a form, or a link to take a closer look at a picture, I get a blank screen and it says at the top 'search bookmarks and history', at the bottom it says 'stopped' - what is this problem and why is it happening ?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • My i tunes software can not detect my i pod, I check the cable, I close my i pod and I relight, but nothing happens. What should I do?

    my i tunes software can not detect my i pod, I check the cable, I close my i pod and I relight, but nothing happens.
    What should I do?

    Try:                           
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Cant download adobe flash player.What does it mean to close Firefox?

    Tried to follow instr for downloading adobe flash player but it wont download. What does it mean to close Firefox...minimize window?

    There are 2 versions of Adobe Flash:
    *an '''ActiveX version''' for IE only
    *a '''Plugin version''' for most other browsers including Firefox
    *On a Windows system, you should always update both individually.
    Check your Plugins often --> http://www.mozilla.org/en-US/plugincheck/
    *only the most popular/used Plugins are known by this page
    *page will detect only installed, '''''enabled''''' Plugins
    '''<u>Install or update Adobe Flash</u>'''<br />
    #'''<u>Using Firefox</u>''', go to the following link and SAVE the download to your desktop so you can find it later. Un-check any items on that page that you do not want to download (i.e., "McAfee Security Scan Plus":
    #*http://get.adobe.com/flashplayer
    #When the download is finished, close Firefox (File > Exit '''''OR''''' Firefox button > Exit)
    #Click or double-click on the file you just saved to your desktop
    #*In the installation window that appears, click the box to the left of "I have read and...." to place a check mark in the box
    #*The "Install" button in the lower right corner will now be highlighted, click it.
    #*The installation is quick.
    #Start Firefox and test your installation here: https://www.adobe.com/software/flash/about/
    #To update/install the ActiveX version for IE '''''only''''', repeat the process, '''<u>but use IE to go to the above website</u>'''.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

Maybe you are looking for