Detect uncommitted yet posted data in my forms session?

In our application it is common practice to use the Forms POST built-in.
Since we have our own exit-function with the application-wide look and feel we would like to catch the alert-box asking whether to save any changes.
Is there a way to either adapt the alert-box to our own look and feel or an attribute that could be utilised in order to detect uncommitted data?
We would rather not want to omit the POST logic nor log any footstep of the user.
Any hint would be appreciated.

Use parameters , set their values to 'false' for example before posting changes , and then check the status of all of the blocks in your form. Change the value of a particular parameter to true if the status of a certain block is CHANGED. To prevent from being confused name your parameters according to the block name.
And in your exit functionality test if one of the parameters is 'true' and you show your alert.

Similar Messages

  • Offline scenario - post data from saved form to SQLServer

    This is the scenario am struggling to develop. User downloads the interactive form.  Goes offline. I mean no connection to the Web Application Server. But he will have access to a SQLServer database (it may be on his machine or in his intranet). He will fill the form and save it on his local hard disk. Now, I want his saved form data to be posted to the SQLServer.  I thought about a couple of ways to do this.
    1) Is it possible to change the control type of 'Submit' button to submit and then in the URL field, call some ASP page (this page is deployed on a local IIS) and then submit the form fields to that ASP page which takes care of database connection, posting etc. So user downloads form only once. But fills it with different data each time and clicks submit. First of all, will submit button work when the form is not opened in web browser? I mean when it is saved on a local hard disk opened in a standalone Adobe Reader?
    2) Is it possible to write some java program using any APIs and extract the data from the form saved on local hard disk? It may be possible because I have the .xdp file for the form. But I dont know if there are some APIs available to do the same.
    Any inputs whether these ideas are feasible? Any other new ideas are also welcome. Thanks in advance.

    Hi Narayana,
    if you want to export xml data from Reader to local disk you can use a command:
    xfa.host.exportData("",0);
    It works like from menu Export data from Forms.
    To your second post:
    Yes, you can save form in Adobe Live cycle designer as pdf and you can open it in Adobe Reader and test it. It will work.
    In tab Submit for your button set these properties:
    Submit Format: XML Data (XML)
    Submit to URL: url of your page
    Encoding: UTF8
    Here is a sample code in c# for asp.net. Insert method save to your asp.net page and call it from method Page_Load.
              using System;
              using System.IO;
              using System.Web;
              private void save()
                   const int coniBufferLen=1024;
                   string lsTmpFile;
                   try
                        lsTmpFile="c:\adobe\body.pdf.xml.txt";  // File on local disk where to save xml data sent by Reader. IIS needs rights to write here.
                        FileStream loFS=null;
                        try {loFS=File.Create(lsTmpFile);}
                        catch (Exception e1)
                             // TODO
                             return;
                        int liCelkem=Request.ContentLength;
                        int liNacteno=0;
                        byte[] laResponse=null;
                        int liLen=Math.Min(coniBufferLen,liCelkem-liNacteno);
                        while (liLen>0)
                             try
                                  laResponse=Request.BinaryRead(liLen);
                                  loFS.Write(laResponse,0,liLen);
                             catch (Exception e1)
                                  try {loFS.Close();}
                                  catch {}
                                  try {File.Delete(lsTmpFile);}
                                  catch {}
                                  // TODO
                                  return;
                             liNacteno+=liLen;
                             liLen=Math.Min(coniBufferLen,liCelkem-liNacteno);
                        loFS.Close();
                   catch (Exception e2)
                        // TODO
                        return;
    Michal

  • Posting date in trip form (TRVFO)

    Hi,
    I would like to add a date-field in trip-form variant FOXX
    I.e a date for when the trip is posted.
    I try to use the field BLDAT, but it does not show correct on the print of the form.
    Accounting date can be used as an alternative, this is fieldname ACCDT, but same result as above.
    Any hints?
    Best regards
    K. Sire

    anoyone?

  • No Oracle SSO support for POSTing data to protected resource [yet]

    Hi,
    I am using OHS infront of JBOSS and redirecting all requests from OHS to JBOSS after SSO Authentication.
    Everything works fine except that I get 500 error when I try to post data from HTML form.
    When i click on a button on a JSP page that submits page with the Form Post, the request goes to the OHS and is not getting forwarded.
    OHS log shows the following
    127.0.0.1 - - [11/Sep/2007:08:57:23 -0400] "POST /Sample/protected/standard.do HTTP/1.1" 500 788
    Proxy_error.log shows the followin error
    [Tue Sep 11 08:57:23 2007] [error] [client 127.0.0.1] [ecid: 1189515443:10.6.2.137:268:5568:74,0] \n[OSSO] E09: No Oracle SSO support for POSTing data to protected resource [yet].\n
    Any idea?
    Thanks
    Srikar.

    This error does no occur in our dev or test environments, only production. A workaround for us was to disable SSO by commenting the line to load it in the file $ORACLE_HOME/Apache/Apache/conf/httpd.conf. The line to comment out looks like: include "/u01/app/oracle/product/mid/Apache/Apache/conf/mod_osso.conf" where the /u01/app... above is the expansion of $ORACLE_HOME/Apache/Apache/conf/mod_osso.conf.
    We do not use SSO for our application, so this is not a problem. I next plan to try to figure out why this behaves like this, so I can keep all the server configurations consistent.
    HTH,
    Mark

  • Receive POST data from another URL and process using Struts

    Hi there
    We have a website and as of now we are receiving some data from another URL which is received as an appended part of the URL. My application uses Struts and we process the received data and send back a response.
    Now my question is, I have been asked to change this behavior because there are more parameters now which cannot be passed through the URL. I am supposed to get the data from the other URL as POST data (as a form) and I have to create a new Struts action to receive this data, process it and send the response back to the requesting URL.
    Please explain me how to do this using some example code snippets.
    Thanks a lot

    Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
    In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
    Overview of Lookup
    - Lookups are used to identify/request the data from mapping program.
    - It interrupt the process and looking for data which was stored in target system.
    - It get that data and comeback to process and continue with that data.
    Types of Lookups in XI
    - JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
    - RFC Lookup: RFC lookup is used for accessing the SAP Data.
    - SOAP Lookup: SOAP lookup is used for accessing data from Webservice
    Steps to perform Lookup in Mapping
    Import package com.sap.aii.mapping.lookup.*;
    Create connection to the target Database system.
    // Determine communication channel created in ID
    Channel channel = null;
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    // Get system accessor for the channel.
    DataBaseAccessor accessor = null;
    accessor = LookupService.getDataBaseAccessor(channel);
    Build the Query String.
    Getting Result
    // Execute Query and get the values.
    DataBaseResult resultSet = null;
    resultSet = accessor.execute(Query);

  • How can i check for posted but not yet commited changes in a form

    Dears
    I make changes programmatically in a form then i post it using (Post built in).
    If the user exits the form, i make check for any changes in the form to commit it using the system variable :system.form_status
    Unfortunately the value of this system variable is 'Query' not 'Changed' because of using the post built in.
    Is ther another system variable ( or any another way ) that check for posted but not yet commited changes in the form ?
    Thanks a lot
    Mostafa Abolaynain

    I had faced similar situation. Using of package variable which identifies, what is the user's latest action.
    This is just a workaround.
    Capture what the user has performed into a variable say, PKG_VAR.ACTION,
    This will be assigned values like List L, and Create C, Update U and Saved S.
    If commit is executed,assing the status S to the variable.
    So while closing,
    IF :system.form_status = 'CHANGED' or PKG_VAR.ACTION in ('C','U') THEN     
    -- validate the data, n perform commit.
    else
    -- just close the form.
    end if;
    Regards
    Deepz : )

  • Error in posting data to buffer: CL_RSPLS_DELTA_BUFFER_B unf Form READ-06-

    Hello,
    I have a problem in executing functions in my planning folders which contain hierarchy variables in the filter of the function. 
    Whenever I run a SAP standard function which has a hierarchy variable in the function filter, I get an error meesage.  The function copies the values, and when it tries to post them to the buffer I get an error message and the planning workbook gets logged off from SAP.
    The message:
    u2022Programm Fehler in Klasse     SAPMSSY1 Methode: UNCAUHGT_EXCEPTION
    u2022Systemfehler in Programm      CL_RSPLS_DELTA_BUFFER_B unf Form READ-06-.
    It seems to me that there is an error in SAP which involves reading the hierarchy in my filter, this leads to the above mentioned error when the system tries to post the data to the buffer.
    System info:
    SAP NetWeaver BI 7.0
    We have patch level 20.
    Help regarding this problem would be appreciated.
    Regards,
    Julian

    Hello Gregor,
    thanks for your response.  The error is in the planning workbook, the transfer button doesnt work, but Save does work.
    The problem seems to be that I have a help query which runs before the plan query.  The help query has a Hierarchy user exit variable which the user cannot input values, this reads certain master data.  This is in the Static filter.  In the dynamic filter is an input hierarchy variable (same characteristic as the exit variable).  This receives the values from the user exit variable.  The input hierarchy variable is also in the Plan Query where I have the buffer error message.
    If I take the Hierarchy variables out of the help query and put them in the plan query, then it works, no error message.
    Conclusion:  it seems that the system has trouble posting data in the buffer if you have a hierarchy variable in the help query. (it works fine for non Hierarchy variables)  We debugged it, and the SAP program does not recoginize -06- assigend element in the program.
    Is there a SAP note to correct this?  I found one that was very similar to my problem but it is old, for level 10.  We are on patch level 20.
    Thanks for your help,
    Julian

  • Cannot read any form posted data

    I create a web server :
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class TestWeb extends Thread {
        Socket soc;
        ServerSocket server;
        InputStream is;
        BufferedReader br;
        public void run() {
            try {
                while (true) {
                    soc = server.accept();
                    if (soc!=null)
                    is = soc.getInputStream();
                    br = new BufferedReader(new InputStreamReader(is));
                    String line = "";
                    while (line!=null) {
                        line = br.readLine();
                        if (line==null) continue;
                        System.out.println(line);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public TestWeb() {
            try {
                server = new ServerSocket(80);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public static void main(String[] arg) {
            try {
                new TestWeb().start();
                System.in.read();
            } catch (Exception ex) {
                System.out.println(ex.toString());
    }It can read the header when someone connect to this server
    However, it cannot read any form posted data.
    Does anybody have any idea?
    The following is the html source that i use in a browser to connect to the test server
    <HTML><BODY>
      <CENTER><H1><FONT COLOR=BLUE><B>Test</B></FONT></H1></CENTER>
      <HR>
      <FORM METHOD="POST" ACTION="http://127.0.0.1">
        <INPUT TYPE=TEXT VALUE="abcde">
        <SELECT>
          <OPTION VALUE="1">1</OPTION>
          <OPTION VALUE="2">2</OPTION>
        </SELECT>
        <INPUT TYPE=SUBMIT>
      </FORM>
    </BODY></HTML>

    I would expect the form data posted to be received. For example, the user chooses the option value and the text input value.
    This test is hang just after receiving the header information and no parameters collected.

  • Webservice giving error "couldn't post data to " in adobe interactive form

    Hi Gurus
                     My requirment in to place a submit button in adobe interactive form , when the user clicks on it the data in the form has to update the table. For this purpose i have configured webservice in my crm 2007 server. Now webservice is working and i m getting the response. but when i create a data connection in the adobe form and when i execute the webservice i getting " Couldn't post data to ". "
    error . Plz help me out to resolve this issue
    Thanks in advance
    Regards
    Johny

    Hi Jhonny,
    Make the Submit button a regular one instead of execute and place the following code in the click event(JavaScript).
    var cURL = "Provide the Soap Address url which is present in WSDL";
    var service = SOAP.connect(cURL);    
    xfa.connectionSet.DataConnection.execute(0);
    Regards,
    Mathan

  • Couldn't post data to ''. - Adobe interactive form problem

    Hi
    I am trying to do a test run with adobe interactive forms, I generated a WSDL from my webservice in SAP and then added the data connection fine. I added the execute event button onto my form and set a HTTP debug point in the function inside my webservice. When I try preview and I try click the execute button every time I receive the following error:
    Couldn't post data to ''
    What does this error mean? It never reaches my rfc as the debug is not triggered and the error seems to be coming from adobe lifecycle designer.

    Hello,
    I am facing this issue too, were you able to resolve.
    kindly help!
    THanks,
    Deepti

  • Xsql:delete-request key-columns has to be form posted data?

    I am trying to link a hyperlink "delete" on a table to a page "jobs-list-delete.xsql?jobnumber={JOBNUMBER}". When I use:
    <form method="post" action="jobs-list-delete.xsql?jobnumber={JOBNUMBER}">
    <input type="submit" value="delete"/>
    </form>
    it worked fine. but I want to use "delete" as a hyperlink instead of a button, so I tried the following:
    Delete
    unfortunately, it didn't work with the above hyperlink.
    I would like to know if xsql:delete-request key-columns value has to be form posted data instead of a query string in an URL from a hyperlink. Is there any way to work around this?
    The code I used in jobs-list-delete.xsql is as follows:
    <xsql:delete-request key-columns="jobnumber" table="jobs" transform="request-to-InsertJob.xsl"/>
    Thanks...
    Wenqi Dwyer

    <xsql:delete-request> works with a posted XML request or a POST'ed HTML form.
    To delete things with a simple HTTP GET, you can use <xsql:dml> and a DELETE statement.

  • How can I change Posting Date on Sales Invoice form in UI?

    Hello,
    I cannot change the Posting Date on the Sales Invoice form in UI.
    The new date is earlier than the system date, but when I type it on the field on the form, it's not problem!
    I've tried to use the following code in vb.NET:
    SBO_Application.Forms.Item(pVal.FormUID).Items.Item("10").Specific.value = DocDueDate.ToString("yyyyMMdd")
    But I've got an exception: <i>Form - Bad value</i>
    Next step I tried this, but I've got a same message:
    SBO_Application.Forms.Item(pVal.FormUID).Items.Item("10").Click(SAPbouiCOM.BoCellClickType.ct_Regular)
    SBO_Application.SendKeys(DocDueDate.ToString("yyyy.MM.dd"))
    Any idea?
    THX,
    Csaba

    Hi Csaba!
    please, make sure that you've handled Sales Invoice form - just show the message:
    MessageBox.Show(pVal.FormUID)
    edDate = SBO_Application.Forms.Item(pVal.FormUID).Items.Item("10").Specific
    edDate.value = DocDueDate.ToString("yyyyMMdd")
    This has to show you 133. If not then put the IF-statement to check what form you are handling before you try to get the item's handler

  • Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache of sent text?

    Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache sent the text?
    For example, I posted an article on a news site, but found that only a small part of my article was posted.

    I'm not sure whether Firefox saved that information. There is a chance that it is in the session history file, especially if you haven't closed that tab yet. To check that:
    Open your currently active Firefox settings folder (AKA your Firefox profile folder) using
    Help > Troubleshooting Information > "Show Folder" button
    Find all files starting with the name sessionstore and copy them to a safe working location (e.g., your documents folder). In order to read a .js file, it is useful to rename it to a .txt file. Or you could drag it to Wordpad or your favorite word processing software.
    The script will look somewhat like gibberish, but if you search for a word in your article that doesn't normally appear in web pages, you may be able to find your data.
    Any luck?
    For the future, you might want to consider this add-on, although I don't know how long it saves data after you submit a form: [https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-recovery/].

  • Autonomous transactions not seeing posted data

    I want to add a button to a form to call a report. The users want to update data in the form, run the report then decide if the data is to be committed. I can post the changed data but the report doesn't see the posted data as Oracle starts a new session.
    The report performs various calculations and before it is run, the calculations are performed and data extracted to separate tables, the report then runs on the extracted data then the temporary table data is deleted.
    I thought autonomous transactions would be my solution. The data is posted within forms, the form then calls a database procedure which has the autonomous procedure declared, data extracted and committed to the temporary tables within the autonomous transaction (form data stays uncommitted), report runs using the extracted data. User could then decide if the amended data could then be committed to the database.
    The autonomous transaction does not seem to see the posted data. The procedure picks up the data 'pre post'. Any ideas on what I can do to get round this?
    Thanks in advance
    Karen Stalker

    Thanks for all the replies.
    My form that will call the report can call up to 12 other forms with data always posted and never committed until the user is prompted to on leaving the main form, or the user presses the commit key. I liked the idea of writing to a temporary table but the way this application is designed, this would mean a big rewrite of a lot of complicated forms. I would rather leave them alone as they work!!
    I could pass the record groups into the report - this would mean about 15 groups but that shouldn't be a problem except that there are a few child queries which I read can't be done that way. This may be a daft question but can I pass the record groups into the report and the record groups be then used in the after parameter trigger. There I could do all the necessary complications, write to my extract tables and then carry on as normal - i.e. the report gets the data from these extract tables.
    My best solution would be to get the reports and forms to run in the same session but how can I do this? As far as I'm aware, RUN_REPORT_OBJECT starts a new session. Hopefully someone knows how to get them in the same session.
    Thanks again
    Karen

  • POST built-in and form status

    Hello friends at www.oracle.com ,
    while analyzing and testing a Forms program here, I saw that, before POSTing data, the value of :SYSTEM.form_status was CHANGED (that is, database contents were changed at Forms) and, after POSTing, :SYSTEM.form_status became QUERY.
    But, if POST built-in doesn't perform a database commit - so I suppose POSTed data isn't viewable to other users yet -, why does the form changes its status, if we do not have a real commit? Can't this lead the user to think data was saved (when, in fact, it's not, because POSTed data aren't committed)?
    I read about POST built-in at online help, but it's still not much clear for me, so I ask your help to understand it better.
    Hope I was clear - if not, please ask me.
    Best regards,
    Franklin Goncalves Jr.

    Sincere thanks for your answers. I really didn't know that POST built-in would fire triggers involved with database transactions, such as POST-COMMIT.
    Isn't it better for data integrity that Forms and database be synchronized with the state of each other - that is, Forms should state its data is really committed at database? While I don't see a special reason for using POST, I'll still think POST is not so useful and avoid using it.
    In some Forms programs I used a global variable, like :GLOBAL.key_commit_pressed, to determine if KEY-COMMIT was pressed (if user has committed data, that's obvious) while user is working. It doesn't seem to be a bad idea, although I still ask myself if it's really the best one.
    But the most important question I have, is to know if POST built-in validates data with database - that is, integrity constraints, database triggers, and so on. I think it might fire, although I still believe the use of POST built-in can confuse both user and developer anytime.
    Best regards,
    Franklin Goncalves Jr.

Maybe you are looking for

  • K9N Platinum bios version & cpu support

    Hi! I need some help to clear up some questions regarding my MB. MB: K9N Platinum, Cpu-z states my bios version is 080014, but i cant see it in the bios list for my MB, so what version is it? Im currently running with a Athlon X2 5200+ Windsor, and i

  • Can I open a SSLServerSocket on a mobile phone supporting MIDP2.0

    If you know if I can open a SSLServerSocket on a mobile phone, please send email to [email protected] Thanks.

  • How to display the OBIEE 11g report in the Liferay Portal

    Hi, I have integrated with Liferay Portal and through portal we view the report and Dashboard. I have provided a Address(url) for individual pages to the portal based html coding it takes to OBIEE analytics. If say I have page A,B,C for each individu

  • Hub startup failed due to licensing failure

    Hi all. I have just installed weblogic 6.0 sp1 on solaris 2.8. the web server starts up and everything is hunky dory. furthermore i downloaded collaborate 1.0.1 and installed it. the installation went fine. here is my problem. when i execute the star

  • Where are GIDs in OSX 10.6.8 kept ?

    How do i edit the GID in OSX 10.6.8. I need to make my accounts on my iMac work with a NFS and need to ensure UID and GIDs are synchd to those on the NFS device.