Validate PrePrint

Hi experts
How stop form users from printing before required fields are completed.
(I have AdobeReader 9.0 and LiveCycle 8.1)
I tried add "validate prePrint" code to XML source:
<config xmlns="http://www.xfa.org/schema/xci/2.7/">
   <agent name="designer">
   </agent>
   <present>
      <!--  [0..n]  -->
   *<validate>prePrint</validate>* 
      <pdf>
         <!--  [0..n]  -->
         <version>1.7</version>
      </pdf>
      <common>
      </common>   
   </present>
</config>
After Activate I get code like this:
<config xmlns="http://www.xfa.org/schema/xci/2.7/">
   <agent name="designer">
   </agent>
   <present>
      <!--  [0..n]  -->
        <pdf>
         <!--  [0..n]  -->
         <version>1.7</version>
      </pdf>
      <common>
      </common>  
<validate>prePrint</validate>
   </present>
</config>
It works in preview PDF only (in LiveCycle),
but when I run A Form it does not work.
How can i solve this problem?
Thanks.
Larissa.
Edited by: Larissa Stroganov on Jul 8, 2009 9:03 AM

Hi Larissa,
Use the below code in Print Button,
moFlashTimerID = app.setInterval(
"var f = this.getField('GetAcroFormFieldName(oField)');" +
"if (color.equal(f.fillColor, color.red))"  +  "{ f.fillColor =    "   + moAcroFieldFillColor.toString() +   "    ; }"
"else" + "{ f.fillColor = color.red; }", 500);
By
Parthi

Similar Messages

  • Reset all formfields background color on preprint event

    Hi collegues,
    Is there a way to reset all form field background color on preprint event.
    For instance on a printbutton event.
    Hope anyone has a solution?
    Regards,
    Ed Boon

    Hi there,
    I've created a script object which is really similar to what you are trying to do.
    Here is the link : Validation / Reset Functions, easy to manipulate and to change Forms!!!!
    The PDF provided on the forum is to validate / reset any form, the validation is setting all fields which are null with red borders,
    when validating again it removes the red borders if a value is inserted, you can use the function easily to remove the borders or background color of any field when you print the form.
    just make sure to be consistent with the values you are editing and everything will be working fine!
    If you have any question, you are welcome to ask!
    Hope this help!

  • I've uploaded Acrobat XI Pro and it freezes when I'm using it.  I uninstalled and re-installed.  When I login, it says that it is unable to validate the account and has an option to use the trial.  How do I fix this?

    I've uploaded Acrobat XI Pro and it freezes when I'm using it.  I uninstalled and re-installed.  When I login, it says that it is unable to validate the account and has an option to use the trial.  How do I fix this?

    This is an open forum, not Adobe support... you need Adobe staff support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Erroe while invoking a process (could not validate SAML)

    Hi,
    I am getting the following error while invoking a process from
    Weblogic  Portal Server.The invocation happens properly always but
    after frequent  intervals(approx 1-1.5 hrs) this error comes.Then if
    the Portal Server(the  client which is invoking the process) is
    restarted again it works properly.
    This is very urgent to resolve.Any pointers to this will be very 
    helpful.
    Thannks in advance,
    Leena Jain
    Stack Trace of the error:
    ALC-DSC-215-000:  com.adobe.idp.dsc.DSCAuthenticationException: None of
    the Auth Provider  could authenticate the user. Authentication Failed
            at 
    com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.authenticate 
    (AbstractMessageReceiver.java:157)
            at 
    com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke 
    (AbstractMessageReceiver.java:312)
            at 
    com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall 
    (SoapSdkEndpoint.java:138)
            at 
    com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke 
    (SoapSdkEndpoint.java:81)
            at  sun.reflect.GeneratedMethodAccessor377.invoke(Unknown
    Source)
            at  sun.reflect.DelegatingMethodAccessorImpl.invoke 
    (DelegatingMethodAccessorImpl.java:25)
            at  java.lang.reflect.Method.invoke(Method.java:585)
            at  org.apache.axis.providers.java.RPCProvider.invokeMethod 
    (RPCProvider.java:397)
            at  org.apache.axis.providers.java.RPCProvider.processMessage 
    (RPCProvider.java:186)
            at  org.apache.axis.providers.java.JavaProvider.invoke
    (JavaProvider.java:323) 
            at org.apache.axis.strategies.InvocationStrategy.visit 
    (InvocationStrategy.java:32)
            at  org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:
    118)
            at  org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at  org.apache.axis.handlers.soap.SOAPService.invoke
    (SOAPService.java:454) 
            at org.apache.axis.server.AxisServer.invoke(AxisServer.java: 
    281)
            at org.apache.axis.transport.http.AxisServlet.doPost 
    (AxisServlet.java:699)
            at  javax.servlet.http.HttpServlet.service(HttpServlet.java:
    727)
            at  org.apache.axis.transport.http.AxisServletBase.service 
    (AxisServletBase.java:327)
            at  javax.servlet.http.HttpServlet.service(HttpServlet.java:
    820)
            at  weblogic.servlet.internal.StubSecurityHelper 
    $ServletServiceAction.run(StubSecurityHelper.java:226)
            at  weblogic.servlet.internal.StubSecurityHelper.invokeServlet 
    (StubSecurityHelper.java:124)
            at  weblogic.servlet.internal.ServletStubImpl.execute
    (ServletStubImpl.java:283) 
            at weblogic.servlet.internal.TailFilter.doFilter 
    (TailFilter.java:26)
            at  weblogic.servlet.internal.FilterChainImpl.doFilter
    (FilterChainImpl.java:42) 
            at 
    com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter 
    (InvocationFilter.java:43)
            at  weblogic.servlet.internal.FilterChainImpl.doFilter
    (FilterChainImpl.java:42) 
            at weblogic.servlet.internal.WebAppServletContext 
    $ServletInvocationAction.run(WebAppServletContext.java:3393)
            at  weblogic.security.acl.internal.AuthenticatedSubject.doAs 
    (AuthenticatedSubject.java:321)
            at  weblogic.security.service.SecurityManager.runAs(Unknown
    Source)
             at
    weblogic.servlet.internal.WebAppServletContext.securedExecute 
    (WebAppServletContext.java:2140)
            at  weblogic.servlet.internal.WebAppServletContext.execute 
    (WebAppServletContext.java:2046)
            at  weblogic.servlet.internal.ServletRequestImpl.run 
    (ServletRequestImpl.java:1366)
            at  weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
            at  weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: |  [com.adobe.idp.um.api.impl.AuthenticationManagerImpl]
    errorCode:16421  errorCodeHEX:0x4025 message:Could not validate SAML
    Token --- Assertion is  not valid. Current time is greater than
    NOTonOrAfter time specified in the  Assertion| [IDPLoggedException]
    errorCode:12804 errorCodeHEX:0x3204  message:Could not validate SAML
    Token --- Assertion is not valid. Current  time is greater than
    NOTonOrAfter time specified in the Assertion
             at com.adobe.idp.um.api.impl.ManagerImpl.handleException 
    (ManagerImpl.java:246)
            at  com.adobe.idp.um.api.impl.ManagerImpl.handleException
    (ManagerImpl.java:192) 
            at 
    com.adobe.idp.um.api.impl.AuthenticationManagerImpl.validateAssertionCheck 
    (AuthenticationManagerImpl.java:587)
            at 
    com.adobe.idp.um.api.impl.AuthenticationManagerImpl.validateAssertion 
    (AuthenticationManagerImpl.java:552)
            at 
    com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.authenticate 
    (AbstractMessageReceiver.java:132)
            ... 33 more

    This happens due to expiry of the SAML assertion that the client has. Have a look at the Renew Assertion Recipe at the cookbook site

  • What are the critical points to validate whether the client uses PP or not?

    Hi,
    We are woking for a project which involves more than 80 SAP instances (80 clients), and with in the same instance we have more than one country (e.g: client 100 may have 5 countries india, srilanka, bangaladesh, china and singapore). Now our challenge is to validate which are the countries using SAP PP Shop floor control activities (Creation of Production orders, settlement etc...). Please list the critical points against which we can validate. Hope my question is clear. Any clarification required please reply to this thread. Expecting quick response from the experts. Thank you.
    Note: I have tried using "workscheduling view" of material master, COOIS report etc.., still i did not get clear validation. I would appreciate if experts provide technical validation points.
    BR
    Raam

    Dear Krishnan,
    First thing is you have to know whether client is using
    Discrete , REM or PP-PI
    From Discrete point of View ( Configurations )
    Check in
    OPJH, OPL8, OPKJ, OPK4, OPKP ( whether for plant & order type combination parameters are maintained are not )
    Coming to REM
    check in OSP2, whether REM profile settings are maintained for the plants
    Coming to Master data
    just refer the below link & check give the plant as input
    [Tables;
    Regards
    kumar

  • Validate  application server file

    Hi,
      I have to validate the application server file path on selection screen.
    I am using following code :
    form VALID_APP_FILEPATH   using    p_filpath TYPE FILENAME-FILEINTERN.
      data : l_fname(60).
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          LOGICAL_FILENAME = p_filpath
          OPERATING_SYSTEM = SY-OPSYS
        IMPORTING
          FILE_NAME        = L_FNAME
        EXCEPTIONS
          FILE_NOT_FOUND   = 1
          OTHERS           = 2.
      IF SY-SUBRC ne 0.
          MESSAGE 'Enter the valid file path'(e01) TYPE 'E'.
      ENDIF.
    endform.                    " VALID_APP_FILEPATH
    but if i choose correct file path from F4 help also.
    It displays error message.
    Sy-subrc always equals 1.
    Help me out

    Hi,
    I have implemented the code mentioned by you and am not having any problems even when I use F4 to get the fle name.
    Pls recheck and get back if the error persists.
    Reward if found helpful.
    Warm Regards,
    R Adarsh

  • How can i validate the data in the control file?

    Consider that the SQLLoader reads the Input data File from the path and it loads the data into the tables based up on the descrition specified in the control File.
    First, the table to be filled is created:
    create table sql_loader_1 ( load_time date, field_1 Numeric, field_2 varchar2(10)
    Sample Control File :
    load_1.ctl
    load data
    infile 'load_1.dat' "str '\r\n'"
    insert into table sql_loader_1
    load_time sysdate,
    field_2 position( 1:10),
    field_1 position(11:20)
    Note that the positions 11 through 20 are loaded into field_1 and positions 1 through 10 into field_2. The field load_time is filled with the current time (sysdate) of the load.
    Here's the data. The name of the file (load_1.dat) had been specified with the infile statement in the control file.
    load_1.dat
    0123456789abcdefghij
    foo bar
    here comes a very long line
    and the next is
    short
    Here i want to validate the field_1 (Numeric Datatype) since the data file contains the character value (i.e)abcdefghij

    Good question for this forum:
    Export/Import/SQL Loader & External Tables
    Werner

  • Certificate error connecting to VPN, can not validate server

    Used the configuration utility to configure a profile for VPN using certificate as authentication.  Keep getting error, can not validate server.  When I export the cert to my desktop, I see the CRL information in it.  When I view the details of the cert after installing on the iPad, I don't see any CRL information.  I'm guessing this may be the problem only not sure how to resolve it. 

    solved the problem by adding an additional attribute in the certificate request to the VPN server (cisco router) and first enable the server SubjectAltName CA
    In CA server:
    certutil -setreg policy\EditFlags +EDITF_ATTRIBUTESUBJECTALTNAME2
    certutil -setreg policy\SubjectAltName enabled
    certutil -setreg policy\SubjectAltName2 enabled
    net stop certsvc
    net start certsvc
    In certificate request for VPN server:
    In the Attributes box, type the desired SAN attributes. SAN attributes take the following form:
    san:dns=dns.name[&dns=dns.name]/san:ipaddress=x.x.x.x
    (external dns/ip)
    http://support.microsoft.com/kb/931351

  • Unable to Validate Muse Subscription - fixes not working

    I have the same problem that others have had with the error message "Unable to validate your Adobe Muse subscription.  We haven't been able to validate your Adobe Muse subscription  for some time. If you don't connect to the internet in the next few days, Adobe Muse will no longer be able to launch."
    I subscribed to Muse in Dec. 2012 & have been billed monthly successfully for the last couple months, however I recently changed the card number to be charged - could that be the issue?
    I am not signed up for Creative Cloud, which one of the discussion solutions seemed to mention, so might that be part of the problem?  But if so, why now after a couple months with no issues?
    Where the error message mentions connecting to the internet, I'm not sure what that means or how to do that - does that have something to do with Cloud?
    I'm building a new site & we're not yet ready to publish, so we aren't ready for hosting, but I'm hoping that is not part of the issue?
    I've tried some of the solutions posted in discussions (e.g., deleting certain folders & files), but before I uninstall/reinstall Muse, I'm hoping someone can help.  I'm down to 1 day on the clock, so I'm hoping not to be shut out of Muse.
    Any help would be greatly appreciated.

    I had the same problem this week. Amy via @AdobeMuse on Twitter sent me this solution:
    http://helpx.adobe.com/muse/kb/error-unable-validate-your-muse.html
    In following the steps provided in this URL, I discovered that somehow the Firewall in Norton Security Suite had been set to block Muse, although all the other Adobe CC products were set to "Allow" in the Norton firewall.
    By changing "Block" to "Allow," Muse now opens fine, but fair warning: I lost all the Muse sites I had been working on by following the other steps in this URL.
    I suggest that the first step in the instructions in this URL should be changed to: check your firewall first to see if Muse has been blocked. If I had done that first, it appears that I would not have lost 10 months of work.

  • Load Rule validates, yet no data values modified

    The load rule worked on a server running an NT operating system with essbase version 6.1.3. I rebuilt the application on a server running W2k with an essbase version 6.1.6. The load rule validates on the new server. The load looks as if it is loading correctly. When I check out the log file, it shows a warning number 1003035 with a message stating "No data values modified by load of this data file." Any ideas??? Creating a new load rule from scratch did not work. My next plan of attack is to check out the actual txt file to see if anything looks odd.

    Have you got any record select or record reject statements in your rules?

  • I need to validate Input List Of Values Field when Inserted From Bean

    I've two view object EmployeeView and DepartmentsView
    In Employee View I've changed Department_Id to Input List OF Values
    I've created a bean to inset data into Employee Table
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }I know that ADF validate Input list of values when inserting new value on it
    when I've enabled the debugger I've found that
    <ViewObjectImpl><buildQuery> [604] SELECT DepartmentsEO.DEPARTMENT_ID,         DepartmentsEO.DEPARTMENT_NAME,         DepartmentsEO.MANAGER_ID,         DepartmentsEO.LOCATION_ID,         DepartmentsEO.ISDELETED FROM DEPARTMENTS DepartmentsEO WHERE ( ( (DepartmentsEO.DEPARTMENT_ID = :vc_temp_1 ) ) )
    <ViewObjectImpl><bindParametersForCollection> [605] Bind params for ViewObject: [com.test.model.views.DepartmentsEOView]AppModule.__LOCAL_VIEW_USAGE_com_test_model_views_EmployeesEOView_DepartmentsView_findByVC_12_LOV_DepartmentId_lov__filterlist__vcr___
    <OracleSQLBuilderImpl><bindParamValue> [606] Binding param "vc_temp_1": 999
    <ViewObjectImpl><processViewCriteriaForRowMatch> [607] VCs converted to RowMatch:  ( (DepartmentId = :vc_temp_1 ) )
    <ViewRowImpl><handleListBindingMismatch> [608] No matching row found for list binding:LOV_DepartmentId for ViewRow:oracle.jbo.Key[34235 ]
    <ViewRowImpl><handleListBindingMismatch> [609] --- filterList ValueMap key:DepartmentId, value:999
    <DCBindingContainer><internalRefreshControl> [610] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <JUCtrlHierNodeBinding><release> [611] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <JUCtrlHierNodeBinding><release> [612] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <DCIteratorBinding><releaseDataInternal> [613] Releasing iterator binding:EmployeesViewIterator
    <ApplicationPoolMessageHandler><doPoolMessage> [614] **** PoolMessage REQ ATTACH LWS
    <ApplicationPoolMessageHandler><doPoolMessage> [615] **** PoolMessage REQ DETACH LWS
    <DCJboDataControl><initializeApplicationModule> [616] (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode = Immediate
    <DCBindingContainer><internalRefreshControl> [617] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <DCBindingContainerState><validateToken> [618] Process BindingContainer state token(decompressed state):BCST:=0%V%=NEmployeesViewIterator=-D-,
    <this means that ADF tries to validate the input list of values "Department_Id" and didn't found any match
    I need to through exception when I try to set Department_ID with invalid value "value not on range" like
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));I don't want to validate it manually as I've a lot of fields.
    I need to through exception when try to
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));

    Thanks Timo
    this is the code that I use
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
          EmployeesEOViewRowImpl newEmp = (EmployeesEOViewRowImpl)importedVO .createRow();
          importedVO .insertRow(newEmp);
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }

  • How to validate numbers in char field.

    Hello all,
    I have one database column with char data type. This field should allow insert only
    numbers [ zero to nine] and plus symbol .. how to validate this?
    Pls help me..
    I.m using oracle 9i database. So it does not allow REG-EXP and WITH methods.. So give some
    sql coding to do this

    As this forum is for issues with the SQL Developer tool, you'll probably get more answers in the SQL And PL/SQL forum.
    Regards,
    K.

  • How to validate if a column have NULL value, dont show a row with MDX

    Hello,
    I have this situation, I have a Result from MDX that return rows with values NULL on columns, I tried with NON EMPTY and NONEMPTY but the result is the same. That I want to do is validate if a column have a Null value discard the row, but I dont know how
    to implement it, could somebody help me?, please.
    Thanks a lot.
    Sukey Nakasima
    Sukey Nakasima

    Hello,
    I found the answer in this link https://social.technet.microsoft.com/Forums/sqlserver/en-US/f9c02ce3-96b2-4cd6-921f-3679eb22d790/dont-want-to-cross-join-with-null-values-in-mdx?forum=sqlanalysisservices
    Thanks a lot.
    Sukey Nakasima
    Sukey Nakasima

  • Is it possible to validate a schema defined date

    Hi,
    Is it possible to validate a schema defined date in xsd as of a null type.
         <xs:element name="ContractDt">
    <xs:restriction base="xs:date"/>
    </xs:element>
    In xml file if i want to keep date null and still should be valid......how do i do it
    For eg: <ContractDt></ContractDt>
    <ContractDt>1990-12-12</ContractDt>
    Both the above should be valid.............and any other thing should be invalid. I know we can use patterns and ennumeration to achive this but...............all the other validations that come along schema defined datatype date are required........
    Any help.
    Regards,
    Aru

    Hi,
    I meant this...........
    <xs:element name="ContractDt" nillable="true">
              <xs:simpleType>
                   <xs:union>
                        <xs:simpleType>
                             <xs:restriction base="xs:date"/>
                        </xs:simpleType>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:union>
              </xs:simpleType>
         </xs:element>
    Hope my requirement is clear...
    Aru

  • DSO's for 0CO_PC_01 / 0CO_PC_02  and Validate against ECC?

    Hi Guys,
    I have activated COst Object controlling : 0CO_PC_01 / 0CO_PC_02 and standard content cube 0PC_C01 for this. I want to do following:
    1) Put datawarehousing DSO (standard) layer before going to Cube. (i.e Datasources will load to DSO and each of DSo will load to Cube)
    2) Convert 3.X infosources to 7.0 Transformations.
    I have converted 3.X Transfer routines etc to transformations and build DSO layer for each of extractors:.
    I have following questions:
    1) What key fields should be considered for DSO?
    2) How to validate data in BI cube back to ECC? Any standard report / transaction / table would help.
    3) Any issues you have faced with these extractors?
    Thanks
    SA

    Hi Sorabh,
    3) yes, there is one big issue. Delta handling of data source 0CO_PC_01 is not enabled / supported. So data upload time is too long.
    Standa

Maybe you are looking for

  • How to set max. number of rows in a table?

    Hi, I'm working on a SCADA interface. In this application there are different tables with vertical scroll bar. I prefer to make visible only the initialized rows (I've initialized 40 blank rows of a table with a string array). Since the window not co

  • Integrating SSO in APEX 3.0

    Hi, We're trying to integrate Oracle SSO with APEX follwing this how-to: http://www.oracle.com/technology/products/database/application_express/howtos/sso_partner_app.html We have two major issues: 1) We're following the instructions to create an aut

  • Does the iphone 5 have gorilla glass?

    does the iphone 5 have gorilla glass?

  • Connect to SQL Server by using ODBC

    We use ODBC to connect to a Microsoft SQL Server database. We are able to describe and select in Oracle for those tables (in MS SQL) granted to us. However, we cannot select on the views created in MS SQL. Do we miss something? Here is the SQL statem

  • Setting multiple album images for a group.

    I want to put multiple images for CDs that I have (Front, back, inside of booklet, etc). Can I do this for an entire CD or do I need to do each song separately?