Auto increment of serial numbers in the infopath repeating section and repeat table

Source: Internet
Author: User

Steps:
1. Add a textbox. The default value is 1. The data type must be an integer. The setting condition is that the textbox is displayed only when the value is greater than 0. Otherwise, the textbox is not displayed;
2. specify the value of the serial number column in repeat table as the default value of textbox in 1;Note: You must ensure that no automatic update option is selected., That is, update this value when the result of the formula is recalculated. If this parameter is selected, each row is added, and all sequence numbers are changed to the same value and the maximum value.
3. Add the rule to the repeat table. (unconditional) textbox = textbox + 1;

 

Existing problems:

* This method can automatically increase the sequence number. However, if you delete a row when using the repeating table, the sequence number cannot be automatically changed. The sequence number is disconnected.

 

To film and content from: http://www.cnblogs.com/pottylee/archive/2009/07/10/1520594.html

 

 

Let's talk about how to implement auto-incrementing sequence numbers in the infopath repetition section and repeated tables.

In fact, the operation is very simple. The method of repeating a section is the same as that of repeating a table. Here I will refer to repeating a section. First, we set a text box control corresponding to the sales order number control to set the default value rules for the text box control can be set according to your own needs, set the condition format of the text box to "hide the control when it is not empty ". OK. The first step is complete.

The next step is to set rules for repeated sections. The rules are also simple and you do not need to set the operation conditions directly. Let's see the rule setting screen.

OK, the preceding operations can be implemented after the preceding operations are completed, and the operations for repeated tables are the same. You can try it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.