Allow print after filling mandatory fields using PrePrint

I have a form in which I want to add a button which will allow the user to print the pdf file only when two required fields namely Text1 and Text2 are filled in. The same shall apply to Ctrl P command also.
How can I do so?
During google search, I have found some stuff on this but since I am not very well versed with pdf js (even with js) I am not able to make it.
Can it be done in Adobe Live Cycle Designer ES? There is a 'PrePrint' event, but I have no clue on how to make it workable to my requirments?
Your help is highly appreciated.
Regards
Sujit Talukder

Thank you Clintonfor the reply.
I have used the code, Pressing Ctrl+P is giving the message but thereafter the Print Dialog box appears and thereafter it prints the page as usual and not a blank page.
I have used the code as follows-
topmostSubform::prePrint - (FormCalc, client)
if (
topmostSubform.Page1.Name_of_the_Employee.isNull or
topmostSubform.Page1.PAN_of_the_employee.isNull
then
   this.presence = "hidden"
   xfa.host.messageBox("This form does not allow printing of its contents until all required fields have been completed.  If you print now, the page(s) will be blank.  Please complete all required fields first, then printing of the form contents will be enabled.")
endif
and-
topmostSubform::postPrint - (JavaScript, client)
this.presence = "visible"
Where is the lacuna?

Similar Messages

  • Mailing details to our seniorguy after filling screen fields.

    hi
    i have screen in modulepool programming in that screen i have a screen fields of empno,empname,salary,medicalbill,allowance etc after filling these details by an employee and if he click (mail)  pushbutton the screen fields with values will submitted to his senior guy as a mail .pls send suggestions.
    thankful to all,
    regards
    srinivasulu.

    Hi Srini,
    Have a look at the code for sending mail :-
    *&      Form  send_mail_to_promotion
    *       TO SEND MAIL TO PROMOTION SECTION
    *      -->PF_PERNR  pa0000-pernr
    *      -->PF_BEGDA  pa0000-begda
    *      -->PF_RANK   pa9007-rankcd
    FORM send_mail_to_promotion  USING  value(pf_pernr) TYPE pa0000-pernr
                                        value(pf_begda) TYPE pa0000-begda
                                        value(pf_rank)  TYPE pa9007-rankcd.
      DATA: lt_objcont    LIKE solisti1 OCCURS 10 WITH HEADER LINE,
            lt_reclist    LIKE somlreci1 OCCURS 5 WITH HEADER LINE,
            lf_doc_chng   LIKE sodocchgi1,
            lf_entries    LIKE sy-tabix,
            lf_name       TYPE pa0001-ename.
    * Fill the document
      lf_doc_chng-obj_name = 'URGENT'.
      lf_doc_chng-obj_descr = 'Update Promotion Status!'.
      lf_doc_chng-sensitivty = 'P'.
      lt_objcont = 'Promotion order has been issued for the person'.
      APPEND lt_objcont.
      CONCATENATE 'Date:' pf_begda
                  INTO lt_objcont SEPARATED BY space.
      APPEND lt_objcont.
      CONCATENATE 'Personnel Number:' pf_pernr
                  INTO lt_objcont SEPARATED BY space.
      APPEND lt_objcont.
      CLEAR lf_name.
      SELECT SINGLE ename
      INTO lf_name
      FROM pa0001
      WHERE pernr = pf_pernr.
      CONCATENATE 'Person Name:' lf_name
                  INTO lt_objcont SEPARATED BY space.
      APPEND lt_objcont.
      CONCATENATE 'Rank:' pf_rank
                  INTO lt_objcont SEPARATED BY space.
      APPEND lt_objcont.
      lt_objcont = 'Please update rank of the person'.
      APPEND lt_objcont.
      lf_entries = LINES( lt_objcont ).
      READ TABLE lt_objcont INDEX lf_entries.
      lf_doc_chng-doc_size = ( lf_entries - 1 ) * 255 +
                             STRLEN( lt_objcont ).
    * Fill the receiver list
      CLEAR lt_reclist.
    * NOTE::
    * REPLACE THIS LINE WITH LOGIN OF PROMOTION SECTION
      lt_reclist-receiver = 'RAJESH'.  " replace with <login name>
    * ::ETON
      lt_reclist-rec_type = 'B'.
      lt_reclist-express = 'X'.
      APPEND lt_reclist.
    * Send the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
        EXPORTING
          document_type              = 'RAW'
          document_data              = lf_doc_chng
    *      put_in_outbox              = 'X'
        TABLES
          object_content             = lt_objcont
          receivers                  = lt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7.
    ENDFORM.                    " send_mail_to_promotion
    Hope it solves your problem.
    Regards,
    Manish Joshi
    Don't tell me, you don't know how to award points.

  • How do I print a interactive form out? It allows printing and filling.

    Hi, I'm trying to print out an interactive form that I filled out and then saved on my hard drive. The author allows printing and filling out of the PDF when it was created. I'm running Windows 7 64-bit and have Adobe Reader XI (11.0.06) installed along with the current drivers for my compatible printer. Within the same PDF the first sheet "instruction sheed" is an all text flat form, which prints just fine. The problem lies when I try to print other sections of the PDF, When I try to print it all I get is the header and a footer that the author created, but all the spaces where questions/ text and my fill in answers don't show up on the print preview image or when the printed sheet comes out of my printer.
         I have tried to print as an image without success. I don't think its an author issuse because it was released out of a California Department for several houndred/thousands of others. Please if you have any ideas or questions i look forward to any advice.

    Sorry I forgot to add that the PDF is devided by a "Chapter" style cover face that devided multiple sets of forms in to categories. At the bottome of these categories is a "Print whole document" which can only be clicked once the whole thing has been filled out. Do to some information over lap some dates don't follow the (time line order) it requirest to fill in the data so two of the categories show up as incomplete. Take a look at the document yourself, maybe I NEED to rewrite the information and see if that works.
    *Edit* Looks like I CAN print a blank form at the begining when it asked me if i want a blank form, will try to rearange dates so it will show as all COMPLET.
    PDF file can be found at the California government website:
    http://www.chp.ca.gov/recruiting/pdf/Chp446.pdf
    http://www.chp.ca.gov/recruiting/pdf/Chp446.pdf

  • System asking me to fill MANDATORY fields, even I used EXIT-COMMAND for F3

    HI Experts,
    issue- there is mandatory field in the screen, so, am using the folllowing code, system asking me to fillup the mandatory field.
    then, i used exit-command, but, still its asking me to fill the mandatory fiels???????????
    code is,
    process after input.
    ***Exit command
    module cancel at exit-command.
    module cancel.
    module user_command_9001.
    module cancel input.
    case: ok_code.
    when wa_con_back.
    clear ok_code.
    set screen 0.
    leave screen.
    when wa_con_exit.
    clear ok_code.
    set screen 0.
    leave screen.
    endcase.
    endmodule. " cancel INPUT
    thanq

    I am not sure but try making a specific module for your exit handling, for instance:
    module do_exit at exit-command.
    module cancel
    module user_command_9001.
    Hope it helps you,
    Bert

  • Mandatory fields used in up dating vb60(vedor invoice) and ks01(cost centr)

    Hi all,
    can anyone plz send me the mandatory fields along with discription for recording vb60(vendor invoice) and KS01(cost centre).
    ill award the points plz send me.

  • Runtime error in CRM_DATAEXCHG_BADI after adding customer fields using EEWB

    Hi gurus,
    I am getting short dump in ZCL_IM_EEW_DATAEXCHANGE06~CRM_DATAEXCH_AFTER_BAPI_FILL.
    I've added 3 custom fields in ORDERADM_I structure using EEWB. ( created in ECC also ).
    Now when i create a sales order, its not flowing to ECC as i am getting the below error.
    UC_OBJECTS_NOT_CONVERTIBLE
    Error occured while executing below statement
    MOVE <ls_bape> TO ls_bapiparex_wrk+lc_offset.
    <ls_bape> is having all the custom fields i've created using EEWB.
    Error short text i am getting in st22: ' Data objects in Unicode programs cannot be converted.'
    Kindly help.
    regards,
    Arun N K.

    Hi Robert,
    Thanks for the reply.
    I was not able to use move-corresponding as there was no matching fields in the destination structure.
    Anyway we found out the issue. One of the custom fields generated using EEWB, used INT4 data element. I deleted the field and created it again using character (NUMC) data element, and it worked fine.
    I still don't know the exact problem of using integer data element. Kindly share if anyone find the reason.
    Thanks,
    Arun N K.

  • Allow user to fill in form using reader 9.0

    I am creating a vb.net that will form fill a pdf that was created in acrobat 9.0. I set "extend features in adobe reader" for the form that the app will use. The user will then save the app to their local drive. I want them to be able to open the file locally and be able to fill in additional info in the form. However, when they open the pdf, the "extend features in adobe reader" has been removed. Is there a way to set this using the sdk?

    > Is there a way to set this using the sdk?
    No.

  • Auto filling the fields using refcursor Procedure

    Dear All,
    I have requirement where user enters the Order No and press enter or tab others fields must get filled automatically. I have written procedure where its returns a record set. I want to call that procedure's output.
    How can I do this?
    Thanks in Advance

    Hi VC, Thanks alot again! THe link was really helpfull but I can i fetch result from procedure? if so how can I do that? and another issue for temprorily im fetching from a table. it worked but the values as already filled on page load it self, even if i change my field others are not changing? where am i going wrong? pls correct me!
    and following are my dynamic action property
    Event: Change
    Selection Type: Item(s)
    Item(s): P1_Order_No
    Condition: is not null
    True Action
    Action: Execute PL/SQL Code
    Fire On Page Load: Ticked
    Stop Execution On Error: Ticked
    PL/SQL Code:
    BEGIN
    SELECT
    Customer_Name,
    Order_Date,
    Deliver_Address,
    INTO :P1_CUSTOMER_NAME, :P1_ORDER_DATE, :P1_DELIVERY_ADDRESS
    FROM SALES_ORDERS
    WHERE ORDER_NO = :P1_ORDER_NO;
    EXCEPTION WHEN OTHERS THEN
    NULL;
    END;
    Page Item to Submit: P1_ORDER_NO
    Page Item to Return: P1_CUSTOMER_NAME, P1_ORDER_DATE, P1_DELIVERY_ADDRESS
    Suppress Change Event: No

  • Help!!! error after add new field use EEWB

    Hello,
    I add a new field through EEWB. The new field is add on Complaints header called Internal Reference.
    I use wizard of EEWB to add new field , business object: CRM business transaction, then in the wizard, I choose complaints as the type of the transaction, and I check the "search" box for the field, because I also need to use it as search criterial.
    Then I go into the BSP_WD_CMPWB, the new field is already available for component BT120H_CPL, view Details. And it is also available for the search view.
    So far, everything looks fine.
    But when I go into the UI for testing, when I perform the complaints search and click one record to go into the complaints view, it gives me a exception on header. I use SAAB to check the details, it like following:
    BTExtRefSet.BTEXTREF/MainWindow
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - Define Application Component 'BTExtRefSet'. 
    Method:  CL_BSP_WD_REPOSITORY=>GET_CMP_USAGE_DEF 
    Source Text Row:  9
    Is there anything I missing to do so I get such error message???
    Edited by: SAP-Basis on Dec 1, 2008 5:12 PM

    Hi All,
    I have the same error but I am not usig EEWB.
    I am trying to display my custom set types as assignment blocks in the Web UI on 'objects' view. I able to see my set type as assignment block, but when I click on it, I have this error:
    ZXXX.PRDGENSET/SLSetOVE
    An exception has occurred Exception Class CX_BSP_WD_INCORRECT_IMPLEMENT - Define Application Component 'ZXXX'.
    Method: CL_BSP_WD_REPOSITORY=>GET_CMP_USAGE_DEF
    Source Text Row: 9
    ZXXX - set type name.
    I doubt my enhancement set is not getting loaded.
    Could you please let me know how do I solve this error.
    Thanks,
    Aditya.

  • How to fill a field with after changing another field in a multi form?

    Hi,
    I have multi occurence form in which multiple record are showeds and/or added.
    One field is a dropdown field, after filling this field (selecting a value in the dropdown), another field needs to filled with the selected value.
    My problem is that only the first occurence is filled with the value of the selected dropdown, even when filling the dropdown field in one of the other occurences.
    I tried point to the other occurences but this was not succesfull
    See script
    So when a sparepart is selected from the dropdown sparepart, the field defectpart must be filled the selected sparepart, when I have multi forms (occurences) only the first occurence defect part gets filled with the selected parts, even when a sparepart from another occurence is selected.
    data.p1.spare_parts.spare_parts::change: - (JavaScript, client) -
    p1.spare_parts.DefectPart.rawValue =  xfa.event.newText;
    Can anyone help to solve this problem
    Thanks
    Christophe Van Mechelen

    hi,
    Your code is right, i dont know why its not working,
    try this,
    dropdown field in change event,
    var c = xfa.host.newtext
    textfield1.rawValue = c;
    (or)
    textfield1.rawValue = xfa.event.newText;
    by
    Parthi

  • Mandatory fields  in dynpro

    Hi!
    I have some mandatory fields in my dynpro, but i also have a option to fill data in the dynpro after filling 2 fields and clickin a button.
    The problem is that if I click the button, it says that I have to fill the mandatory fields. Is there a way to stop the control-function only for this button-click?
    i tried it with exit-commands, but so i don´t get the data from the 2 filled fields, because it only transports the user-command.
    thank you in advance!
    Andreas

    Hii Andreas..
    This is the Solution for u..
    You are using the Module AT EXIT-COMMAND to avoid the Mandatory field checks. But in this module the Screen fields are not Copied to Program Variables.
    Only the OK_CODE(SY-UCOMM) will be copied.
    But you can read the Values of the SCREEN FIELDS by Calling the FM
    <b>DYNP_VALUES_READ</b>
    (This Fm reads the Screen field values even before they are transported to program)
    EG:
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = sy-cprog
    dynumb = sy-dynnr
    TABLES
    dynpfields = h_dynpfields
    EXCEPTIONS
    OTHERS = 1.
    Let me know if there are any issues.
    <b>Reward if Helpful</b>

  • Behaviour of radiobutton and mandatory fields in a selection screen

    Hello all
    In the selection screen in a report , I have one mandatory field F1 and 2 radio button  p_val and p_prov. there's no relationship between p_prov, p_val & F1.
    I have 2 others fields p_dom and p_seg which are active when I select p_val : they are also mandatory when selecting p_val.
    p_prov is the default radiobutton so p_dom and p_seg are inactive when the screen appears
    I have 2 problems :
    1 - First I select p_val (the message for F1 as mandatory appears -> normal) so p_val appears selected but The 2 fields p_dom and p_seg are not active. I would like them to be active even I have not filled F1.
    2- I fill F1then I select p_val, so p_dom and p_seg are active, I fill only p_dom but not p_seg : I select radio button p_prov (the message for p_seg as mandatory appears -> normal) : p_prov appears selected but I don't want it.
    Thanks for your help.
    below the code of selection screen with event at selection-screen output :
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS : p_val RADIOBUTTON GROUP GR2 USER-COMMAND radio.
      SELECTION-SCREEN COMMENT 4(37) text-132.
      SELECTION-SCREEN END OF LINE.
      PARAMETERS : p_dom TYPE GSBER OBLIGATORY MODIF ID SC1.
      PARAMETERS : p_seg TYPE FB_SEGMENT OBLIGATORY MODIF ID SC1.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS : p_prov RADIOBUTTON GROUP GR2 DEFAULT 'X'.
      SELECTION-SCREEN COMMENT 4(37) text-133.
      SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'SC1'.
          IF p_prov = 'X'.
            SCREEN-INPUT = '0'.
            SCREEN-REQUIRED = '0'.
          ENDIF.
          IF p_val = 'X'.
            SCREEN-INPUT = '1'.
            SCREEN-REQUIRED = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

    hello Jerome,
    Here you go.
    2 things to remember:
       1. Remove the obligatory addition from all fields.
       2. Remove the input required while changing the screen elements.
    PARAMETER: f1 TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_val RADIOBUTTON GROUP gr2 USER-COMMAND radio.
    SELECTION-SCREEN COMMENT 4(37) text-132.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS : p_dom TYPE gsber MODIF ID sc1.
    PARAMETERS : p_seg TYPE fb_segment MODIF ID sc1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : p_prov RADIOBUTTON GROUP gr2 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 4(37) text-133.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'SC1'.
          IF p_prov = 'X'.
            screen-input = '0'.
          ENDIF.
          IF p_val = 'X'.
            screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN.
      CHECK sy-ucomm <> 'RADIO'.
      IF p_val = 'X'.
        IF p_dom IS INITIAL OR p_seg IS INITIAL.
          MESSAGE 'Fill Mandatory fields' TYPE 'E'.
        ENDIF.
      ENDIF.
      IF f1 IS INITIAL.
        MESSAGE 'Fill F1' TYPE 'E'.
      ENDIF.
    Thanks,
    Jinesh.

  • Item Master Mandatory fields

    Hi Experts,
    I need to set Inventory UOM on mandatory in Item Master Data and need Sbo_TransNotification for same.
    Plz help for same .
    Regards,
    Ravi

    Hello ravi,
    Item MAster mandatory Field----
    IF @transaction_type = 'A' AND @object_type = '4'
    BEGIN
    If exists (SELECT T0.ItemCode  FROM OITM T0 where T0.InvnrtyUom is null  and  T0.ItemCode=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'Please Fill mandatory Field'
         end
    END
    Thanks
    Manvendra

  • Validate and warn user to fill a mandatory field in a PDF form

    Below is a basic example of how you can assit your form users, by reminding them to fill the mandatory fields. This condition can be applied at various events like, printing, submitting, while filling form, etc. In the following example, validation is triggered when the user leaves the form field.
    If a user clicks within the field and moves on without filling it, the following warning shows up.
    See this help topic to know more about Form Level Validation settings.
    See this help topic to other ways of validating user input.

    Hi Carmen Alvarez,
          You should use the USEREXIT_PRICING_PREPARE_TKOMP (module pool SAPLV60A, program RV60AFZZ) to move the value.
    Thanks,
    Mariano.

  • How can you ensure all mandatory fields are filled, before pressing the submit button?

    Hi all,
    I've got a complex form with many different pages (17 so far) and I'm using visible/hidden to change the layout so only 1 page appears at a time.
    What I want to do is have a better check for what mandatory fields have not been filled out in my form. The submit buttons checks that all of the mandatory fields have been completed, but if that's 1 field on page 1, searching through my entire document would cause the users to lose the will to live!
    I am after either returning more meaningful information to the user when a submit fails, or being able to run the mandatory check field every time the page changes. I already dynamically set most of the mandatory fields according to what is/isn't visible so adapting my form wouldn't take long but I have no idea how to get it to check if all the fields have been filled in.
    Many thanks,
    Tom

    Right, I have pretty much all of my validations working now... and here's the word you're waiting for... but, I am having a problem with fields that are already visible when the rest of the layout changes.
    Basically, one of the options above the field with the problem is being changed, which makes the layout above that field change. This is triggering the validate event.
    This wouldn't stop anyone using my form, but it is an annoyance.
    Anyone able to help?
    Many thanks,
    Tom

Maybe you are looking for

  • What is the correct file path for "library?"(what precedes it?)

    My MBP crashed, and I had to restore by dragging and dropping from an external hard drive.  I fear I may have put the "library" for my user account in the incorrect place.  I am trying to create and modify MS Excel Templates and am learning to do so

  • Error while trying to check the stock

    hi i am getting an error (item is not releveant for check) checking group is missing . please guide me on this  , its urgent

  • SuSE, kernel 2.4.12 RAM consumption

    Hi, Linux related but I thought would be interesting for others. On the system with SuSE 7.2 kernel 2.4.12 'free' shows total RAM 900M which is 124M less then is in reality. With kernel 2.4.4- 4GB or the same 2.4.12 kernel without frame buffer suppor

  • Pushbutton creation in alv

    Hi All, I got a question while working with ALV interactive report. What are possibilities to create a push button on basic list. Thanks in advance. regards, deepthi

  • Iak file does not change channel config?

    I am relatively new to Lab-View so please bear with me I have multiple iak files setup for different vi's that require some different ranges on the AI-100 modules I am using (FP-1601 Ethernet module). My problem is when I start a vi, with the iak fil