Community for yuuvis® RAD

0 votes
by (480 points)

We have the requirement to create a certain number when a field has a specific value. At the moment the counter only works when you save the object and open it again. Is there a solution for this problem?

4 Answers

+1 vote
by (4.2k points)
selected by
Best answer

Have you tried to use the default values for the counter?

Field type has to be Integer(long) and the default value for the field is taken from a counter:

In that case, the value is pre-filled in the client:

0 votes
by (12.9k points)

Please, can you explain your requirement ab bit more concret (little workflow)?

0 votes
by (740 points)
edited by

To make it more clear:

We use a counter field for generating a syntax for a file number. The counter is not activated (field is empty) on creating the object. After filing the object, the counter field is filled.

So in our case, in the generated file number the counter part is missing. The workaround is to open this object, change some index data and save it again. Thats not a useful workaround.

By the way: this "counter" field type is not worth its name :-)
Is there a plan to implement a counter like the one in enaio blue? (with syntax definition)

0 votes
by (12.9k points)

You can handle the counter with more such functionality in the way Bratislav has explained below. In this case you can format with the support of Java, see link in the documentation.

Related questions