Clearing Form Fields

Using Output Designer 5.6, I have situation on a paystub form where if a paystub has no leave information, the leave info from the previous paystub is printing on the current paystub.  However as long as the current paystub and the previous paystub have leave info, the fields are clearing OK.  How do I clear the form before each paystub is printed?

"John Hall" <[email protected]> wrote in
message
news:go3lkf$2av$[email protected]..
> That's what I thought but couldn't get it to work. Maybe
I have to
> invalidate the current properties or something first.
I'll keep trying.
Try just binding it to a new, empty object.

Similar Messages

  • 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

  • Clearing form fields in a PDF

    I am using Microtype's TimeSavers and SP Form assistant to create forms and calculators in my FrameMaker documents. Is there a way to add an extendscript that will reset/clear the fields when the PDF is opened each time? It is going to be part of a book PDF on a server, so it's going to be accessed by many people. I need any fields to be cleared/reset on open so that each time it will be cleared for the person opening the PDF.
    Thanks, Gary

    Gary,
    I think that you'll have to do this on the Acrobat side by embedding a javascript routine in your form(s).
    There's an overview tutorial at AcrobatUsers on using Javascript with Forms, see: http://acrobatusers.com/tutorials/using-acrobat-javascript-with-forms
    IIRC, you'll need to create a "Document Level Script" (see: http://acrobatusers.com/tutorials/js_document_scripts) that contains:
    // reset the form
      this.resetForm();
    For more PDF scripting tips, check out Thom Parker's PDF scripting site: http://www.pdfscripting.com/public/main.cfm

  • Clear Form Fields

    Hi,
    I have downlaoded the above from teh adobe site, but not sure what folder to place in.  If any help the dowload gives the path below to use.
    Commands > Dreamlettes > Clear Initial Form Fields.

    I'm not familiar with the Extension to which you refer, but my guess is that it needs to write code to the <head> of your document.  If you're using DW Templates to generate pages, your Template's <head> tag needs to be editable. 
    <head>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    Nancy O.

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

  • Firefox form fields do not clear when selected (i.e., "Enter Zip Code" should disappear when clicked). Has to be erased in vers. 8 & now 12

    I just upgraded from vers. 8 to 12 in order to fix this.
    Can't remember when this started, but it was mid version, not due to an update.
    At first, I thought vendors programmers were getting lazy, but then realized it was too prolific.
    Firefox form fields must be erased manually, after entering -- should go blank as soon as selected.
    Is this a setting I am missing

    In some cases, the temporary ("placeholder") content is inserted by a new method available in HTML5. This page has some boxes you can use to test whether this new feature is working in your Firefox.
    [http://www.html5accessibility.com/tests/placeholder-labelling.html HTML5 placeholder attribute tests] (please ignore the discussion about bugs)
    In other cases, the site may be using a script to clear the temporary content as soon as you click the box. This is necessary to support older browsers. If you block JavaScript on the page -- either by unchecking the Enabled box in the Options/Content tab or using the NoScript add-on -- then the temporary content will not be removed. However, if you are not blocking JavaScript, then the problem could be (i) the site's scripts or (ii) a conflict with another add-on, perhaps one that relates to automatic form filling.
    Can you give an example of a page where this is a problem?

  • Is there a way to clear the default text in a form field onclick?

    I am trying to add javascript to clear the default text in a form field using onclick?  Any idea?
    Thanks!

    Instead of entering any default text in the field, get rid of any scripting you currently have for the field and use the following custom Format script:
    // Custom Format script
    if (!event.value) event.value = "Your default text goes here.";
    The string you specify here will be displayed when the field is blank, and the text that's entered in the fields otherwise. It will also go away when the field has the focus, which is what you want.

  • Does anyone know how to clear the fields between uses of a form used in Adobe Reader on an iPhone?

    The iPhone app for Adobe Reader is automatically saving the form each time it is filled out.  (Windows Adobe Reader does not do this.)  This means that you have to manually clear each field before you can use the form again.  Does anyone know a work-around?
    Thanks,

    Hi,
    Please post your question to the Adobe Reader for iOS user forum:
    http://forums.adobe.com/community/adobe_reader_forums/ios
    Regards,
    Brian

  • Acrobat XI programmatically reset/clear all form fields when opening a PDF form

    I've got a PDF form document that I'm working on.  I'd like to add something to it to programmatically clear or reset all form fields to blank when the document is opened.
    Thoughts/ideas??
    Mucho thanks!!

    You can use the resetForm JavaScript method, either in the initial page's Page Open event or in a document-level JavaScript whic will execute when the document is opened.
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.523.html

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

  • Clear Specific Forms Fields

    How can I clear specific forms fields without resetting/clearing entire PDF document, using a button - Can anyone help with the code?
    I am using Adobe Acrobat 6.0 Professional
    Thanks

    In Acrobat forms you can use the following JavaScript for teh "Mouse Up" action:
    var aClearFields = new Array(); // define array for field names
    aClearFields[0] = "FieldName1"; // first field name
    aClearFields[1] = "FieldName2"; // second field name
    // and so on for all the field names
    this.resetForm(aClearFields);
    // or
    // pass an array of strng names
    this.resetForm(["FieldName1", "FieldName2"]);

  • Round trip clearing adobe form field values not binded to webdynpro context

    Hi ,
    I have developed a webdynpro ABAP application with Interactive form. I'm calling a webservice on 'exit event' of the one of the form fields. Once webservice is executed, Im filling a table with 300 rows which is in the form. The table fileds are binded to webservice fields from the dataview of the form , these are not webdynpro context attributes in the data view.
    But when I open any seach help , this table values are disappearing. I need to execute the webservice again to get the values.
    can any one tell why the values in the table are disappearing? since I have binded to the webservice fields the values should remain there.
    Apprecaite your response.
    Regards,
    Ravi

    I looked over that note yesterday, but too quickly - i thought it was an older note explaining which standard programs to run to test out the connection etc...
    but i see now that there is an important point:
    The "pdfSource" attribute of the InteractiveForm UI element should be linked only if the Web Dynpro ABAP application requires the PDF document for further processing (saving data to the database, and so on). However, it is mostly only the data entered in the interactive form that is relevant for the application. If this attribute is linked, the Web Dynpro ABAP framework must request an updated PDF document from the Adobe document services each time data is changed in the form.
    It looks like this is saying that a round trip is possible in WDA.
    EDIT - I wish SAP would fix this certificate issue. My first post every day is doubled because of it.
    Edited by: robert phelan on Jan 7, 2010 3:22 PM
    Edited by: robert phelan on Jan 7, 2010 3:25 PM

  • Link a Form Field to new Text Field

    PDF - form field
    Looking for a code to link a form field(text_1, on page #5) to
    another, new form field(text_2, on pages 2-4).
    Maybe a "Page Properties" action (i.e., Page Open: field text_2 = field text_1)
    ~~
    Why....
    busy but here's why
    In the PDF, there are Form fields on page 5 which interface (externalinterface) with an RMA ( a SWF) on page 2.
    This all works well.
    As the form fields must be carried forward (from page 5 to page 2... to interface the RMA),
    the orignal page 5, From fields are copied to pages 2-4 and then "Hidden".
    Again, this works just fine.
    A reset "action" (button) was added to, well, clear the Form Field for easy reuse.
    The reset ''action' does it's job and clears ALL form fields with the same "Name".... on every /all pages.
    This causes the dynamic interface, with the RMA, to display blank fields (within the SWF).
    This will effect the User's experience.
    ~~
    Work aound.....
    Find a way to label the Form Fields (page 5) so that "only they" are reset, and no others.
    Create a link of Form Field inputs on page 5 (with names... x,y,z),
    to new Form Fields pages 2-4 (with a differnet names... a,b,c).
    Thanks in advance for your help....
    DS

    Hi jm,
    This may be what you are after. No text wrap, but notes are there.
    Type an account number into the Enquire table to get Client and Contact
    Formula in B2 (and Fill Right)
    =INDEX(Database::B,MATCH($A2,Database::$A,0))
    Large notes display table with Wrap Text
    Formula is
    =INDEX(Database::D,MATCH(Enquire::$A2,Database::A,0))
    All together:
    Change it around if you want to look up by Client instead of Account
    Regards,
    Ian.

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

  • In Adobe Acrobat XI Pro, how do I validate a form field so that it's numerical value is less than or

    I have one numerical field named "B," and I need to validate it so that it is less than or equal to the value of another field named "A." I can't figure out how to do that!

    OK, so the custom calculate script for field B could be something like:
    (function () {
        // Get field values as strings
        var sA = getField("A").valueAsString;
        var sC = getField("C").valueAsString;
        var sD = getField("D").valueAsString;
        // Only perform the calculation if all fields are filled
        if (sA && sC && sD) {
            var sum = +sC + sD;
            event.value = sum;
            // Alert the user if the sum is more than A
            if (sum > +sA) {
                app.alert("Error message goes here");
        } else {
            // Blank this field if all fields are not filled in
            event.value = "";
    Instead of (or in addition to) an app.alert popup, you could place this message in a read-only form field, and clear it if there is no error condition.

Maybe you are looking for

  • Can't view pdf files in safari but can in webkit nightly

    Apologies if this post is a duplicate. Have tried searching without success. Using Safari Version 5.1.7 (6534.57.2) on OS X 10.6.8 (Macbook Air) when I click a PDF link, it is downloaded and then I need to double click to open in Preview. However, if

  • Look n feel in D2k 10g

    Hi, Is it possible Look n Feel in form 10g with out implementing PJC??? Plez help me...

  • SOAP with HTTPS Connection

    Hi All, For a requirement, I need to connect the PI with 3rd party Web server system for both inbound and outbound interfaces. Currently, I am with SAP PI 7.31 single stack system. I was communicated as HTTPS without client Authentication option need

  • Mobile synced to cloud but not iPad

    I Can't figure out what's wrong. Since the update to Lightroom 5.5, my mobile sync has quit working. It was working perfectly fine before. ive not changed catalogs. ive done the delete all mobile data in Lightroom preferences. (Which at least allowed

  • Converting the Audio portion of the Media into a MP3

    I would like to be able to copy the audio portion of about 1 - 2 hrs. of media and convert it into a MP3. Is there a simple way to do it using Premiere Elements 12? or in combination with Audacity?