Hi OF Team
I would like to inquire about the automatic numbering of objects. See this forum post.

I want the automatic numbering of objects to start at 100 and to be set in steps of one: So 101, 102, 103...

With a default value of math:max((parent()/pb/treenumber)+100)+1 it did not work. (Where pb is the parent entity and treenumber a number attribute.

With a default value of math:max(parent()/pb/treenumber)+101 it does not work either. The series 101, 202, 303 is created.

How to write the correct max:math code?

Thanks for yiur support

asked 17 Feb, 12:02

Sabrina's gravatar image

Sabrina
637
accept rate: 0%


Dear Sabrina,
In your case you have to define 2 expressions:

  • in the first expression you should write math:max(parent()/pb/treenumber) + 1 and in Apply when specify count(parent()/pb) > 1
  • in the other one just write 101 in the Constant field.

Many thanks,
Open Foris Team

permanent link

answered 17 Feb, 17:05

OF%20Collect's gravatar image

OF Collect ♦♦
3.3k18
accept rate: 23%

Hi OF Team

Many thanks for your advice. Now it works perfectly!

Best regards

permanent link

answered 19 Feb, 13:13

Sabrina's gravatar image

Sabrina
637
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×398

question asked: 17 Feb, 12:02

question was seen: 776 times

last updated: 19 Feb, 13:13