Need to reopen the form after saving

Hi All,
I am developing a form for employee time sheet. I am using the ON-INSERT Trigger to insert the details of the employee. I need to reopen the form after inserting the details into table. I tried using the NEW_FORM bulit-in in POST-INSERT Trigger. but getting an error: FRM-40737 illegal restricted procedure NEW_FORM in POST_INSERT) Trigger. Can any one please how can I do this.
Thanks and Regards
Sai

Hi Jeneesh,
Thanks for the reply.
I need to clear the form after saving and also I made the Update Allowed property to 'NO' as client per requirement. So, every time after saving the form, I am getting an error message 'Update is not allowed on this form' . in order to avoid this message after saving I want to close this form and open it again.
Also I need to clear the datablock. where can I clear the datablock after saving it.
Thanks
Sai.

Similar Messages

  • Clearing the FORM after SAVING the data

    Question 1:
    I've got a form that is built based on a table. When I enter the data and click on the save button, the FORM doesn't clear for me to enter the data for the next record. Where and how can I set up a process so that the form clears after the data is saved?
    Quesstion 2:
    I've got a form that is built based on a table. The table has 10 fields where one of the fields is a FK. I want all 10 fields to be on the form. I want the FK to be a select list where the display value is a description and a return value is an ID. I have picked the correct fields for display value and return value. However, when the data is saved, the return value is not stored in the table field. The field is bank. Any idea why this is happening?

    Hi,
    The simplest way to clear the items for a page is to add the page number in to a Branch that is triggered by your Create/Save button - check your branches to see which one is linked to this button and enter the page number in the Clear Cache setting. If you created the form using a wizard, you should, however, already have a "reset page" page process that does this for you - if you haven't got this, then either update the branch or create a new "Session State" process that clears the cache.
    For your second question, the data will be saved provided the page item is correctly linked to the table's field and you have "Process Row of tablename" set up correctly. If you have a "Process Row..." process, check the required settings in the "Source: Automatic Row Processing (DML)" section as these identify the table and its Primary Key. If you don't have one, you can create a new "Data Manipulation" page process to do this. In the page item, check that you have "Source Used" set to "Always, replacing any existing value in session state", "Source Type" set to "Database Column" and "Source Value or Expression" set to the table field's name.
    One thing to check as well is, if you already have a "reset page" process, make sure it is after all other processes - change the sequence number if necessary.
    Andy

  • Clearing the Form after saving

    Hi All,
    i am workong in oracle9i version.
    I have a Form.I am entering all details in my form and saving it through oracle default save button.
    After saving my form,all form level details should be cleared.How should i do it?

    Try using
    Clear_form;after commit. Can be use at button or post commit.
    Hope this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • How to create a unique file name each time the form is saved?

    I've got a form with several data items. When the user saves the form, it saves it as an .xml file. So far so good. But then I want the user to be able to start over and put in a new data set. I used the reset form button and this clears out the old data. But when the user goes to save the form for the second set of data, the default name of the .xml file is the same as the last record set. How do I get LCD to create a unique data name each time the form is saved? I know that the user can enter a new name, but I do not want them to have to think that much.
    Alternatively, is there a way that a user can enter several forms of data and save all of the data in one XML file that my PDF can scroll through or that I can import into excel and keep all of the data sets separate?

    Thanks Paul for the post. It sounds like this program is simply not designed for one user to keypunch a batch of forms. It would appear to limit the program's use to users who only need to key in one record/form. While a good solution for multiple users who need to enter just one set of data, the limitation would explain why this program is not widely used.

  • I saved photos from my Macbook Pro onto my Iphone (using itunes, 4 years ago). My macbook is now dead and I need to get the photos I saved off of my iphone 3GS transferred to a pc.  Any help...  From my PC I can only access "internal storage"

    I saved photos from my Macbook Pro onto my Iphone (using itunes, 4 years ago). My macbook is now dead and I need to get the photos I saved off of my iphone 3GS transferred to a pc.  Any help...  From my PC I can only access "internal storage"

    The iphone is not a storage/backup device.  The picture sycn is one way - computer to iphone.  The photos are also reduced in size when synced to iphone so they are not of the original quality
    It has always been very basic to always maintain a backup of your computer.
    Have you failed to do this?
    If so, not good at all, you can e-mail the pics to yourself - keep in mind they will never be of the original quality

  • XI needs to capture the form back in the mail adapter

    Hi Experts,
    I am working on a scenario where , data needs to be sent from SAP and in XI , a form sort of( like a web form or pdf form) needs to be created.  This form needs to be emailed ( using the mail adapter ) to an outside entity.  They will fill out the form and email it back.  XI needs to capture the form back in the mail adapter translate it and put the data back into sap.
    Can some one help me out with this ?
    Regards,
    Hemanthika

    Hi patnaik
    Follow these links to covert to PDf and then mailing through mail adapter
    Converting Smartform into PDF and sent to EMAIL
    Check this..Smartform as attachment in mail. - 46k
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/convert-smartforms-form-in-pdf-998715 - 87k
    SMART form to PDF
    https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat
    smartform to MAIL
    https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
    regards
    Sandeep sharma
    If helpful kindly reward points

  • Clearing the forms after default Save Button pressed

    HI,
    in forms 6i how to clear the form after the save button is pressed, ie the form uses default menu and smart bar. the user wants to clear the form once he selects save from the menu or after pressing the save icon...
    any idea...?
    regards
    Kris

    try on-commit trigger on form level through clear_form procedure but cursor remain stay on the same record
    I think your requirement is that when user commits a record a new blank record appear so also add "create_record" procedure ;
    .but u have to apply some logic on that trigger also it ever fires when user edit/insert/delete a record and commit;
    Hope it clears now!

  • CFDiv - clearing the form after submission

    I am using cfdiv with a data entry form and on submission writes the values to a db,  works great, but, how can I clear the form after submission?
    reloading the page loads it in the cfdiv.
    TIA
    Jbird

    To where are you submitting this form?  Also, are you submitting as a get or a post?

  • I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    Just go back in photoshop and use the Slice Select tool, then just click and select the slice and hit delete - if you're not sure which one is the active slice just right click and find the one that has the Delete Slice option.
    It's possible you either added the slices by accident or if you received it from someone they just had the slices hidden. For the future, you can go to View > Show > Slices to display (or hide) slices.

  • Am I need to Eliminate the object after used??

    Am I need to Eliminate the object after used to release the resource ? Which like C code: free(Dynamic variable). And why and how they works in java??
    Thank alot !!!

    You may want to read about garbage collection in java. Basic intro in [url http://java.sun.com/docs/books/tutorial/java/data/garbagecollection.html]tutorial, after that search around the site for garbage collection and related topics
    Mike

  • Need badi which triggers immediately after saving the vendor master data

    Hi all.
        I need a badi which triggers after vendor master (xk02) is changed . The badi should trigger after the data base commit ( i.e after all the changes have been stored in data base tables). Pls let me know
    Thans in advance.

    try these:
    EXIT_SAPLV45T_001       V45T0001     Customer exits text determination
    EXIT_SAPMF02D_001     SAPMF02D     User exits: Customer master data
    EXIT_SAPMF02K_001     SAPMF02K     User exits: Vendor master data
    EXIT_SAPMV45A_002     V45A0002     Predefine sold-to party in sales document
    EXIT_SAPMV45A_003     V45A0003     Collector for customer function modulpool MV45A
    EXIT_SAPMV45A_004     V45A0003     Collector for customer function modulpool MV45A
    BADI's:
    CUSTOMER_ADD_DATA     CUSTOMER_ADD_DATA     Additional Data at Customers
    CUSTOMER_ADD_DATA_CS     CUSTOMER_ADD_DATA_CS     Additional Data at Customers (Subscreen Container 4000)
    VENDOR_ADD_DATA     VENDOR_ADD_DATA     Additional Vendor Data
    VENDOR_ADD_DATA_CS     VENDOR_ADD_DATA_CS     Additional Data for Vendors (Subscreen 4000)

  • Image disappears in the RH after saving and reopening the report

    Hi,
    I am using CR2008.
    I have created several reports with images  but didn't get this type of problem.
    I inserted image in the Report header and everything is fine, after save and exit if I reopen the report there is no image. It disappeared. I tried all possible ways with bmp, jpg formats of image and re-size the image. Still same problem. There is a blank OLE Object in the Report header when I reopen it. Is there any solution for this issue?
    Thanks!
    Edited by: Krishna.R on Jun 10, 2011 10:02 PM

    Hi
    Thanks for the reply. My problem is solved. The image file is too big in size and I resized it in crystal, that's why it behaved wiered. I reduced the size of the image outdide the crystal report in mspaint and then copied to crystal. It worked.

  • Go a error message (s3FYO5MZt4NjvttD2VlLsg) when trying saving the form after filing it

    How can I fix it?

    Can you post a link to the form so we can have a look?
    Andrew

  • I filled in a PDF form. When finished, I could not find how to save the completed form. So I took a chance and used the phone's back button. A message popped up saying the form was saved and to go to the cloud to view it. What cloud?

    I tried all I could think of but found nothing. In addition, I checked the phone's memory and found the file with a created date/time only about 15 minutes old. When I opened it, I was at first relieved. The portion showing on the screen was filled in. Then I looked at the other 3 and ¾ pages. All fill spaces are empty! What's up with that? And where do I find the finished form in that illusive cloud?

    Form document will automatically be saved after closing the file. As far as cloud message is concerned, it seems your Mobile link setting has been turned on. When you pressed device back button after filling the form, it was saved to your Acrobat.com account. You can access this document by going to Acrobat.com tab present in left pane. Its a cloud storage area where you can upload/save any document.
    Thanks,
    Adobe Reader Team

  • How to clear the form after save?

    Hi,
    My environment is JSF1.2 and Hibernate3. Scope of my bean is request level. On JSF form where I press the save button, data is saved in the database and form is empty for new record.
    I do not want to call method resetMe() because I have many beans with 10-20 fields per bean. I don't want to write such method again and again.
    Can you please help me for better solution?
    Here is my bean:
    package test.bean;
    import java.io.Serializable;
    import javax.faces.event.ActionEvent;
    import test.hib.CountryHome;
    public class Country implements Serializable {
         private Integer cPk;
         private String cName;
         private String cDesc;
         public Country() {
         public Integer getcPk() {
              return cPk;
         public void setcPk(Integer cPk) {
              this.cPk = cPk;
         public String getcName() {
              return cName;
         public void setcName(String cName) {
              this.cName = cName;
         public String getcDesc() {
              return cDesc;
         public void setcDesc(String cDesc) {
              this.cDesc = cDesc;
         public void save(ActionEvent ae) {
              CountryHome ch = new CountryHome();
              ch.save(this);
              this.resetMe();
         private void resetMe() {
              this.setcPk(null);
              this.setcName(null);
              this.setcDesc(null);
    }My database/hibernate class with save operation:
    package test.hib;
    import org.hibernate.SessionFactory;
    import test.bean.Country;
    import test.helper.HibernateUtil;
    public class CountryHome {
         private SessionFactory sf = HibernateUtil.getSessionFactory();
         public void save(Country instance) {
              sf.getCurrentSession().beginTransaction();
              sf.getCurrentSession().saveOrUpdate(instance);
              sf.getCurrentSession().getTransaction().commit();
    }My JSF page:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Country Form</title>
    </head>
    <body>
    <f:view>
         <h:form>
              <h:panelGrid border="1" columns="2">
                   <h:outputLabel value="Name: "></h:outputLabel>
                   <h:inputText value="#{country.cName}"></h:inputText>
                   <h:outputLabel value="Description: "></h:outputLabel>
                   <h:inputTextarea value="#{country.cDesc}"></h:inputTextarea>
              </h:panelGrid>
              <h:commandButton value="Save" actionListener="#{country.save}"></h:commandButton>
         </h:form>
    </f:view>
    </body>
    </html>

    What you are doing now will not create a maintenance nightmare in future, if you are doing it in a framework oriented fashion. We have done something similar in one of our biggest project( around 50 developers working 3 years). What we have done is, created a method resetBean() in our abstract backing bean like:
    public void resetBean(){
                        // doing nothing
    We didn’t make it abstract, so that all backing bean in our project need not implement this method. Those who want to use this method can implement this method to reset the values in the backing bean.
    One thing we achieved by doing this is, we don’t let each developers do the reset logic in different ways.
    One of the advantages of this over the redirect is, you have full control over resetting the form. Which means, sometimes, we may need partial resetting of the form.
    Thanks and regards
    Rick

Maybe you are looking for

  • How to deploy a Webapplication on WAS more than one times on same server?

    Hi all, I 've a special problem: In our web-app (some DC's) also stored propertie-Files. Now we would to deploy this application more than one times at same server using different WebContentRoots. (f.e. http://server/app1 and http://server/app2 a.s.o

  • Post Capitalization

    Hi, Can any one tell me the difference between Capitalization date and Acquisition date in asset master creation (AS01). What is the effect of "Post-Capitalization" radio button in AS01, first screen. Thanks, sravankumar help.sap.com and F1 on the fi

  • A new button required on shoppingcart screen

    Hi all, I need a new button on the shopping cart screen, so that an interactive form can be submitted to the user. I have gone through the BAdI ( BBP_SC_MODIFY_UI ). It does not look to me that it can be used for additional buttons. Please advice. Th

  • Chinese character in RecordStore

    Hi all, I am new to j2me. is it possible to key in Chinese character and store it in recordstore, and i can display the character back when i view the record? i have go through many examples of j2me encoding. but i still don't have any idea about how

  • HELP Setting up visual voicemail for samsung s5

    I am trying to access my visual voicemail on my new phone and I keep getting this error: "Unable to verify subscription status. Please try again later". I don't know what to do to get this set up. I thought it was as simple as activating my new phone