Problem adding dynamic sections in a form

Hello,
I've previously used LiveCycle to design static forms, but am now trying to create a dynamic interactive form.  I'm completely new to this process so I thought I'd learn by trying to re-create the sample Purchase Order form that comes with the software, to ease myself into it.
I'm using LiveCycle Designer 7.0 on Windows XP Professional.
Within the Purchase Order example, the two subforms I'm concerned with are the detailHeader subform which contains an 'Add Item' button and five static text objects; and the detail subform, which contains one drop-down, one text field and three numeric fields.
The Add Item button is scripted to add an instance of the detail subform upon clicking.
Now, I created the subforms and objects as shown in the sample Purchase Order form, and I entered the JavaScript exactly as it is in the example.  I've set the whole form to 'Flowing Content', and have the same binding settings for each of the subforms as in the example.  But when I go to the PDF Preview the addInstance just doesn't work.
The script reads as follows:
// Invoke the Instance Manager to add one instance of the detail subform.
_detail.addInstance(1);
Can anyone suggest what it is I'm overlooking?

Check two things..
1) check whether you have set the subform to Repeat fotr each data item..(Check the below image).
  https://acrobat.com/#d=tgYANswsX6VA5BmmE7kvOA
2) See if you have set the form as Dynamic by following the below..
     1) Goto File menu -> Form Properties and select Defaults tab. Change the Default Render Format as Dynamic XML form
     2) Select the Preview Tab. Set the Preview type as "Interactive Form" and Preview Adobe XML form as Dynamic XML form
     3) Finally while saving the PDF select Save As Type as "Adobe Dynamic XML Form".
If you still have issues please let me know..
Thanks
Srini

Similar Messages

  • Adding Dynamic information to a form

    I am attempting to populate a designed form using data from a database (MySQL) using a ODBC connection. How do I add the dynamic information to the form to autopopulate it when the form is called using a ID number?
    Is there any place to read up on this?

    You just want to be look-up info based upon an ID number ? This is not very hard to do. you could use some wonderful XFA javascript and send the ID back to the DB and use a select where statement and pull up the info. You may want to read the designer help I think it mentions some of this.

  • Problems adding context menus to each form

    Hi,
    I have some problems by adding a new MenuItem to a SBO Context menu.
    I just try the following method:
        With oMenuParam
            .Checked = False
            .Enabled = True
            .Type = SAPbouiCOM.BoMenuType.mt_STRING
            .UniqueID = "DWSEARCH"
            .String = "Search for..."
        End With
        oForm.Menu.AddEx oMenuParam
    I execute this code after FormLoad, the code add a new MenuItem, BUT... now my big problem:
    when I click on the buttons in the toolbar to switch between different records of e.g. invoice, SBO removes the MenuItem from the ContextMenu.
    When I watch into the object i can't find the menu. When I want to readd the menu, SBO says "Menu already exist"
    Where is my fault? What can I do?
    Thanks, Sebastian

    Hi Sebastian, it's not clear to me if you are trying to add a Menu exactly as the ones are showed in the main window of SAP B1. If this is the case you have to use type POPUP instead of String. You will have to add a node to the POPUP to make it visible.
    Please check the sample "AddingMenuItems" delivered in the UI API folder under the Sap Business One SDK folder. Please put attention also at the position.
    The menuitem was already entered in the Menu Collections of the application, even when you cant see it, this is why you are getting the message that the form already exist. In order to refresh the UI API you will have to reinitialize Business One.
    Best Regards,
    Felipe

  • How can we split the image when its added dynamically ?

    Hi Experts,
    I have an image where i'm calling a DAL in Entry tab Data section under section level properties.As you know that will execute during Entry process.In that DAL i'm Adding an image based on the user choice during entry.
    When image added that should be accomedate the spaces availale in the form.First half of the section can accomedate in the first page and secound half will go to next page.
    I have used CANSPLITIMAGE rule,but that is not get executed during entry process.
    Can someone help me How to split the image during entry process when its added dynamically ?
    Thanks,
    RAMAN C.

    Aside from what you might think of as the origin placement, Gendata rules are not run during Entry operations. As such, you are not able to do what you describe in versions before 12.2. Starting in 12.2, you still can't execute Gendata rules, however there is a newly supported feature when DAL adds a section that will look for the existence of the CanSplitImage rule and assigns an internal attribute that will allow the section to split during entry. This isn't the same as running the rule, but the net effect should be acceptable. (At some point in the future, perhaps this internal attribute will become something you can just set when adding the section on the form and you won't have to specify the CanSplitImage rule at all - for Batch or Entry. That would be great.) In the meantime, if you are not using 12.2, your only option is to break your section up into smaller section components and add them separately. That should help minimize unused space on the page when something doesn't fit.

  • Dynamic table in interactive form & WD ABAP

    Hi,
          I have created a adobe interactive form adding the rows dynamically when pressing add button. The form works fine in Life cycle designer preview. But it doesnot work in Webdynpro ABAP runtime.
    Please let me know if any of you have a solution for the same.
    Regards,
    Vimal

    >
    Abhimanyu Lagishetti wrote:
    > change the displayType property of the interactive form and try
    > I had this problem long back, submit button was not working when changed this property it started working
    >
    > i hope it is helpful
    >
    > Abhi
    Actually be careful. Just changing the displayType probably isn't enough.  If you change from ActiveX to Native, you also must adjust the form itself - converting the form type and adding the JavaScript Header. And also Native (or ZCI) based forms are only available after SP12. If your system patch level is older than that release you might still have problems. 
    The ACF based forms do require an ActiveX control that gets pushed to the frontend. So this limits their browser support and also requires a version of the ACF control that matches your server.  So sometimes you get an ACF version mismatch if you work with multiple servers on different release levels.  ActiveX controls can also be blocked in IE depending upon the security settings that your company imposes.
    So first of all - do the SAP example ACF form applications work for you?  If they work, but this form doesn't then the problem may still be in the form itself.
    Two - are you at a release level where you can use Native forms instead?  If so you might consider going back to your Forms team and have them conver the form for you and use the Native display type.  This will reduce the complixity of having to rely on an ActiveX control. Finally if you are stuck with ACF then you need to start troubleshooting your security browser settings and/or the version of the ACF control that is installed on your desktop.

  • Is there a way to remove blank sections of a form before printing?

    I am working on a form, which when printed, will become a report. Some parts of the form will not be used by all users.  I am wondering if it is possible to hide tables, or text boxes and fields, if the user does not fill in that section.  Also, will the sections below automatically move up to fill in the blank spaces? It is a dynamic form with expandable boxes, so main subform of each page is set to 'flowed'.  We only want the final report to print with the sections of the form that were actually filled in.
    Thank you,
    Amy

    It is, although requires a few lines of code:
    Pseudo-ish:
    for each (subforms as subform) if (AllFieldsOfSubformAreEmpty(subform)) subform.presence = "hidden";

  • Merging of cells of a dynamic table in adobe form

    Hi,
    I am trying to Merge 2 columns in a dynamic table in adobe form.The requirement is to merge column 3 and column 4 if column 4 is empty. I used the below javascript code in both "Form ready " and Initialize event of the row.
    if (this.Cell4.rawValue == " ")
    this.Cell3.colSpan = "2";
    this.Cell4.presence = "hidden";
    Note : Since above code was not working , i used the below code in my subform also but it did not returned desired output.
    if(Table22.Row1.Cell1.rawValue == " ")
    Table22.Row1.Cell3.colSpan = "2";
    Table22.Row1.Cell4.presence = "hidden";
    The problem is that in my dynamic table , its the second row where the requirement is fulfilled ie in the 2nd entry of my table the column4 is blank (the exact row number might change depending on input data).
    is there a way to loop in the dynamic table and check if column 4 is empty for a particular row.
    the above code does not help to fulfill my requirements. kindly help.
    Thanks
    Aditi

    Hello Aditi priya,
    Hope you are doing good..
    Please go through my recent blog..
    http://scn.sap.com/community/interactive-forms-by-adobe/blog/2015/01/02/merging-internal-table-cells-dynamically-in-sap-adobe-forms-using-java-script-code
    I hope you will find all answers from this blog..Reward if helpful...
    Thanks & Regards,
    B Raghu Prasad

  • Font Problems Upgrading from LC 7.2 Forms to ES Update 1 (8.2)

    Old Environment:  LC 7.2 Forms, Windows 2003, Weblogic 8.1 SP5, Oracle 10.2.0.4
    Old Fonts Directory:  c:\windows\fonts.  The customer fonts were also added to this directory and the fonts were embedded into the adobe-FontManager.ear.
    New Environment:  LC ES Update 1 (8.2) SP3, Solaris 10, WebLogic 10.0 MP2, Oracle 10.2.0.4
    New Fonts:  Copied all the adobe-FontManager.ear ttfs into the customer fonts specified directory.
    Problem:  I have the same XDP template being used in the old and new environment.  I have two environments (Old or New) with the code to invoke the LC Forms server.  The old environment prints out a Chinese form correctly.  The new environment prints out the Chinese form, but a lot of the text are bolded when it wasn't showing that problem before in LC 7.2 Forms.  Any thoughts on what might be cauasing this issue?
    Thank you for your help.

    I couldn't get a LC ES Forms server solution to this problem.  Adobe LC support stated that I had to modify the XDPs that show the bolding problem.  According to Product Engineering and Escalations group, LC ES 8.2.1 contained changes with respect to font attributes that we need to modify the XDP.  There are no server level changes that can solve the problem.
    Solution for me:
    1.  Open the XDP that showed the bolding problem in LC Designer ES SP3.
    2.  Find the bolded Chinese characters and unbold them.  Save the XDP.
    3.  Drop the updated XDP on to the LC ES Update 1 (8.2.1) Forms server.
    4.  Render the form in LC ES Update 1 (8.2.1).  No unwanted bolded characters for me.  As a plus I noticed the XDP size grow smaller in terms of file size after I saved it on ES Designer SP3.

  • Error in layout section of adobe forms

    Hi All,
    I am getting the following error while i try to open the layout section in adobe forms.
    "Error while opening document".
    I reinstalled the adobe livecycle designer and also installed the new version of adobe i.e. adobe 9/9.1 and restarted my system but still the problem exists.
    Can anybody help me out solve the problem at the earliest.
    Thank you in advance.
    Regards,
    Soumya

    Hi Somya,
    My problem gets resolved. What I done is simply restart the computer!! The Form Template task was hanged (even in task manager it was showing running). Once it gets killed, my layout editor is running again.
    If still your problem persist, you set the priority of u2018FormDE~1.exeu2019 to highest. Close all other applications on your PC while trying to start Layout editor.
    What I understood is, layout editor required lot of memory and hence we can try this above options!!
    Hope this will help you.
    Pradeep D

  • Problems adding sound

    I can't get sound on my page in dreamweaver. I followed the
    instructions and I keep getting an error telling me that the plugin
    is not supported. Has anyone had this problem and what did you do
    to correct it?

    Hi Alexander,
    This glitch has been apparent since iMovie HD was released, however, there has been no acknowledgement or fix offered by Apple. The only course of action available is to post your dissatisfaction and problems in the iMovie feed back form on the iMovie support section of the Apple website. You won't be the first to post this info and hopefully there will be enough disgruntled users to make the Apple software developers do something about it. This glitch has effected many different users on many different machine configurations, but it has not effected everyone. It is strange that from two people using the same machine and configuration only one of them is effected. I just gave up and went back to iMovie04, although I should not have had to after purchasing the, so called, latest and greatest iMovie.
    Just post your feedback on the iMovie HD support form and hopefully we will see this issue addressed.

  • AdvancedDataGrid headerrenderer children added dynamically do not display

    The AdvancedDataGrid in Flex 3.x does not correctly render children of a custom headerrenderer when the children are added dynamically. This works correctly with the DataGrid.
    An AdvancedDataGrid has a custom headerrenderer with one field to display the column header text.
    A show button below the grid adds a text input field in the header below the column text in the header.
    When the show button is selected, the AdvancedDataGrid header sizes correctly to leave space for the field but does not display the field.
    If I drag the column, the text input field displays as I am dragging. See the 3 images below.
    I have included the 3 source files. What is the correct way to dynamically add children to an AdvancedDataGrid header?
    Thanks.
    1. AdvancedDataGrid with only the column header text:
    2. After Show is selected, the header is sized for the text field below:
    3. Only dragging the column header temporarily shows the text field:
    1. TestGrid.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="onInit(event)" width="100%" height="100%">
    <mx:Script>
    <![CDATA[
         protected function onInit(event:Event):void {
              var cols:Array = grid.columns;
              var colWidth:int = grid.width;
              var col:AdvancedHeaderColumn = new AdvancedHeaderColumn();
              col.wordWrap = true;
              col.show = false;
              var headerRenderer:ClassFactory = new ClassFactory(AdvancedHeaderLabel);
              // Add any custom properties
              headerRenderer.properties = {text: "Column1 header that wraps", dataGridColumn: col};
              col.headerRenderer = headerRenderer;
              col.headerWordWrap = true;
              cols.push(col);
              grid.columns = cols;
              grid.measuredWidth = colWidth;
         protected function showText(event:Event):void {
              var cols:Array = grid.columns;
              for each (var col:AdvancedHeaderColumn in grid.columns) {
                   col.show = show.selected;
              grid.columns = cols;
    ]]>
    </mx:Script>
         <mx:AdvancedDataGrid id="grid" height="100%" width="100%" variableRowHeight="true" editable="true" lockedColumnCount="1"/>
         <mx:Button label="Show" id="show" click="showText(event)" selected="false" toggle="true"/>
    </mx:Application>
    2. AdvancedHeaderLabel.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" verticalScrollPolicy="off">
    <mx:Script>
    <![CDATA[
         import mx.controls.TextInput;
         import mx.core.UITextField;
         // properties
         public var text:String;
         public var dataGridColumn:AdvancedHeaderColumn;
         // Column header
         public var textField:UITextField;
         // Optional text input field
         public var textInput:TextInput;
         override protected function createChildren():void {
              super.createChildren();
              // Always add the header text
              textField = new UITextField();
              textField.text = text;
              textField.multiline = true;
              textField.wordWrap = true;
              textField.percentWidth = 100;
              addChildAt(textField, 0);
         override protected function commitProperties():void {
              super.commitProperties();
              // Add the text input field?
              if (dataGridColumn && dataGridColumn.show && !textInput) {
                   textInput = new TextInput();
                   box.addChild(textInput);
         override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
              super.updateDisplayList(unscaledWidth, unscaledHeight);
              // Position and size the textInput field
              if (dataGridColumn.show && textInput) {
                   textInput.y = textField.getExplicitOrMeasuredHeight();
                   textInput.setActualSize(unscaledWidth, textInput.getExplicitOrMeasuredHeight());
         override protected function measure():void {
              super.measure();
              measuredWidth = textField.getExplicitOrMeasuredWidth();
              measuredHeight = textField.getExplicitOrMeasuredHeight();
              // Make room for the text input field
              if (textInput) {
                   measuredHeight += textInput.getExplicitOrMeasuredHeight();
    ]]>
    </mx:Script>
         <mx:VBox height="100%" width="100%" id="box" verticalAlign="bottom"/>
    </mx:VBox>
    3. AdvancedHeaderColumn.as
    package {
         import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
         public class AdvancedHeaderColumn extends AdvancedDataGridColumn {
              public var show:Boolean = false;
              public function AdvancedHeaderColumn(columnName:String=null) {
                   super(columnName);

    Thanks Hackintosh.
    It prints as it views, as a corrupt jpeg. I also dug into console and it confirmed there was an error about a corrupt jpg. The most interesting thing is if I open the bad pdf in Photoshop the whole image is there with no signs of corruption. This leads me to believe it's something with how OSx and/or Safari are rendering the jpgs. Another curious sidenote, Safari on Windows works fine but if you save the pdf, move it to a mac and open it, you get the corrupted jpg again.
    I think I'm going to try and stop swimming upstream now. At the end of the day I don't care if the images are pngs, tiffs, or eps. I'm going to try feeding a few different formats and see if that doesn't fix the problem.

  • Problem adding grid items in code

    Hi All
    I've got a problem creating a grid dynamically in code.
    The Grid and the rows are created without a problem and I can reference them, but when I try to add a gridItem I get a 1009 error.
    any ideas?
    for (var j:int = 1; j <= mCols; ++j)
      // add column here
                                                                          lColName = "mR" + i + "col" + j;
                                                                          try {
                                                                                    myRow = mGrid.getChildByName(lRowName) as GridRow;
                                                                          } catch (someError:Error)
                                                                                    erMsg  += "Get row: " + lRowName + someError.message;
                                                                          try {
                                                                                    var mtCol:GridItem = new GridItem();
                                                                                    mtCol.id=lColName;
                                                                          } catch (someError:Error)
                                                                                    erMsg += "Create GridItem: " + lColName + someError.message;
                                                                          try{
      // THis is where the error occurs!
                                                                                    myRow.addChild(mtCol);
                                                                          } catch (someError:Error)
                                                                                    if (chkErr == true)
                                                                                    erMsg += "Add Child: " + lColName + someError.message + "\n";

    Hi,
    Try using an arraycollection as dataprovider for your datagrid:
    Check the last example in the page:
    Passing data to a DataGrid control
    http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html
    If you want to add a row dynamicaly, check this link:
    http://www.switchonthecode.com/tutorials/adding-dynamic-rows-to-flex-datagrid
    Best.

  • I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office.  How easy or difficult is it to transfer data files between the iPad and Windows?  Are there obvious problems or the need for some form of conversion programs?

    I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office.  How easy or difficult is it to transfer data files between the iPad and Windows?  Are there obvious problems or the need for some form of conversion programs?
    Many thanks for any advice.
    David

    You don't need conversion programs, iTunes can copy most of your content over to the iPad via the file sharing section, and some apps also support Dropbox, email attachments, transfer via your wifi network. There are a number of apps that you can get that support Microsoft office file (microsoft don't make an app versions of their software) e.g. from Apple there are Pages (word support), Numbers (excel) and Keynote (powerpoint), and from third-parties there are apps such as Documents To Go and QuickOffice HD

  • Why I can't set the Detail Section of a form at onLoad event?

    Hi,
    I'm having a silly problem with Access 2010. I can't modify the Detail section ("Corpo" in Italian) of a Form or a Report.
    Neither using the onLoad nor the onOpen events.
    What am I doing wrong? I load a micro example in my
    one drive, if you would spend some time helping me.
    Thanks in advance, Lauro

    Hi,
    I'm having a silly problem with Access 2010. I can't modify the Detail section ("Corpo" in Italian) of a Form or a Report.
    Neither using the onLoad nor the onOpen events.
    What am I doing wrong? I load a micro example in my
    one drive, if you would spend some time helping me.
    Thanks in advance, Lauro
    You should be able to size the detail section of the Form in the open event or onload event.
    I don't have 2010 on my PC. Why not post the sample code here?

  • Regarding dynamic tables in interactive forms

    Hi All,
            I have designed a webdynpro view which contains a table,i have to generate a pdf format file which also contains
    a table as there in the webdynpro view.
            I  have designed a dynamic table in interactive form and binded the interactive form ui element with the datasource and pdfSource.
    In the interactive form i am getting only one row data of webdynpro view table.In the Object palette, I selected Repeat Row For Each Data Item.
           share with me if u have any idea or send any document regarding table binding(dynamic) in interactive form.
    Thanks & Regards,
    saleem

    Hi saleem..
    Check this link..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59">Dynamic interactive forms an example</a>
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#47
    Urs Gs

Maybe you are looking for

  • Getting unwanted values between the XML tags in XSLT mapping

    Hi Folks I have come across a very strange situation with my xslt mapping. I am getting unwated values "11" between xml tags as follows <Tag>0001</Tag> 11 <DataID>3</DataID> I am not sure why I am getting these values in between the tags. Any suggest

  • Each time have the current date in autmatic scheduling

    Hello, I'm scheduling some jobs automatically and I have a question. Sometimes I need to enter a date (E.g. To create Dunning Letters). How can I make sure it will for each run take the 'current date' and not the date I enter when I run the request f

  • HELP Please!!  Changing Printing Preferences

    Can anyone assist me?.... How do I code in Java to set the printing preference to landscape. At the moment when u go to print, for example, in eclipse, you go to File -> Print. In the "print" dialog you can select "preferences" (or something similar)

  • Mac OS X snow leopard on Macbook

    Hi, I want to know if my macbook can support snow leopard. I have the earlier version on macbook white, though it is a intel chipset, but it is intel core Duo. Do i need a core 2 Duo system? Also, my graphics card is Intel GMA 950. Is it supported? W

  • Duplicate libraries, multiple edits

    I've made a mess. I have a laptop and iMac. I do a lot of editing on the road. I decided to use an external hard drive and keep my iPhoto Library on it. I think this might have been mistake #1 -- I just copied the library over to the hard drive and l