Need to add lines to a dynamic form based on numeric field

I designed a form based on the example in the book of the use of javascript with addInstance Terry to make a button to add a line in a table.

Works very well for me, however I am transforming the shape slightly so that instead of allowing the user to click the button Add a line I have them enter a numeric value in a field, then call addInstance to create the correct number of lines. The numeric field is on page 1 of the form and is called NumberStudents and is linked as a Global.  I tried to have him call addInstance to add lines, but can't make it work.  Suggestions appreciated. Thanks newbie.

The only mistake you made was missing rawValue next to the name of the command "NumberOfCards".

var i = 0;

for

(I have = 2; I<>NumberOfCards.rawValue. i ++) {

Roster.Page2.StudentSubform.Table1._Row1.addInstance (1);

XFA. Form.Recalculate (1);

}

If your requirement is to add the number of rows based on the value entered in the digital field, so you can by calling the setInstances method. This way you need not looping through the number and use of the addInstance every time.

Roster.Page2.StudentSubform.Table1.Row1.instanceManager.setInstances (5);

XFA. Form.Recalculate (1);

or

Roster.Page2.StudentSubform.Table1._Row1.setInstances (5);

XFA. Form.Recalculate (1);

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Add lines to insert a table based on the box and the values in the LOV

    I have two options (1) the list of values (2) box (2 values) .the are required field.when I click on create lines button and then insert table/slot (fire) form of table, based on my selected lov values (for example 3 selected then 3 rows only) and the value of the checkbox.

    If I select 3 values LOV and then check the box 1

    SEQ / / desc box SL (1)
    1DESC 11
    2DESC 22
    3DESC 33

    If I select 5 values LOV and then check the box 0

    Header 1 / / desc box SL (0)
    1DESC 10
    2DESC 21
    3.. 5DESC 3... 52.. 5

    my workspace: ram_r & d

    username/password: aramani/apex

    App: https://apex.oracle.com/pls/apex/f?p=72423:1:102019883635814:NO

    Thank you

    RAM

    It has achieved the goal, thread:multi line table based on LOV

  • How to save a form that was created in a dynamic form with expandable files?

    I created a dynamic PDF form with expandable fields, etc. As is to be accessible to clients to complete, how can they save a copy duly completed on their own PC?

    I tried it myself and I get an error msg stating that I can only record a copy of this form: data entered in this form will not be saved. Adobe Reader can only save a copy of the form.

    How can I create a dynamic form (with a provision repeating fields/fluid etc.) which allows the applicant to not only complete the form but also to save a completed copy?

    Hello

    you need to add save rights to your form with Acrobat.

    Free you can form in Acrobat and then record it using file > save as other > Reader Extended PDF > activate tools more.

  • Company Logo Image dynamic form fields

    Hello world

    I designed a dynamic form of livecycle with fields for users. In this form, I want to insert an image field in the upper left corner of the page so that users can simply add their logo to business here. I have some doubts and need some clarification on a few issues I don't know how to:

    (1) I realize that I have to use the 'Field of the Image' object so that users to import the image of the logo of their computer. It's pretty simple. However, is it possible for me to add a default image in this area which says something like "Add your logo here" and I want this default image to not display on the screen only and not in print if the user has not inserted his own logo? Is there a way to do this?

    I had a quick glance and I couldn't find anything that can answer that for me. I was thinking about it and what I've done so far is, I added another 'Image' object in the same place and I added the photo "Add your logo here" in this area. I then put his presence '(screen only) Visible' and place this object located behind the object from 'field of the Image. Bascially as long as it does not, if the user adds a logo using the field of the image, this image overlaps the 'image' object that lies behind all this. What is the right way to do it? Or y at - it another simpler way to do this?

    If what I did above is the only option, then I see that there are some limitations to it. Let me explain... Lets say that the image in the 'Image' object are the size of 2 inches wide X 1 in height. Yes, if the user places an image of the logo using the "field of view" object above that, and if the size of the logo of the user is smaller than the image on the ground at the back (let's say the user logo is only 1 in. X 1 in. height width), then when the logo image overlaps the excess width of the image behind appears and it looks bad on screen. Hope this makes sense... Wondering if there is a way around this? I use 'Fit the picture proportionally' instead of 'Scale to fit Rectangle Image' for the image field object.

    (2) another thing is, once the user inserts an image using the "Image object" field, is it possible for the user to delete this image if the user subsequently changed his mind and does not want to add a logo to it? Do I need to add a button so that users to erase the images they have added to the image field object? If so, can someone help me with the jscript for this?

    Thanks to everyone who took their time to read... Looking forward for your answer...

    Hello world

    Just an update regarding my Question 1 above:

    I struck out my old idea of placing an object image behind the object of field of view etc... etc... to show a hidden default image for logo insertion. Instead, what I've done is now, I only use the Image field object and have incorporated the image of 'Insert here the Logo' by default for this field. Beside that, I added the button 'Clear Logo' that basically clears the image in the image field. So here, if users add their logo, they simply click on this object and add their logo that will replace the default image in it. Or, if the user does not want to add any logo, they need to click on the button "Erase Logo" to rid the default image. I think it's probably better than the other method than I thought before. The only thing here is, I have to make sure that users are aware that they need to press the button 'Clear the Logo' if they want to erase the default image, otherwise it will eventually print as well.

    If anyone has any suggestions or do the same thing differently, please inform me.

    Thank you...

  • Add lines - which method is the fastest

    I work with data in data acquisition and I need to add lines. I came up with two methods of getting that and as I work with pretty big blocks of data I wonder which approach is most effective. Thanks for the help.

    Both are methods of 'SLOW' and quite the same.

    If you need to go a lot faster, initialize a large array and then use the function 'replace the item.

    If you have any problem to speed the first is the simplest method.

  • ADOBE Acrobat Pro DC - add lines to an existing table

    Hello. I have an existing table, I need to add lines.  Is this possible? Thanks in advance.

    It is very difficult to do something like this in a PDF file (unless it was created using LiveCycle Designer).

    You will be better off by changing the original file, and then creating a new PDF from it.

  • Add a unique dynamic form line number

    Our engineers use a dynamic PDF form to complete their dailiy activities.

    Now, I want to import this data in format XML for SQL. However I need a unique line for each line of entry number.

    Does anyone know how scipt that in Java?

    The presentation of the dynamic form is currently:

    Date - activity Code-JobNo-StartTime-EndTime

    The engineer adds more lines than necessary.

    Want I want is:

    IDNo-Date-Code-JobNo-StartTime-EndTime activity

    Concerning

    Chris C

    You can go there.

  • If the default tabular form when you add line

    Hi guys,.


    I had a tabular presentation where I need to set a default 1 value in one of the fields that I click on Add a line. I have no idea how to reference the element in a table via JavaScript.

    Despite this, Add a line already button calls a javascript function to add a line, do not think its possible to use javascript here.

    Any suggestions how can I achieve this?

    Thank you very much.

    Can't you just change column attributes > tabular form attributes > type default PL/SQL Expression or a function > as the default * '1' *.

    This should add the value 1 to add when you click line

    You can use JavaScript, but why worry if it's easily achievable

  • Allowing users to add additional lines in a PDF form?

    I use Adobe acrobat X Pro to create PDF forms to capture billing information. Yet, I can not understand how to allow a user to add extra charges. I could create a form that just had a large amount of load lines which could be left blank, but was hopeing to allow a dynamic form of setting where someone can click on a button to just add a new entry of line in the form and the form would settle down and enter in a new series of line entries. Is it possible to do it in Acrobat X Pro?

    For the foorm to automatic adjustment in response to the addition of a new line, you should examine what can offer a dynamic XFA form that you create with LiveCycle Designer. LiveCycle Designer ships with Acrobat Pro as a separate application. More information is in the Designer Help documentation, in the LiveCycle Designer forum here and in a number of tutorials to acrobatusers.com

  • Question: Recording dynamic form as a extended drive (allow save) causes certain header lines to repeat

    I use LiveCycle to create forms/electronic spreadsheets for the group, I support at work.  I had two worksheets have this problem recently.  An I was able to fix by going to my previous version, a re-release and re-recording.  The other continues to be a problem.  The worksheet is dynamic and has several added features of the line.  The form continues to operate correctly, but header in some tables lines repeat when recording in extended format reader that my allows to record the form (required for our work).  I completely re-did the spreadsheet from scratch, as well as a re-issue of previous versions with no luck.  The best I can do is get repetitions to change header lines.

    It's the dynamics of files prior to registration as a reader extended document:

    PreRE.JPG

    And after:

    PostRE.JPG

    Any suggestions on how to fix this?  I can't spend hours to recreate the whole document, if its just happen...

    Thank you.

    You said that it is in some tables. Just saw the tables that are affected:

    • Is there scripts implemented that create the table dynamically? Or the tables already exist, and additional lines are added dynamically?
    • Look at the name of the header line. There are scripts that reference the header lines?
  • Form to add line processes?

    Hi guys!

    Is anyone of you know how the process to add lines in apex looks like? I would like to repeat with a little modification.

    With respect,

    PsmakR

    This is much better:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:209

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Cannot simultaneously use vector art and dynamic forms?

    I was responsible for creating an online order form, and it seems that beign able to use vector graphics is the key to the design of the form. Dynamic form elements are also absolutely necessary - all the information has to fit on one page (and fortunately, most are mutually exclusive, allowing only the fields necessary to appear).

    Unfortunately, when I do a page of the form layout in Illustrator and import it into LiveCycle, I seem to be unable to use the drawing tools (specifically, lines and text, that both I need). I tried to save the file in a dynamic form, but only the opportunity to save it as a static form is displayed.

    Y at - it something I am doing wrong, or I'm going to have to choose between the use of vector graphics and dynamic form options?

    Fix. You can import the static PDF file work and then add the form objects.

    Steve

  • Number of pages of dynamic form in full expansion

    Hope someone can help me with this one?

    I created a dynamic fomw with the possibility to add lines as required, and the test boxes will also expand as needed. However, I met a problem when the form develops on additional pages. Everything works fine except that every time that the subform "trailer" jumps on page 2 etc it also inserts / leave themselves at the bottom of each page.

    What I am looking to achieve, is a form with the possibility to add lines that will be cascading through the pages as needed, but have only the subfrom of the trailer on the last page and not throughout the document.

    I don't know I just forgot something simple, being relatively new to this. But I've read through loads of help files and tried a number of thisngs without success so far. Any assistance is welcome.

    I have included the form to allow it to be better understood.

    Kind regards
    Adrian

    In the subform to set set the trailer of overflow to None on the paging tab in the object palette.

    Paul

  • Creation of dynamic form field?  Maybe...

    In my current Application, I have a checkbox field that allows the user to select several lines of busiess and when submitted it records of course their selection on the table as one: entry-delimited

    Example:
    That is to say field checkbox P1_LOB
    LOB1 |X|
    LOB2 | |
    LOB3 |X|
    LOB4 | |
    LOB5 |X|
    LOB6 | |
    LOB7 | |
    LOB8 | |
    On submission of the form, the following is stored in the LOB of the table field:
    LOB1:LOB3:LOB5

    as it should...

    I am trying to make the shape a bit cleaner and do not know how to approach it.
    LOB1 through LOB3 actually belong to GROUP 1
    LOB 4-6 belong to GROUP 2
    LOB 7 and 8 belong to GROUP 3

    So, on the form, I would to create fields that look like you are selecting them in the box groups

    Example:
    GROUP 1 HEADING
    LOB1 |X|
    LOB2 | |
    LOB3 |X|
    
    GROUP 2 HEADING
    LOB3 |X|
    LOB4 | |
    LOB5 |X|
    
    GROUP 3 HEADING
    LOB7 | |
    LOB8 | |
    Even more, it would be great if it could be done dynamically according to the Group field, which is in the table LOB. If I add another group to the table, the form would pick up and give him a GROUP 4 POSITIONS header and then these boxes that are part of this group would be present under HEADING GROUP 4.

    I have a solution in place that is now I have a field in the database for each group, but it is logical to bulky and not good database and if I add a new group, I have to go to the database and add another field.

    Any suggestions or links to examples that might show what I'm trying to do would be appreciated.

    Thanks in advance

    Wally

    http://Apex.Oracle.com/pls/Apex/f?p=33659:6:0:no:6:P6_RESULT_ID:1

  • Creating dynamic form

    Hi guys,.

    I was wondering how I could create a dynamic form in pl/sql (region).

    For example: I have a table with the different departments, and each Department, I would like to see a dynamically generated form in the area.

    How can I do?

    Any help is appreciated.

    Thank you
    Cleo

    You can build tabular forms manually using htp.p and combining with the APEX_ITEM API to generate fields of form within the dynamic region PLSQL

    If you are not comfortable with the updated reports, the HTML code of the item when you use the APEX_ITEM API, how to treat them in PLSQL, identify lines etc.
    Once you find the HTML for a single editable report, you got to generate the same HTML code using htp.p and using dynamic data in your table, displayed as normal text or fields can be changed using the APEX_ITEM API.

    The HTML code would be something like

    <table cellspacing="0" cellpadding="0" border="0" class="report-standard" summary="">
    <tbody>
    <tr>
    <th HEADING...
    ..more TH
    
    </tr>
    <tr class="highlight-row"><td class="data" >input feilds or normal text</td>
    ..more TD
    </tr>
    ..more TR
    </tbody>
    </table>
    

    If you build the same using a dynamic region PLSQL (pseudocode)

    LOOP over departments
      --print region HTML code
    ***For each department
    ***print tabular form table,heading etc
    ***htp.p('<table cellspacing="0" cellpadding="0" border="0" class="report-standard" summary="">
    <tbody><tr>'); ***htp.p('<th>heading1 </th>') ***Loop over rows *******each row *******htp.p('<tr>'); *******htp.p('<td>'||'normal text column'||'/<td>) *******htp.p('<td>'); *******htp.p(APEX_ITEM.TEXT(1,value..) *******htp.p('/<td>) *******..more TD's *******close TR ***END row loop ***END this department (close tbody,table tags) End department(close region tags div for region title etc

    Make sure that you add the classnames to each HTML element - table, tr, td, th, etc so that you get the desired style

    For the treatment of the data, you must loop through the global tables used (as with an editable form of paintings) and use your own logic to update service.

    There are a lot of small details that you have to look in, but you can make them gradually.
    Good luck.

Maybe you are looking for