1 Reply Latest reply on May 8, 2008 8:06 AM by cyan studios

    How to create a custom output with custom annotations

    cyan studios
      Hello, I'm new to LiveCycle, so please forgive me if this question is a little bit novice.

      I have created a form on which you can click buttons to add instances of subforms.  These subforms are so that an end user can simply say what they need per product.  For instance, they can click a "Pipe" button and a subform is added where they can specify the size, material, quantity, etc.

      Now, the fabrication shop has software that reads its own specific annotation from a txt file.  It's very simple.

      I would like the end user to be able to fill out the form completely with each product's properties and have that output to this custom annotation type in a txt attached to an email.  As I look at the XML output from a button, all I really need to do is convert tags to ITEM_START and ITEM_END and change file types.

      It's over my head but I know it's possible.

      How would you go about this? Thanks.
        • 1. Re: How to create a custom output with custom annotations
          cyan studios Level 1
          I've really been looking into this. Please have a look at the PDF that I'm creating.

          There are two buttons that work, currently. Straight Joint and Transition.

          Now, here is an example of the code that I would need it to output to in a txt file.

          C:/CAM/items/ryan/Rectangular Manuf/Straight (Cut).ITM
          3 WG

          Non-caps strings are the variables that will be defined by form input from the user, coming from XML data.
          As you can see, the coding method is a bit awkward, but that won't be an issue for me.

          The idea that I have is to create a hidden form in which I will concatenate the values from each input field. Then I'll take the raw value of this hidden field and export it as a .txt file.

          If that's the best way to go, how do I go about concatenating the values from each actual instance that's added to this form dynamically?
          An example of code that I've tried is:
          form1.finals.final1.rawValue = Concat("CODE ITEM ", form1.p1.formsqjoint.wrap.coded.rawValue)

          But this only returns the values of one instance.