How to clear the data in my page after user enter submit button

hi......
how to clear the data's in my page after user enter submit button. Actually while pressing first time itself the data is uploaded in database.

Hi Nazeer,
Instead of doing it on the same button better create a separate button for this functionality, As per my understanding you want to clear these fields to create new record so that you can enter a new record so for this you just need to insert a new row in VO.
Still if you want to do it on the same button then you need to put the check that particular record is not dirty if it is not then create new record else create new record.
One more thing if you will clear on the second click of a button how will you update your record??
Regards,
Reetesh Sharma

Similar Messages

  • How to Hightlight the Data in Jsp Page

    How to Hightlight the Data in Jsp Page,
    I am doing doing search page,based on values given search page those are sent to servlet,in servlet based on some conditions if particuler id i am getting then i am redirecting to Respective jsp page with highlight the data from database..
    Thanks in advance...

    "Highlighting data in JSP sounds strange".
    Without looking at your search specific algorithms I feel you are finally going to display a page (HTML content) to user which contains highlighted text. Highlighting is not directly related to server side language you use (JSP, ASP, PHP etc.). This is purely HTML and CSS. However, server side script (such as JSP) should generate HTML content for getting highlight effect.
    Following HTML shows highlighted text using background-color property on span element.
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      </head>
      <body>
          <p style="font-size:1.1em">This is a long paragraph which contains <span style="background-color: yellow;">highlighted text</span> and non highlighted text.</p>
      </body>
    </html>Thanks,
    Mrityunjoy
    Edited by: mrityunjoy on 14 Jun, 2010 3:30 AM

  • How to use the data that we got after successful execution of a Bapi

    I have created a simple Webdynpro application to execute a user defined Bapi and that was executing successfully but the next step when i want to use the data that which i have retrieved from that Bapi i am facing problem.I am unable to use that particular data
    My idea is to use that data and again i want to filter that particular data which i got from the Bapi execution with out calling another Bapi
    Ex: I wrote a user defined Bapi to retrieve flight details if i enter the id of the particular airline
    Then i executed my webdynpro application and i am able to get the output
    from that output i want a particular flight details if i choose the City name i.e. the details related to that particular city which i choose

    Hi Praveen,
    Thanks for the Help,
    I am working with the same scenario which was there in the PDF sent by you but in that document it was directly allowing us to click on the output which we got after executing a Bapi, but here when i am executing i didn't know the procedure how to make use of the data which we got after execution and displaying it in other view
    can we write any code to access that particular data that we got after executing that flight scenario and do some operations on that particular fields
    thanks and regards
    Raghu

  • How to control the data to display for every users?

    Hello Experts,
    Im creating a module in ORACLE forms6i and I want to control all the data to display for every USERs. I have 1 Table and it has 5 columns.
    My module has 5 columns and 5 rows of records to display.
    Problems:
    For USER1, I want to display all DATA in column3 and column4 only and all remaining columns shoud be null.
    For USER2 , I want to dislplay all data in Column1 only and all remaining columns should be null.
    How can i control all the data to display for each columns? Can you help me please. Im using the Clear_Items but its not working only the first row are null but the remaining
    rows has its records.
    Thanks.
    Lala

    I understand that you want certain columns not to show at all on the canvas when a certain user opens the form. Then, in the when-new-form-instance trigger, you should set_item_property(x_item, visible, property_false) for each item you do not want to be dislayed, depending on the user.

  • How to merge data returned from server after you hit SUBMIT button

    I have a PDF form with blank ID field. When user click Submit button on the form, an ID will be generated from database on the server side. How do I merge this ID with client's original PDF from so he knows his ID number? Any help thanks.

    When the user submits the form, he or she is redirected to the web page that you put in the submit URL. The form doesn't generally stick around. A typical response would be to return an HTML page that confirms receipt and gives a reference number. If you want to merge data with the PDF and present that back to the user, it's possible, but not very easy. If you decide that you'd like to go down that path, you can start by searching this forum on "vnd". You'll find a long thread with 30+ messages that show how to merge data with a PDF using various types of CGI scripts.

  • How to change the date created in pages?

    Switching from windows to Mac OS.
    I thought of using pages to store all my documents but am wondering if I could preserve when these documents were created as a form of memory. They input them as date entered into pages. Any ideas ?

    This is one of those things Apple changed.
    Click on the + icon on the Toolbar to Insert > Date & Time > then right click on the date in the text and choose your options.
    Peter

  • How to send the data from jsp page to excel ???

    hi all,
    i want to send the data from my jsp form to excel sheet. any one can help me ??

    Hope this sample code might help :
    StringBuffer data = new StringBuffer();
    OutputStream ostream = response.getOutputStream();
    response.setContentType("application/vnd.ms-excel");
    response.setHeader( "Content-Disposition",
    "attachment; filename=sample.xls" );
    ostream.write(data.toString().getBytes());
    ostream.flush();
    Try it out.
    Swathi

  • How to show the data in table format when user click the Graph

    Hi,
    I have a graph in my report. If user click the graph is there a way to show
    the data behind it?
    Thanks.
    Regards,
    Jun

    Hi All,
    Any idea how to do this?
    Thanks.
    Jun

  • How to check  the date with current day after 5 days

    Hello,
    I need to make the visible of delete button in my struts application. I've application in which user can be deactivated. If the user is deactivated and the admin can't delete the user for the specific period of time (set in property file). while deactivating the user, system time is set. and 5 days after the system time's set, i need to make the button visible.
    This is my code.
    Calendar cal = Calendar.getInstance();
    Date deActivatedDate = null;
    deActivatedDate =new Date(userData.getDeActivatedTime().getTime());// Set it in the Calendar object
    cal.setTime(deActivatedDate);                    // Add 5 days
    cal.add(Calendar.DATE, 5);// get the current date
    Calendar currentCal = Calendar.getInstance();
    Date currentDate = new Date();
    currentCal.setTime(currentDate);// check if the de-activation time is over.
    if (cal.get(Calendar.DATE) < currentCal.get(Calendar.DATE)) {
    userData.setDeletionAllowed(true);}
    can anyone help to solve this issue?

    What's the problem with the code that you posted?

  • Clearing the data on logout

    Hi all,
    Flex newbie here.. I just want to know how to clear the data
    that i fetched from server on logout. My application have multiple
    components and each component have different states. Once i logout
    and login, am getting the previous state before i logout. How to
    solve this problem? please help me out.

    I'd start with the "loginResultHandler" function and use it
    to direct the user to a specific component within a ViewStack
    whenever they login or log back in.
    For example:
    [Bindable]
    private var currentUser:User = new User();
    private var currentFunction:Function;
    private function loginResultHandler(event:ResultEvent):void {
    currentUser = event.result as User;
    if (currentUser.loggedIn)
    if (currentUser.roles == "admin")
    Application.application.myViewStack.selectedIndex=0;
    else
    Application.application.myViewStack.selectedIndex=1;
    loginForm.visible=false;
    currentFunction.call();
    else
    Alert.show("Login unsuccessful", "Server Authentication");
    This may or may not be the answer you are looking for but it
    should get you going in the right direction. Check out some of the
    great Flex tutorials at Lynda.com (
    http://movielibrary.lynda.com/html/modListing.asp?pid=205)
    Good luck!

  • Clear the Parameters on a Page

    Hi,
    Does anyone out there know who to clear the parameters on a page? I have users that input values into feilds on a page and when they press submit the results return. Now I want the users to be able to press another button to clear their inputs. The reset button does not work for this, it only resets the parameters to what they were when I pressed submit. I just need to know how to clear the parameters on a page. Please help!
    Thanks!

    try to add a button and put the following code in the controller. This is not a advisable approach in OAF , but it avoids the screen to be posted to the server even when clearing the input fields.
    StringBuffer resetScript = new StringBuffer("function formClear() {     ");
                   resetScript.append("     ");
                   resetScript.append("     for( i=0; i<document.forms[0].elements.length; i++) { ");
                   resetScript.append("          if(!document.forms[0].elements.readOnly){     ");
                   resetScript.append("          if (( document.forms[0].elements[i].type == 'text' ) || ( document.forms[0].elements[i].type == 'textarea' ) || ( document.forms[0].elements[i].type == 'password' )) {     ");
                   resetScript.append("               document.forms[0].elements[i].value = '';     ");
                   resetScript.append("          }     ");
                   resetScript.append("          if ( document.forms[0].elements[i].type == 'checkbox' ) {     ");
                   resetScript.append("               document.forms[0].elements[i].checked = false;     ");
                   resetScript.append("          }     ");
                   resetScript.append("          if ( document.forms[0].elements[i].type == 'select-one' && ( document.forms[0].elements[i].length != 0 )) {     ");
                   resetScript.append("               document.forms[0].elements[i].options[0].selected = true;     ");
                   resetScript.append("          }     ");
                   resetScript.append("     }     ");
                   resetScript.append("     }     ");
                   resetScript.append("     return;     ");
                   resetScript.append("}");
              pageContext.putJavaScriptFunction("formClear", new String(resetScript));
              OAButtonBean resetButton = (OAButtonBean) webBean.findIndexedChildRecursive("reset");
    if(resetButton != null)
    resetButton.setDestination("javascript:formClear('" + "');");

  • How to keep the data entered on a page apex

    how to keep the data entered on a page apex
    so, I've got a registration page then wish go to another page P2 and I return to this P1 without losing data

    Hi,
    As long as the registration page is within the same session, the values will remain in the session until they are specifically cleared out. This can be done by a process on a page - so check if you have a "reset page" process on P1 and, if you do, delete it. This can also be done on a branch - so check the branch that takes you to P2 and see if there is anything entered in the Clear Cache setting and, if it shows *1*, remove that. There are other ways as well, but these are most typical.
    Andy

  • How to clear all data when the form loading at the first time

    hi
    I am using JDevloper 10g and I have adfForm page, I want to clear all data when I load the page for the first time.
    When I did it using RefreshCondition on the pageDef in the executables like(
    <executables>
    <iterator id="FinCompaniesInformaton1ViewIterator" RangeSize="10"
    Binds="FinCompaniesInformaton1View"
    DataControl="AppModuleDataControl" *RefreshCondition="#{adfFacesContext.postback==true}"* />
    </executables>
    the form didn't bring any data but the problem is the field in the form at the run time changed to read only. So how to make it inputText and clear the data inside it at the run time
    best regards
    Tarek Al Soudani

    thank you for your help,my spec is I have ADF Form and I have creat and Edit CommandButton I made it befor also Commite to save.
    so when I run the form the Field should be disabled and there are no data inside it,and when I chose the creat button the fields should be enabled and I have to insert data inside it then I save.
    So I have FinCompaniesInformatonView as view object based on entity object name FinCompaniesInformaton and applicationMoudul.
    I tolde you befor that I made refreshcondition to solve the data clearence problem but the field changed to read only so please if you now any way to leave the fields as inputText whitout make the form as creation form
    beast regards

  • How to delete the date in podcast or blog page?

    Hi,
    I would like to delete the dates showing on the first page of my podcast and blog pages - how do i do this in iWeb?
    Thank you for your help!
    Boaz

    You don't want to delete that date as it will affect RSS feeds, etc. However you can hide the date.  See this topic:  How to make the 'date' disappear on the...: Apple Support Communities
    OT

  • How can we export the data from OAF Page to Excel instead of .csv or .txt

    Hello,
    How can we export the data from OAF Page to Excel instead of .csv or .txt
    When i click on the export button it is exporting to txt file, But i need to export the data into Excel by default
    Please help me
    Thanks in advance
    Thanks,
    Raju
    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju
    Edited by: 1006649 on May 21, 2013 10:55 AM

    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju

Maybe you are looking for

  • How can I get my music from my nano 5th gen. back onto my computer?

    My old comp. got rained on so I had to get a new one. How can I transfer the music? I have a Windows 7 OS.

  • Help for a Designer

    I have a quad core imac with os 10.7.2. I am using Flash Builder 4.5 with the latest AIR sdk. I am trying to create an app that can convert and manipulate a collada file. Papervision, Flartoolkit and the ColladaAIR Viewer is installed in FB. I am usi

  • Customer wise Invoice wise Payment wise List

    Hi all, Good day to you. We have a requirement which will show Invoice wise Payment Wise report Example: Invoice Value CU 1000                Payment 1    CU  250 (Partial Payment)                Payment 2    CU  350 (Partial Payment) We want a repor

  • Will this hard drive work with my Macbook Late 2009?

    Hello, I was wondering if this hard drive would work with my Macbook6,1: http://eshop.macsales.com/item/Toshiba/MQ01ABD100/

  • Any fix for "CS5 doesn't see my video card"?

    I know there have been threads about CS5 not recognizing video cards on Windows 7 64-bit machines.  I was looking to see if any progress has been made in solving that problem.  My searches don't turn up anything. I'm running CS5 on a Dell 1645 with C