Dynamic fields in program stages

Dear all,

I need to know if there is any way to create dinamic fields in a program stage, so the value is calculated in the data entry form. i.e.

Intergenesic period would be calculated using the 2 fields last delivery day and last menstrual period, or… Body Mass Index with height and weight…

I´ve been looking around and cannot do it with data elements, aggregate formulas or indicators for differents reasons…

Has anyone had these needs before and found a solution?

thanks!

···

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.

image

···


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!

Hi Easy

I can see that we are using Tahoma as font for the server-generated charts which is not good practice. I have changed to using a logical sans serif font, which means that Java will search for the best match within the available fonts for this category. This means that you should be able to install a Chinese sans serif font on your server to render this properly.

You can download the latest version from here

http://apps.dhis2.org/ci/

regards,

Lars

···

On Tue, Oct 9, 2012 at 9:44 AM, easy lin_xd@126.com wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Hi,Lars,
I updated from trunk,recompile,still find some crazy words,though some is corrected.
I wonder if some chart are normal ,but some other chart arn’t display normal. why do you think is font problem?

image

···


此致
easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-09 18:32:30,“Lars Helge Øverland” larshelge@gmail.com wrote:

Hi Easy

I can see that we are using Tahoma as font for the server-generated charts which is not good practice. I have changed to using a logical sans serif font, which means that Java will search for the best match within the available fonts for this category. This means that you should be able to install a Chinese sans serif font on your server to render this properly.

You can download the latest version from here

http://apps.dhis2.org/ci/

regards,

Lars

On Tue, Oct 9, 2012 at 9:44 AM, easy lin_xd@126.com wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

I find this function in app.js under visualizer module will replace all chinese word with null,so the chinese org name will display none in org tree in visualize chart designer.

jsonEncodeString: function(str) {
return typeof str === ‘string’ ? str.replace(/[^a-zA-Z 0-9(){}<>_!+;:?*&%#-]+/g,’’) : str;
},

···

At 2012-10-09 22:56:30,easy lin_xd@126.com wrote:

Hi,Lars,
I updated from trunk,recompile,still find some crazy words,though some is corrected.
I wonder if some chart are normal ,but some other chart arn’t display normal. why do you think is font problem?


此致
easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-09 18:32:30,“Lars Helge Øverland” larshelge@gmail.com wrote:

Hi Easy

I can see that we are using Tahoma as font for the server-generated charts which is not good practice. I have changed to using a logical sans serif font, which means that Java will search for the best match within the available fonts for this category. This means that you should be able to install a Chinese sans serif font on your server to render this properly.

You can download the latest version from here

http://apps.dhis2.org/ci/

regards,

Lars

On Tue, Oct 9, 2012 at 9:44 AM, easy lin_xd@126.com wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Hi, this has already been asked (by you) and answered (by me) on this list.

···

On Tue, Oct 9, 2012 at 5:35 PM, easy lin_xd@126.com wrote:

I find this function in app.js under visualizer module will replace all chinese word with null,so the chinese org name will display none in org tree in visualize chart designer.

jsonEncodeString: function(str) {
return typeof str === ‘string’ ? str.replace(/[^a-zA-Z 0-9(){}<>_!+;:?*&%#-]+/g,’’) : str;
},

At 2012-10-09 22:56:30,easy lin_xd@126.com wrote:

Hi,Lars,
I updated from trunk,recompile,still find some crazy words,though some is corrected.

I wonder if some chart are normal ,but some other chart arn’t display normal. why do you think is font problem?


此致
easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-09 18:32:30,“Lars Helge Øverland” larshelge@gmail.com wrote:

Hi Easy

I can see that we are using Tahoma as font for the server-generated charts which is not good practice. I have changed to using a logical sans serif font, which means that Java will search for the best match within the available fonts for this category. This means that you should be able to install a Chinese sans serif font on your server to render this properly.

You can download the latest version from here

http://apps.dhis2.org/ci/

regards,

Lars

On Tue, Oct 9, 2012 at 9:44 AM, easy lin_xd@126.com wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Hi,sir,

But the chart still have crazy words.

···


此致

easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-10 19:56:31,“Jan Henrik Øverland” janhenrik.overland@gmail.com wrote:

Hi, this has already been asked (by you) and answered (by me) on this list.

On Tue, Oct 9, 2012 at 5:35 PM, easy lin_xd@126.com wrote:

I find this function in app.js under visualizer module will replace all chinese word with null,so the chinese org name will display none in org tree in visualize chart designer.

jsonEncodeString: function(str) {
return typeof str === ‘string’ ? str.replace(/[^a-zA-Z 0-9(){}<>_!+;:?*&%#-]+/g,’’) : str;
},

At 2012-10-09 22:56:30,easy lin_xd@126.com wrote:

Hi,Lars,
I updated from trunk,recompile,still find some crazy words,though some is corrected.

I wonder if some chart are normal ,but some other chart arn’t display normal. why do you think is font problem?


此致
easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-09 18:32:30,“Lars Helge Øverland” larshelge@gmail.com wrote:

Hi Easy

I can see that we are using Tahoma as font for the server-generated charts which is not good practice. I have changed to using a logical sans serif font, which means that Java will search for the best match within the available fonts for this category. This means that you should be able to install a Chinese sans serif font on your server to render this properly.

You can download the latest version from here

http://apps.dhis2.org/ci/

regards,

Lars

On Tue, Oct 9, 2012 at 9:44 AM, easy lin_xd@126.com wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Unfortunately, it has not yet been resolved. Hopefully, it can be in the 2.10 release at the end of this month.

Knut

···

Sent from my mobile

On Oct 11, 2012 3:58 AM, “easy” lin_xd@126.com wrote:

Hi,sir,

But the chart still have crazy words.


此致

easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-10 19:56:31,“Jan Henrik Øverland” janhenrik.overland@gmail.com wrote:

Hi, this has already been asked (by you) and answered (by me) on this list.

On Tue, Oct 9, 2012 at 5:35 PM, easy lin_xd@126.com wrote:

I find this function in app.js under visualizer module will replace all chinese word with null,so the chinese org name will display none in org tree in visualize chart designer.

jsonEncodeString: function(str) {
return typeof str === ‘string’ ? str.replace(/[^a-zA-Z 0-9(){}<>_!+;:?*&%#-]+/g,’’) : str;
},

At 2012-10-09 22:56:30,easy lin_xd@126.com wrote:

Hi,Lars,
I updated from trunk,recompile,still find some crazy words,though some is corrected.

I wonder if some chart are normal ,but some other chart arn’t display normal. why do you think is font problem?


此致
easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-09 18:32:30,“Lars Helge Øverland” larshelge@gmail.com wrote:

Hi Easy

I can see that we are using Tahoma as font for the server-generated charts which is not good practice. I have changed to using a logical sans serif font, which means that Java will search for the best match within the available fonts for this category. This means that you should be able to install a Chinese sans serif font on your server to render this properly.

You can download the latest version from here

http://apps.dhis2.org/ci/

regards,

Lars

On Tue, Oct 9, 2012 at 9:44 AM, easy lin_xd@126.com wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

hope so,thanks

···

At 2012-10-11 12:30:48,“Knut Staring” knutst@gmail.com wrote:

Unfortunately, it has not yet been resolved. Hopefully, it can be in the 2.10 release at the end of this month.

Knut

Sent from my mobile

On Oct 11, 2012 3:58 AM, “easy” lin_xd@126.com wrote:

Hi,sir,

But the chart still have crazy words.


此致

easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-10 19:56:31,“Jan Henrik Øverland” janhenrik.overland@gmail.com wrote:

Hi, this has already been asked (by you) and answered (by me) on this list.

On Tue, Oct 9, 2012 at 5:35 PM, easy lin_xd@126.com wrote:

I find this function in app.js under visualizer module will replace all chinese word with null,so the chinese org name will display none in org tree in visualize chart designer.

jsonEncodeString: function(str) {
return typeof str === ‘string’ ? str.replace(/[^a-zA-Z 0-9(){}<>_!+;:?*&%#-]+/g,’’) : str;
},

At 2012-10-09 22:56:30,easy lin_xd@126.com wrote:

Hi,Lars,
I updated from trunk,recompile,still find some crazy words,though some is corrected.

I wonder if some chart are normal ,but some other chart arn’t display normal. why do you think is font problem?


此致
easy

莫愁前路无知己,天下谁人不识君。

At 2012-10-09 18:32:30,“Lars Helge Øverland” larshelge@gmail.com wrote:

Hi Easy

I can see that we are using Tahoma as font for the server-generated charts which is not good practice. I have changed to using a logical sans serif font, which means that Java will search for the best match within the available fonts for this category. This means that you should be able to install a Chinese sans serif font on your server to render this properly.

You can download the latest version from here

http://apps.dhis2.org/ci/

regards,

Lars

On Tue, Oct 9, 2012 at 9:44 AM, easy lin_xd@126.com wrote:

Hi,all, I put some chinese words in chart,some charts are normal ,but some charts display abnormbal,crazy words, why>? view in attachment.


此致

easy

莫愁前路无知己,天下谁人不识君。

thanks!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp