Clearing Forms

Hi
At the risk of sounding stupid....
I have several search screens I have built as well as record creation/edit screens, they all work perfectly.
The problem I have is that if you perform a search, then move to another menu entry, then come back, the search is still populated. The same happens with the creation screens.
I think the creation screen are simple to solve, I think that is simply a case of clearing the fields after the save has occurred.
How do you clear the search pages, preferably the result set as well?
I was thinking maybe calling some method, called using invokeAction when the page is displayed. The problem is from reading around the invokeAction (using postback test) will only get called the first time the page is displayed, not when you come back to the page from a menu entry.
Oh, this is all in jDeveloper 10.1.3.2.0 using ADF etc.
Tom

I was correct about the edit/create screens, simply cleared the binding values after the search, all is well there now.
Still stumped on the search screens.
Tom

Similar Messages

  • Clear form not working in multi record form 10g.

    I have a multi record block form, when sys_indicator is 'Y' in any of the records, user should not be able to delete this record. In Pre_delete trigger, I put this code
    below.
    IF :CST_REFERENCE_CODE.SYS_INDICATOR = 'Y'
         THEN
         MESSAGE('You cannot delete this record. Consult your Administrator');
         MESSAGE(' ');
         CLEAR_FORM(NO_VALIDATE);           EXECUTE_QUERY;
    --     RAISE FORM_TRIGGER_FAILURE;
         END IF;
    I want to clear form an re_query, but the clear form is not working. Help

    CLEAR_FORM is a restricted built-in and is not allowed on PRE-DELETE trigger.
    the purpose of PRE-DELETE trigger is to do some validation before the actual delete happens and may be delete the child records before the master record can be sucessfully deleted.
    it will be better if you could explain that why you need some different functionality on PRE-DELETE trigger, which looks strange. Like, user is trying to delete the record and you want to restrict user from deleting the record if some condition is met and want to re-query. what is the main purpose of doing query here again or why you want to clear the form.

  • Clear Form - Problems

    The "clear form" tool does not work properly in a particular fillable form. it will clear txt and data fields but will not clear checkbox fields?? The "clear form" tool will work on other fillable forms of mine.

    There's something screwy about the file. It might be best to start from scratch. I'd use a PDF generated using Acrobat and not Mac's native print to PDF.
    I noticed that internally (to the form fields) there are multiple references to fonts that aren't actually used in the file. This could have happened when you tried these fonts with the fields and changed back to Helvetica, since Acrobat does not do the necessary cleanup. Note that the file size is rather large for a form like this at 2.47MB, 87% of that being due to fonts, most of which are those orphaned fonts whose data is still in the file. Also note that Arial somehow got subsets embedded multiple times. I'm not sure how this happened. Did you edit the text of the PDF a lot?
    This isn't the cause of the problem, but when you have a group of check boxes (e.g., for Yes/No fields), if you give each check box in the group the same name but different export values, only one will be able to be selected at a time. This will be prevent someone from selecting both Yes and No for the same question.

  • Protect Form Fields from "Clear Form"

    I've created PDF Form with various fields, and created button to make readonly for all the Field data. This PDF Form will be used by 3 persons in different section. How to protect all filled text fields from "Clear Form" function in Form Tool.
    Once the Form fields are filled by 1 person, the other person can not use the "Clear Form" function to clear all filled fields. Please guide to to protect filled text,checklist fields from "Clear Form".

    If one flattens the form fields then they become context and are no longer form fields. It is possible to selectively flatten PDF content like annotations, form fields, page ranges, and by the "print/no print" property for Acrobat versions 6 or above.
    The flattenPages is not available to Reader.
    PDFScripting.com has a tool bar button that can perform selective flattening.

  • 40655SQL error forced rollback: clear form and re-enter transaction

    Hello ,
    I have ORACLE 10G & Forms 6i on Windows server 2008 . When I open the forms for some work , it give me error in few minis.
    FRM-40655: SQL error forced rollback: clear form and re-enter transaction.
    I have not done anything unusual in form design. it was working properly from a long time.
    Yesterday i set the default profile to idle_time = 20. Will that make any problem ???
    I checked my Alert Log but no sign of any deadlock in it, or any other unusual activity ....
    What is the solution ???
    Thanks in advance ..
    Edited by: DBA4 on Jul 17, 2010 11:43 AM

    Thanks for the reply ......
    I would like to tell some more details here.
    Previously i wanted to set an IDLE_TIME limit of 20 mins for all users in the DEFAULT profile.
    So i did the process for the same...
    I set the resource_limit parameter to true & then altered the default profile's idle_time to 20.
    soon after that all the users who were accessing the database got this error while working ....
    SQL error forced rollback: clear form and re-enter transaction.
    In our case one user is opened & accessed by many people.
    for ex - a user called UERP is open at Machine1 & also at Machine2. So at a time a single user can be opened at multiple sessions.
    can this be the problem for forced rollback ???
    My basic need is , i want to set the IDLE_TIME to 20 min but users should not face forced rollback error ????
    what should i do ???
    thanks in advance ....
    Edited by: DBA4 on Jul 19, 2010 2:28 PM

  • FRM-40655: SQL error forced rollback: clear form and re-enter transaction.

    Hello ,
    I have ORACLE 10G & Forms 6i on Windows server 2008 . When I open the forms for some work , it give me error in few minis.
    FRM-40655: SQL error forced rollback: clear form and re-enter transaction.
    I have not done anything unusual in form design. it was working properly from a long time.
    Yesterday i set the default profile to idle_time = 20. Will that make any problem ???
    I checked my Alert Log but no sign of any deadlock in it, or any other unusual activity ....
    What is the solution ???
    Thanks in advance ..

    This happens due to dead lock situation
    To avoid this problem, add NOWAIT option to the UPDATE and DELETE statements, which returns ORA-00054 error, trap this error and display user defined message like 'The record is being accessed and try after some time'.
    This even improves the performance
    because no process waits for the locks preventing dead locks.
    If it is due to the UPDATE's or DELETE's with base table blocks in the form, in the PRE-UPDATE and PRE-DELETE triggers write SELECT statements to select the particular row with FOR UPDATE NO WAIT option. Handle by trapping the ORA-00054 error

  • Problems with LOV+Clear Form +Enter Query

    Hi Friends,
    I have a Master Detail Form which is only query form my
    requirement is as soon as the user presses F9(List of Values) on
    Employee Number then 3 activities should be done.
    1. Clear Form
    2. Enter Query
    3. Displaying List of Values
    Any ideas please let me know
    Thanks in Advance
    Rao Guduru
    null

    Hi Rao,
    Here is solution for your problem.
    in KEY-LISTVAL trigger of the Employee number filed write
    following code
    Begin
    Do_Key('clear_form');
    Do_Key('Enter_Query');
    End;
    in the WHEN-NEW-ITEM-INSTANCE Trigger of Employee number filed
    BEGIN
    If (:system.Mode = 'ENTER-QUERY') Then
    list_values;
    End If;
    END;
    If the Employee number is not the first navigable item in that
    block , then in the first navigable item's WHEN-NEW-ITEM-
    INSTANCE trigger write the following code
    If (:system.Mode = 'ENTER-QUERY') Then
    go_item('EMP1.EMPNO');
    End If;
    Let me know whether it solved your problem or not.
    Regards
    Surendra.
    Rao Guduru (guest) wrote:
    : Hi Friends,
    : I have a Master Detail Form which is only query form my
    : requirement is as soon as the user presses F9(List of Values)
    on
    : Employee Number then 3 activities should be done.
    : 1. Clear Form
    : 2. Enter Query
    : 3. Displaying List of Values
    : Any ideas please let me know
    : Thanks in Advance
    : Rao Guduru
    null

  • Exit / Clear Form & raise form_trigger_failure

    I hope someone has encountered a similar situation and can help me out here.
    I need to provide the functionality of allowing the user to Exit or Clear a form in case there are errors due to item validations.
    The problem I am encountering is that since the item validations have triggered form_trigger_failure, the Exit / Clear buttons that I coded with Exit_form / Clear_form do not work.
    I can have the user use the Exit key to exit, but it would be great if there is some way of providing this functionality using a button.
    Thanks in advance.

    Thileepan,
    Thanks for your suggestions.
    I am already using Clear_Form(No_Validate) and the fields are set to Required = No, validation being done in a when-validate-item trigger.
    I tried suggestion #3, but that results in the validation that takes place as the user leaves a field being lost, which they want(won't accept form level validation).
    Suggestion 4 works for the clear form, but if I don't raise form_trigger_failure in the when-validate-item trigger the validation error message is displayed and focus moves to the next field in case of user input error. What I want is to have the focus stay in the field containing the error and still give the user the ability to Exit/Clear the form in case they get tired of trying to come up with a value that satisfies the validation criteria.
    Thanks.

  • Clear Form button on Acrobat Reader

    Just wanted to find out if there has been an update for the Acrobat Reader latest version for the IPAD for a Form that opens on Your IPAD. Your Submit button works, but the Clear Form button will not work on an IPAD. Are you able to tell me when this might be done for the IPAD. It is a crucial button needed on Forms that are opened on an IPAD.

    Here's a recent discussion about this, with some input by someone from Adobe: http://forums.adobe.com/thread/1356621

  • Clear form upon opening document

    I have a two page form.  I can clear the first page by clearing it on opening via the page property opening actions - clear form ... but if I do that and scroll to the second page and back to the first .. I loose everything that was entered as I guess I'm "reopening" the page.  Is there a way I can clear the form upon opening the document with a document level javascript??
    Thanks in advance ...
    Steve

    Thanks ...
    I used this to cover all the fields and it worked:
    this.resetForm(["Name","Date","Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","Q10","Q11","Q1 2","Q13","Q14","Q15","Q16","Q17","Q18","Q19","Q20"]);
    I tried using the expression  /^Q/ rather than type out all the Q1, Q2, etc but couldn't get it to work ... so typed it all out ... is there and easier way for me to do this in the future?
    Thanks again
    Steve

  • Clear form Option resets read only properties

    Hey guys,
                         Using your help I got my problem solved last time. So when I have a series of Questions, I set all questions to read only in their properties except the first Question. Once the first question is answered, using the script below, I then set read only for the next question to false and students can answer the next question now. So using this pattern, it allows them to answer one question after the other without skipping any.
    The Mouse Up action for each "Radio Button1" could be:
    if(event.value != "Off") this.getField('Radio Button2').readonly = false;
    Now, while this works perfectly for time being, I keep experimenting with this form with lots of modifications made as needed. When I use the "clear form" Option to empty all the form fields before saving it, all the read only Questions reset and now when we close and re open the file, any question can be answered and the script used above has no more value.
    What is the script needed here to avoid the read only questions to reset when i use the clear form option. Please help me out here!

    Clear the form menu action or the "this.resetForm();" script only resets the values of the fields.
    You script will one execute when there is a Mouse Up action, and if a radio button or check box is set to read only then there can be no field actions. The field is locked to user interaction and can only be manipulated by JavaScripts.
    There is no trap for the reset or clear action so even if you created a button to reset and clear the form fields with the read only property set, you would still have the issue of the user using the menu option. You can add a document level script to clear the read only property of fields when the form is opened.

  • Clear-form(no_validate)

    I am using Forms 6i. In my form, I have one button called 'Clear'. In when-button-pressed trigger I have written the code as Clear-form(no_validate). Also I have one more field in which i have written some code in the 'when validate item' trigger(I am validating the number entered if it is wrong i am raising raise form_trigger_failure). Now the text field is having some invalid number, I want to clear the form instead of retyping the number. When I press the 'clear button', still the validation code is executed for that field and I am unable to clear the form. Is there any way to solve this problem.
    Thanks in advance
    regards
    Ramakrishnan

    Hi prasad thanks
    it works fine as per your idea. is there any other way to work around it.
    Regards
    Ramakrishnan

  • Clear form after CREATING record

    Right now when I fill out a form then click the CREATE button, the record shows up in the report but it also remains in the form in "edit"mode.
    What I want is after I click the CREATE button, the form clears and the CREATE button remains so I can add another record.

    I don't want to clear it for the whole page because I have 2 regions on this page. One region has a report, the other region is the form. So, when I create the record in the form I want the report to populate, but I want just the form region to clear cache. So, how do I clear the cache for just a region, not a page.

  • Ipad form ....help needed please.  Clear form after email as read only and sequential numbering

    Hi
    i am a complete novice at this however this is what I want to achieve.
    i Have a paper duplicate report sheet that I want to get electronically, I want to be able to add sequential numbers to each report and be able to email the report to the client from a email field in the form
    so far I have so I have created the pdf form, I have a button that runs a JavaScript that will hide the submit button and then send to the clients email and to bcc myself so I have a copy of the report also. This has been tested and works
    i Am struggling with sequential numbering and once the form has been emailed it's un-ditable as the JavaScript has converted it to read only for emailing which is good as it can't be edited. But Is there a way on my submit button to email the report as read only and then clear all form fields in the report ready for filling with the next sequential number?
    I Have had a good look sound for a resolution to this but am struggling
    many thanks in advance for any feedback
    paul

    Hi Paul,
    I presume that you are using the desktop version of Acrobat Pro to author the form.
    I will move this discussion to the PDF Forms forum so that the experts in the forum can answer your question.
    Please note that the Reader/Acrobat DC mobile apps (for iOS, Android, Windows Phone, etc.) have limited JavaScript support.
    JavaScript for Reader Mobile API Reference (iOS)
    You may be able to make the form work as you want in the desktop version of Adobe Reader/Acrobat Reader DC.  However, some functionality (e.g adding a sequence number to each PDF) will not work in the mobile apps due to the limited JavaScript support.  Sorry for the inconvenience.

  • How can I clear Form Field?

    Hi Friends,
    I have created a new custom login named ZSYSTEM. It is a copy of the standard BSP Login Application SYSTEM. The ZSYSTEM uses the subclass  ZCL_BSP_LOGIN_APPLICATION of CL_BSP_LOGIN_APPLICATION.
    In the method IF_BSP_APPLICATION_EVENTS~ON_REQUEST I have wrote a new
    business logic for the login. The issues are the istructions:
      request->set_form_field( name = 'sap-user' value = '' ).
      request->set_form_field( name = 'sap-alias' value = '' ).
    They don't run. The fields 'sap-user' and  'sap-alias' aren't cleaned. I need clear the form field in case of user not authorised.
    I use the same custom Login BSP ZSYSTEM on NTW 7.3 and all run good.
    I read the notes 1513787 and 1421668.
    The SP level of SAP_BASIS  where issues happen is SAPKB70018.
    Do I need to install the SP SAPKB70022?
    Is there another possibility to clear the value of an form field?
    My code is as follow:
      DATA: lv_sapuser TYPE string,
            lv_sapalias TYPE string,
            lv_username_ret TYPE string.
      CLEAR: lv_username_ret, lv_sapuser, lv_sapalias.
      lv_sapuser = request->get_form_field( 'sap-user' ).
      lv_sapalias = request->get_form_field( 'sap-alias' ).
      TRANSLATE lv_sapuser TO UPPER CASE.
      TRANSLATE lv_sapalias TO UPPER CASE.
      IF NOT lv_sapuser IS INITIAL OR NOT lv_sapalias IS INITIAL.
        IF NOT lv_sapuser IS INITIAL.
          lv_username_ret = lv_sapuser.
          CALL FUNCTION 'Z_CHECK_LOGIN_ZGR1_CALL'
            DESTINATION 'APPREZZI'
            CHANGING
              iv_username = lv_username_ret.
        ENDIF.
        IF lv_username_ret IS INITIAL AND NOT lv_sapalias IS INITIAL.
          lv_username_ret = lv_sapalias.
          CALL FUNCTION 'Z_CHECK_LOGIN_ZGR1_CALL'
            DESTINATION 'APPREZZI'
            CHANGING
              iv_username = lv_username_ret.
        ENDIF.
      ENDIF.
      IF ( NOT lv_sapuser IS INITIAL OR NOT lv_sapalias IS INITIAL ) AND lv_username_ret IS INITIAL.
        request->set_form_field( name = 'sap-user' value = ' ' ).
        request->set_form_field( name = 'sap-alias' value = ' ' ).
      ENDIF.
        CALL METHOD super->if_bsp_application_events~on_request
          EXPORTING
            runtime    = runtime
            request    = request
            response   = response
            navigation = navigation.
    Regards,
    Antonio

    Hi,
    I guess you need to clear the attribute bsp_user
    and value
    as per code,
    sap-user is having value property set as value="<%= application->bsp_user%>".
    Here bsp_user is the attribute from claSS CL_BSP_LOGIN_APPLICATION.
    Please check same for sap-alias and clear the values accordingly.
    Thanks,
    Chandra
    Edited by: Chandrashekhar Mahajan on Oct 6, 2011 2:09 PM

  • I am unable to clear "Form & Search History" because that option is not available. How do I unclick it?

    When I close Firefox, I clear everything except the "Form & Search History" which is greyed-out so I can't access it. Also, the options I can choose are not saved by Firefox.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    See also http://kb.mozillazine.org/Preferences_not_saved and [[Preferences are not saved]]

Maybe you are looking for