dhis2-users team mailing list archive
Mailing list archive
Re: How to create entity attribute with generated value based on others elements
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
Error: Code is not implemented. I am using the version 2.27 is it due to
Le mer. 14 nov. 2018 à 10:46, Terence Scott <
terence.scott@xxxxxxxxxxxxxxxxxx> a écrit :
> 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 TextPattern that you require.
> Please note that to create a string, you separate with - and not with +.
> This is an example I created:
> The "-" creates the dashes between the various variables, while the -
> separates the variables.
> The number of dots and hashes in the OU code and Sequential relate to the
> number of items shown.
> I hope this helps.
> Kind regards,
> Terence Scott
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> Skype: tpscott1987
> On Wed, Nov 14, 2018 at 8:32 AM Em Le Hong <em.hispvietnam@xxxxxxxxx>
>> You can use Text Pattern
>> Good luck!
>> On Wed, Nov 14, 2018 at 12:51 PM Gérard Bisama <gerbis2000@xxxxxxxxx>
>>> 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 have an idea on how to achieve this?
>>> Gérard Bisama
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help : https://help.launchpad.net/ListHelp
>> *Em Le Hong*
>> DHIS2 Implementation| *HISP Vietnam *
>> em.hispvietnam@xxxxxxxxx | *Skype:* em.hispvietnam@xxxxxxxxx
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help : https://help.launchpad.net/ListHelp