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('" + "');");

Similar Messages

  • Option 2: Clear URL parameters jut before page is displayed

    Is it possible to clear the URL parameters after they have
    been used to
    filter out recordsets, etc. but before the page is displayed
    so that the URL
    address does not have any url paramters ?
    A

    I did, thing is that it is using the 'insert' behaivor from
    DW, I went to
    the line where the Querystring is added to the URL and
    commented it. That
    did the trick.
    A
    "RobGT" <[email protected]> wrote in
    message
    news:ej1nkq$krp$[email protected]..
    >
    > Send them through a form POST instead of using GET?
    > Cheers,
    > Rob
    >
    http://robgt.com/ [Tutorials and
    Extensions]
    > Firebox stuff:
    http://robgt.com/firebox
    > Skype stuff:
    http://robgt.com/skype
    > SatNav stuff:
    http://robgt.com/satnav
    >
    >

  • 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

  • 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

  • Get parameters from html page from java application standalone ...

    Hi all,
    I work in one solution that i have values in Html Page and i want get the parameters values from html and cath they in java application standalone.
    The Html page is in same host than de java application.
    I want know if this is possible. I wnat know if without HttpServlet i can get the parameters from Html Page pure.
    Thanks in Advance for the ideas,
    Antonio.

    Hi Abdul,
    The problem is my client want one solution where i have one page simple page Html and one application java standalone. This application runs in one machine, but we don't have web server. So the question is: Is possible without web server i can get the parameters values that is inside the html page from java application. I remember you that the application java is one .jar that run's with one command line from crontab "java -jar teste.jar".

  • How to find the available parameters in Framework Page

    Hi All,
    I am new to OA Framework need some help. I need to find out the list of parameters for a Framework page. Once I know the available parameter then I can pass the value so that page rendering will be based on the parameter value.
    How to know the list of parameters. Are they available in a Table or XML file.
    Thanks for your help.

    Sorry I am not clear earlier. Here is my requirement:
    I am implementing iRecruitment product at a client site. Customer want to upload the available jobs on external site like (Dice.com). When a job seeker clicks on the available job 'Apply now' link the control is coming to iRecruitment main page but that particular job information is not displayed
    But the customer requirement is the URL attached to external job site should also contain the job id so that particular job information will be displayed when the control comes to iRecruitment product.
    So my idea is to find out if this job id parameter existed in the given page. If it existed then I can add the same to the URL in the browser page.
    Thanks

  • The text in the tables is hazy when printed in the new version of pages. How can I get this to the same clear text as before?

    In the new version of Pages, the text in the tables are no long clear and sharp as before, they look embedded on all print outs. How can I change this.

    You can do a check for corrupted fonts and other font issues:
    *http://www.thexlab.com/faqs/multipleappsquit.html - Font Book 2.0 Help: Checking for damaged fonts
    *http://www.creativetechs.com/iq/garbled_fonts_troubleshooting_guide.html

  • How to open a page from a Form and pass parameters to the form on that page

    I found a similar example on this forum, but it did not work for me:
    declare
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    i number;
    begin
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    htp.p(l_names(i) || ' ' || l_values(i));
    END LOOP;
    end;
    By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
    Another method I tried:
    To open a Form from a Form and pass parameters works fine like this:
    --In the After processing page PL/SQL event.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=&gt;blk,p_attribute_name=&gt;'A_ID');
    if v_id &gt; 0 then
    htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
    htp.formSubmit(NULL,'Upload Files');
    htp.formClose;
    end if;
    End;
    But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
    Best regards
    Halvor

    Hi,
    You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
    You can call this code in the success procedure of the calling form.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    v_url varchar2(2000);
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    v_url := <page_url>;
    if v_id > 0 then
    call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
    end if;
    End;
    In the called form in "Before displaying form" plsql section write this code.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'id' then
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_ID',
    p_value => p_arg_values(i)
    end if;
    end loop;
    This code picks up the value from p_arg_values and assigns it to the form field.
    Hope that helps.
    Thanks,
    Sharmila

  • My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    My safari,4.1.3 on the bottom says cancelled opening page. have cleared the cache,and reset but it still does it on some pages,not all. Any ideas

    It's possible that the pages you are attempting to open simply won't work with that old web browser.
    If you're using Mac OS X Tiger, update to the latest version, which is 10.4.11. (You might be using that already. Your profile says you're running 10.4.1, but I bet that's just a typo.)
    Then get the latest version of Safari that will run on Tiger. (And... you have that already: 4.1.3.)
    You might try a more modern browser designed specifically for your current OS. That would be TenFourFox.
    Information on TenFourFox:
    http://en.wikipedia.org/wiki/TenFourFox
    Download TenFourFox here:
    http://www.floodgap.com/software/tenfourfox/

  • How to delete i.e. clear the pending access requests list from Access request page in SharePoint 2013

    Hi Team,
    I am site collection admin of a SP13 site. The issue is we have added some of the users manually after we got requests from them for site access. But this has left those users as pending on Access requests page. We don't want that list to stack up.
    I can not decline those requests as those users will be notified with declined mail. I searched for clearing the list of those pending requests but did't find any guidelines for this. 
    Is there any way I can do this. Any help is appreciated thanks in advance  

    You might consider using PowerShell to remove unwanted items from the "Access Requests" list of the web site.  This list holds all of the access requests including pending, declined and approved.  The following example demonstrates removing
    the first item from the list.  Please note, I'm not aware whether or not there are any negative side effects to removing items from this list so doing so would be at your own risk.
    $web = get-spweb https://yoursharepointsite
    $list = $web.lists["Access Requests"]
    $list.items[0].delete()

  • What are the parameters "page-forward" and "page-backward"  used for?

    In the LIMITS section of the Netscape Calendar Server configuration
    documentation, there are two parameters called "page-forward" and
    "page-backward." The default setting for these parameters is FALSE. However,
    it is unclear what these parameters are used for.
    <P>
    With previous versions of Calendar Server, you could scroll one page forward
    or one page backward through the user search screens. However, with the
    implementation of LDAP in later versions, the options have been disabled in
    the client.
    <P>
    Although the page-forward and page-backward parameters are documented in the
    Administrator guides for Calendar Server versions 3.5 and 4.0, the guides
    state that the default value of FALSE for both parameters cannot be
    changed. In actuality, the parameters can be changed. However, the reason
    that users should not change these parameters is that versions 3.5 and 4.0
    do not support the page-forward and page-backward capabilities. So to avoid
    errors, please do not change these parameters from the default value of FALSE.

    if AdobeRGB is the more professional working space, then why not use that profile?
    on the web (and in unmanaged and broken work flows) sRGB is the safest profile (source space)
    just open your tagged Adobe RGB and tagged ProPhoto RGB document (use the embedded profile in each document)
    and go to View> Proof Setup: Monitor RGB (notice the loss in saturation? that's how most of the people on the Internet will be viewing your color, assuming you have a standard-gamut monitor like most people)
    always CONVERT to sRGB for the World Wide Web
    i didn't read your link
    anyone who recommends "disable color management in Photoshop" -- set Working RGB to "Monitor RGB" -- AND MOST UNBELIEVABLY -- "Don't color manage this document" (ignore embedded profiles) ------ is pretty mixed up (in my opinion)
    i will recommend reading JEFF SCHEWE and BRUCE FRASER for professional color management information

  • When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

  • How to clear the Page '09 recents list?

    On Pages '09 and Mtn Lion.
    A right click on the Page icon shows a list of "recent" files, none of which exist any longer. Files that are open/closed do not get added to this list, but are added to the File>Open Recent list. Clear List clears this list, but doesn't clear the icon's right-click list.
    Having a functional right-click recents menu on the Pages icon sure would boost my productivity, so any help certainly will be appeciated.
    -Nick

    I did this every few minutes all evening and again this morning ,,,,
    "Sometimes it takes a few moments to happen, sometimes you have to open then quit the app a few times, but the list does goe away as do the thumbnail Icons from the Right-Click > Show Recents in The Dock Icon."
    .... and Pages' right-click's recents menu remained filled with non-existant files. Same problem in Numbers and Keynote.
    Did a Restart and the problem magically disappeared .... problem RESOLVED!
    -Nick T.
    note: This may have been the first reboot since installing Mountain Lion two or three days ago.

  • How to get the Trusted Identity Login Page with the needed parameters to make custom login screen instead of sharepoint Login Page?

    hi guys
    i have configured trusted identity provider for my public facing internet portal, but i dont want to use the login screen
    since i have about 10 site collection which will use this authentication.
    is there a class or property that gives me the url ready with the parameters like "wa" and "wtrealm" and the redirect url based on the place the user click the link from.

    You can create your own login page and specify the URL for it in the authentication provider settings of a Web Application or Zone.  So the easiest way to do what you want would be to extend your existing Web Application to a new Zone, change the login
    Page url to point to use your custom zone, and tell users to use the url of that zone to login with the custom provider you have built.
    If you want a single zone then you will need to modify a copy of the login page you display above and have it redirect to a custom login page for your identity provider if the pick the correct entry in the dropdown.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • In safari, On my Ipad2,I get the error message, "too may redirects" and the page won't load. Anyone with advice? I have cleared the cache, cookies, and history and restarted.

    In safari, on my Ipad2, I get the error message " too many redirects" and the page won't load. I have cleared the cache, cookies, and history and have rebooted and I still get the same problem. Any advice?

    In safari, on my Ipad2, I get the error message " too many redirects" and the page won't load. I have cleared the cache, cookies, and history and have rebooted and I still get the same problem. Any advice?

Maybe you are looking for

  • Install windows 7

    I need to install windows 7 on my satellite notebook.Windows vista has installed on it when purchase.their are two hidden recovery partions availabe.my questions are, If i installed win 7 as clear(not upgrade) installation what happen to this recover

  • Problem with overlays in photoshop cs6

    Hello, when I put this http://cjoint.com/13au/CHiaZT3ASRo.htm (I created) image on a forest it gives me this: what http://cjoint.com/13au/CHia3vEuTyN.htm is not what I want, I am simply remove the black sheet without keeping the transparancy thank yo

  • Error 107 During AE Trial Download; Troubleshooting Continues to Fail

    I've tried everyone's suggestions and all attempts continue to fail.  Does anyone know whether the age of the Mac matters?  I have a 2006 MacBook Pro.  In the System Software Overview, the 64-bit Kernel and Extensions line says "No".  Is the age of m

  • HT1551 Apple TV and billing info

    my Apple TV (1st generation) refuses to recognize my billing info on my computer...I have edited it (actually inserting the same info, as I have in the past) several times...the online help is useless in this regard...anybody have any ideas?...

  • Types of PO for contract release order

    Hi Experts, What kind of PO type should I use to perform contract release order? What is the purpose to use or not standard PO (NB)? In wihch case do I need to use PO type FO? Thanks in advance, Cesar