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!

Similar Messages

  • 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?

  • 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 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

  • 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

  • Show Top of the Page after Click Save button

    Hi all,
     i have requirement i want show top of the page after click of save button.if you know answer please give reply.
    Regards
    VeerendraNadh

    Hi,
    Would you mind providing more details(screenshot would be better) about your requirement? It would make others easier to find a solution for you.
    Suppose that there is a scenario like this: Edit a page, when content grows too large, page will scroll to the bottom of the page. When clicking “Save” button in the
    ribbon, by default, page will scroll to the top just like it is first loaded in the browser.
    Feel free to reply if this is not what you really mean.
    Best regards
    Patrick Liang
    TechNet Community Support

  • 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.

  • Pressing escape button twice clearing the form

    Hello,
    I am using Jdeveloper 11.1.1.6 and noticed below issue only with IE browser
    - Developed a .jsff page fragment, created a taskflow and dragged taskflow onto the .jspx
    - Launched the form , and entered some attributes, by pressing twice 'Escape' button twice, clears the form
    Does any one have idea why form get's cleared by pressing twice button ? Appreciate your timely response
    Thanks in Advance.

    Thanks for your reply.
    The field values are getting clearing while swapping between the tabs.
    However, when i am hitting the button(first tab) "Get department Info" in the first tab the report is generated with the details..
    when i am going back to second tab and after comming back to the first tab, still i could see the report. i dont want the report to be visible when swapping between any tabs..
    Please help.

  • To Disble the Field in Table Control after clicking Save button

    Hi,
    I have a requirement as follows. i need to disable one field in the table control after clicking save button. i tried with SCREEN elements but it disabling whole the table control but i need to disable that particular one record only in the table control. i found Structure CXTAB_COLUMN in documentaion. it has the properties like invisible. can any body tell how can we disble that particular field in table control only for the one record. and how can we use CXTAB_COLUMN.
    Thanks in advance.

    hi,
    do like this...
    in USER_COMMAND_1000 module of PAI,
    MODULE user_command_1000 INPUT.
      CASE ok_code.
        WHEN 'BACK' OR 'UP' OR 'CANC'.
          LEAVE PROGRAM.
        WHEN 'SAVE'.
          fl = 1.
          GET CURSOR LINE lin.
      ENDCASE.
    ENDMODULE.                 " user_command_1000  INPUT
    and make on module disable in Loop Endloop in PBO.
    and write like this...
    MODULE disable OUTPUT.
      LOOP AT SCREEN.
        IF tab1-current_line = lin AND fl = 1.
          screen-input = 0.
        ELSEIF tab1-current_line < lin.
          screen-input = 0.
        ELSE.
          screen-input = 1.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDMODULE.                 " disable  OUTPUT
    here fl and lin both are type i.....
    and there will b one module in PBO
    MODULE tab1_change_tc_attr.
    in that put if condition....
    MODULE tab1_change_tc_attr OUTPUT.
      IF sy-ucomm <> '' AND sy-ucomm <> 'SAVE'.
        DESCRIBE TABLE itab LINES tab1-lines.
      ENDIF.
    ENDMODULE.                    "TAB1_CHANGE_TC_ATTR OUTPUT
    ur problem will solve...
    reward if usefull....
    Edited by: Dhwani shah on Jan 2, 2008 1:17 PM

  • How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App

    How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App

    Darrell,
    Thanks for this response. After I posted mine, I saw that the resetForm JavaScript method is documented as being supported starting with version 10.5: http://www.adobe.com/devnet-docs/acrobatetk/tools/Mobile/js.html
    But I haven't been able to get it to work. Can you clarify if support was indeed added and if it works for you?

  • Waveform Graphs: Is there a way to save data to a file and then clear the graph after each run?

    This is just an added feature that I would like to insert because I end up having to erase the previous graph(for viewing and simplification purposes) after almost every plot cycle. Does LabVIEW 7.0 have a built-in feature that allows the user to automatically clear the graph after each run.
    Thank you,
    Keith Blackwell

    May I recall you that to clear a graph you have to create a property node,
    choose value and connect an 1D array with its first value to zero.
    Then using a Select vi enables you to choose from clear or graph value.
    Gérard
    Gérard Férini
    Switzerland
    http://home.tiscalinet.ch/gferini/
    remove -move to reply personally
    "Greg McKaskle" wrote in message
    news:xEmJc.43762$[email protected]..
    > > I went into the function pallette-->signal manipulation-->align and
    > > resample
    > >
    > > and found something that may be useful, but I'm not sure how to use
    > > it. I guess I have to play around with it by trial and error. Was this
    > > the VI seetting that you were referring t
    o?
    > >
    >
    > The option I was talking about is for the entire VI. It resets the
    > value of all indicators prior to running. The setting is located in the
    > VI Properties dialog on the execution page I believe. In the end, there
    > are multiple ways to get this to work, and if you want just a few
    > indicators to be reset, you want to use locals or control methods, but
    > th eVI Properties is a convenient way to get all indicators cleared at
    once.
    >
    > Greg McKaskle
    >

  • How to clear the form fields which are not rendered

    I have a creation form. There is a document_type list set up as a partial triger. When user change the document type, only the filed related to that document type will be rendered. This caused a problem when we need to clear the form . The input in the field which is not render won't be cleared when reset button is pressed. Can anybody give a sugestion on how to handle this?
    I tried to use the following function to clear the fields. It does not work since it get the list value before the list value change and clear the fields after the new field rendered.
    public void clear_action(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    System.out.println("test1");
    String coutcase = null;
    if(EL.get("#{bindings.Proxy.inputValue}") != null){
    coutcase = EL.get("#{bindings.Proxy.inputValue}").toString();
    System.out.println(coutcase);
    AttributeBinding a11= (AttributeBinding)getBindings().getControlBinding("INT_FNAM");
    AttributeBinding a12 = (AttributeBinding)getBindings().getControlBinding("INT_LNAM");
    AttributeBinding a13 = (AttributeBinding)getBindings().getControlBinding("TIT_PROG");
    AttributeBinding a14 = (AttributeBinding)getBindings().getControlBinding("T_OF_INT");
    AttributeBinding a15 = (AttributeBinding)getBindings().getControlBinding("NETWORK");
    AttributeBinding a16 = (AttributeBinding)getBindings().getControlBinding("IN_DATE");
    AttributeBinding a17 = (AttributeBinding)getBindings().getControlBinding("PE_FNAM");
    AttributeBinding a18 = (AttributeBinding)getBindings().getControlBinding("PE_IN_LNAM");
    AttributeBinding a19 = (AttributeBinding)getBindings().getControlBinding("WEBSITE");
    AttributeBinding a20 = (AttributeBinding)getBindings().getControlBinding("URL");
    AttributeBinding a21 = (AttributeBinding)getBindings().getControlBinding("INT_DATA");
    AttributeBinding a22 = (AttributeBinding)getBindings().getControlBinding("D_ACCESS");
    AttributeBinding a23 = (AttributeBinding)getBindings().getControlBinding("CASE_NUM");
    AttributeBinding a24 = (AttributeBinding)getBindings().getControlBinding("COURT");
    AttributeBinding a25 = (AttributeBinding)getBindings().getControlBinding("PLAIN");
    AttributeBinding a26 = (AttributeBinding)getBindings().getControlBinding("DEFEN");
    if(coutcase.equals("Interview")) {
    a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);
    /*a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);
    a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);*/
    } else if(coutcase.equals("Internet")){
    /*a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);*/
    a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);
    /*a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);*/
    } else{
    /*a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);
    a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);*/
    a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);
    }else{
    System.out.println("coutcase is null");
    }

    Hi,
    The easiest way to modify the screens in the Std transactions using ITS is to modify the ITS templates corresponding to that transaction.
    E.g In you case,there will be a ITS service corresponding to the ESS transaction.This ITS service will have  number of HTML templates which will actually correspond to the diffrent screens in the Trascn.What you need to do is find out the HTML template in the ITS service which corresponds to the screen(which you want to modify) in the STd transacn.To do this ,the easiest way is to right click on that Web page and say VIEW SOURCE.It will show you a HTML code with the ITS service name and the template which is being used for that particular screen.
    So after you find out the correct HTML template to be modified,you can simply hide the fields by putting the HTML code lines in between the symbols
      <!   and  -->
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • I have set form fields as User required and yet the form still prints/save when empty.

    I have set form fields as User required and yet the form still prints/save when empty. I also have an email button on the form but that works correctly by not allowing the user to email the form with the required fields empty.
    What script do I need to additionally restrict both printing and saving if the required fields are empty?
     You would think that just setting that option would restrict those functions the same as it does for the email button. 
    Please be specific with your response if you are gracious enough to offer one. I have been searching the forum all morning for the answer to this and I really didn't understand any of the solutions offered to others enough to use those in my own form.
    The required fields are:
    Social (social security number)
    Name
    Headquarters
    Residence
    The next question I have is if there is a way to make individual signature fields mandatory if they are digital signatures?
     In other words, I don't want the individual to be able to email the form to the next person if he/she hasn't applied their digital signature.

    Saving can always be done, even when mandatory fields are empty.  This is by design.  And that is correct.  Suppose you have a big form and 2 people need to fill it out.  How can you fill out a first part and then send it to the second person without saving.
    Same for printing.  Same for your signature fields.
    What I would do, is to put a "watermark" on the form that you show on preSave and prePrint if the form is incomplete.  Just a static text on your form.  Then the user will see that they need to do more.  Also, on preSave and prePrint, you can show a warning popup to tell the user about the missing fields.  You can then still cancel their action if the user decides not to save/print anyway.

  • Can't work with the Query after I save a 3.5 Query in 7.0 Query Designer

    Hello,
    my Problem is, I open a 3.5 Query in a 7.0 Query Designer. Then I save as another name. When i Open the Query
    i can't change things... WHY ? A Standart Transport is OK in RSA1, Transport, BexTransport. all ok..
    can't work with the Query after I save a 3.5 Query in 7.0 Query Designer
    Best Regadrs

    Hi,
    I cant click on it. It is grey..
    I open the 3.x Query in a 7.0 Query Designer and save as another name.. Then I try to open it with the 7.0 tool. The Query is displayed. But I cant change something...
    thnx

  • When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    Close the pictures before you quit Preview. Cmd-opt-q will close all windows and quit. cmd-opt-w will close all windows and not quit.
    Or, Disable automatically opening files that were left open in General System Preferences

Maybe you are looking for