Skip navigation
Currently Being Moderated

Abobe form with 2d barcode moves very slow in Adobe reader 8

Sep 19, 2007 6:17 AM

I have created a 2d barcode form in designer 8 the form is a two page form with four barcodes to capture the data. The barcodes are on the second page. The form works fine if you open it in Adobe pro but slow down and you see the hour glass appearing once you move the mouse over any field when it is open in reader. I have saved the form with no embeded fonts. Is there a setting i am missing for the barcode set up.

Frustrated form designer.
 
Replies
  • Currently Being Moderated
    Sep 19, 2007 6:28 AM   in reply to (George_A_Ward)
    If you are using the automatically generated code then this may be because each one of the barcodes is being updated after each modification by the user.

    The default code is placed in the Calculate event. You may want to consider moving this to the pre-print event or use custom code that addresses each one of the fields directly using something along the lines of

    this.rawValue = field.rawValue + "\t" + field2.rawValue + ...
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 19, 2007 7:55 AM   in reply to (George_A_Ward)
    Hi George,

    Based on what I saw from your form I would probably suggest doing the following:

    Remove the automatically generated code from the Calculate events of each of the barcodes and replace with something like the following:

    In each of the barcodes the value of "itself" is represented by "this.rawValue", roughly translated this means "my own value".

    this.rawValue = Section2.Consideration.rawValue + "\t" + Section2.Parent.rawValue + "\t";

    Of course, you would add the other values you require in the barcode.

    Again, roughly translated the above code basically says: "my value is equal to the value of the Consideration field, a tab, and then the value of the Parent field, and another tab.

    Another item you may want to reconsider is the field name values. Your field names are fairly long in some cases and including them in the barcode will reduce your capacity. In your "Section3" the field names may actually be longer than the data they hold.
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 6:51 AM   in reply to (George_A_Ward)
    Hi George, if you want to add field names you can again, do it manually with script but again, I would suggest against it because of the space requirement in the barcode.

    The BIG concern I have with your response is that it sounds like you are going to use the SAMPLE workflow agent that comes with the Adobe LiveCycle Barcoded Forms for Ascent Capture installation. This is a SAMPLE only and should not be put into a production environment without modification. If you look at the source code that comes with the sample (VB 6 code I believe) you will see there are absolutely no error capture routines, exceptions, or anything other than a straight data translation routine that populates AC index fields.

    You really should not use this sample without making the required changes to it that you need for it to work reliably in your production environment. The sample works well as exactly that - a sample.
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 8:51 AM   in reply to (George_A_Ward)
    If you are going to use the sample module (or a modified version) then it will be expecting the following:

    - The field names separated by the tab character
    - A carriage return / line feed
    - The data associated with the field names separated by the tab character

    So the JavaScript code within the Calculate event of the barcode would look something like this:

    this.rawValue =
    "fieldname1" + "\t" + "fieldname2" + "\t" + "fieldname3" + "\r" +
    fieldname1.rawValue + "\t" + fieldname2.rawValue + "\t" + fieldname3.rawValue;

    Just be sure to use a "\r" and not a "\t" to separate the field names from the associated data. JavaScript ignores white space so you can space out your code to match what you're encoding in the barcode
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 8:55 AM   in reply to (George_A_Ward)
    If you do have additional scripting questions or barcoded forms questions, feel free to join me on Monday September 24th at 1:00pm Eastern in this Acrobat Connect room: http://my.adobe.acrobat.com/barcodedforms/

    Dial-in information will be provided once you enter the Connect room.

    (Anyone is free to join this impromptu session).

    Lee.
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2008 6:28 AM   in reply to (George_A_Ward)
    Inside your custom script you will need to ensure that fields are not "null" before putting the data into your script. You can do this by checking the fields on the exit of the field or running through the fields prior to updating your barcode.

    if(myfield.rawValue == null)
    myfield.rawValue = "";
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2008 7:39 AM   in reply to (George_A_Ward)
    Hi Geoff, no, update the field values before you put those field values into the barcode itself.
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2008 10:32 AM   in reply to (George_A_Ward)
    Try this out: http://my.adobe.acrobat.com/nullornotnullbarcodesample/

    Normally I would loop through the subform, but this may be easier for you to start with.
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2008 9:02 AM   in reply to (George_A_Ward)
    Click on the save icon on the top left hand corner of your browser or press <ctrl-s> to save locally.
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)