Re: [Dhis2-users] How to create entity attribute with generated value based on others elements

2018-11-14 Thread Gérard Bisama
Thanks everyone for your response. I think the text pattern is option I prefer since it is quite clear and simple to configure. However I have this error when I want to register a new TE after adding a text pattern to the identifier attribute. Error: Code is not implemented. I am using the version

Re: [Dhis2-users] How to create entity attribute with generated value based on others elements

2018-11-14 Thread Terence Scott
HI Gerard Yes, this is possible with Text Pattern as mentioned previously. One thing I would like to point out is that you create this all in the TE attribute. Therefore, create an attribute (e.g. Unique ID) and then select "Automatically generate". In the pattern, you can then enter the

Re: [Dhis2-users] How to create entity attribute with generated value based on others elements

2018-11-13 Thread Em Le Hong
Hi, You can use Text Pattern https://docs.dhis2.org/2.30/en/user/html/working-with-textpattern.html Good luck! On Wed, Nov 14, 2018 at 12:51 PM Gérard Bisama wrote: > Hi everyone, > > I am using tracker and I want to create a entity attribute with generated > value that depending on other

[Dhis2-users] How to create entity attribute with generated value based on others elements

2018-11-13 Thread Gérard Bisama
Hi everyone, I am using tracker and I want to create a entity attribute with generated value that depending on other attributes values like : - code of the orgunit assigned to program - value of the field sex - followed by random number of 4 digit. Each of them separated with "-". Do some one