Suggestion: New string function
Suggestion: New string function
Hello,
This one came as a new need:
New string function MonthToStr, MonthToStrPt and MonthToStrPtBr: receives a Date and returns the literal month.
Ex: MonthToStrPt(entity.datefield) => Fevereiro
Ex: MonthToStr(entity.datefield) => February
This is not a stopper, since we can simply workaround this with an expression or a pre-calculated field but would be nice to have.
Regards,
Hugo.
This one came as a new need:
New string function MonthToStr, MonthToStrPt and MonthToStrPtBr: receives a Date and returns the literal month.
Ex: MonthToStrPt(entity.datefield) => Fevereiro
Ex: MonthToStr(entity.datefield) => February
This is not a stopper, since we can simply workaround this with an expression or a pre-calculated field but would be nice to have.
Regards,
Hugo.
Re: Suggestion: New string function
Hello.
Please, send us translations of all months. Do you need an additional parameter which will allow to set case of first letter?
Thank you.
Please, send us translations of all months. Do you need an additional parameter which will allow to set case of first letter?
Thank you.
Re: Suggestion: New string function
Month PT:
Janeiro
Fevereiro
Março
Abril
Maio
Junho
Julho
Agosto
Setembro
Outubro
Novembro
Dezembro
PT-BR:
janeiro
fevereiro
março
abril
maio
junho
julho
agosto
setembro
outubro
novembro
dezembro
An extra parameter to set case of the first letter would be nice, yes.
Janeiro
Fevereiro
Março
Abril
Maio
Junho
Julho
Agosto
Setembro
Outubro
Novembro
Dezembro
PT-BR:
janeiro
fevereiro
março
abril
maio
junho
julho
agosto
setembro
outubro
novembro
dezembro
An extra parameter to set case of the first letter would be nice, yes.
Re: Suggestion: New string function
Hello.
Do you need case parameter to the PT language or it should work for PT-BR only?
Thank you.
Do you need case parameter to the PT language or it should work for PT-BR only?
Thank you.
Re: Suggestion: New string function
This is the same of the day of week example:
The standard case for months for PT-PT is upper and for PT-BR is lower. It's the only difference.
However it's possible to have days of week in PT-PT text in lower-case (it's not so usual but it's also correct).
With PT-BR it's also possible to have upper if it's the start of a sentence.
I would say that PT-PT starts with upper by default and PT-BR with lower by default. An extra parameter will change the case of the default.
This extra parameter will be only an extra. It's not so important.
Another possibility would be to have only one function MonthToStrPt that returns months in PT-PT and one extra parameter to put in lower case. I think that this also can solve the problem with the minium effort.
Regards,
Hugo.
The standard case for months for PT-PT is upper and for PT-BR is lower. It's the only difference.
However it's possible to have days of week in PT-PT text in lower-case (it's not so usual but it's also correct).
With PT-BR it's also possible to have upper if it's the start of a sentence.
I would say that PT-PT starts with upper by default and PT-BR with lower by default. An extra parameter will change the case of the default.
This extra parameter will be only an extra. It's not so important.
Another possibility would be to have only one function MonthToStrPt that returns months in PT-PT and one extra parameter to put in lower case. I think that this also can solve the problem with the minium effort.
Regards,
Hugo.
Re: Suggestion: New string function
Hello.
We have added next functions:Where culture could be "PT-PT" or "PT-BR" and third parameter is boolean.
Thank you.
We have added next functions:
Code: Select all
MonthName(DataSource.DateColumn, Culture)
MonthName(DataSource.DateColumn, Culture, UpperCase)
Thank you.
Re: Suggestion: New string function
Thank you.
This function will contribute to make my model layer simpler.
This function will contribute to make my model layer simpler.
Re: Suggestion: New string function
Hello.
Good. Let us know if you need any additional help.
Thank you.
Good. Let us know if you need any additional help.
Thank you.
Re: Suggestion: New string function
Hello,
The current public build still don't support this so I guess will be available latter, right ?
Thank you,
Hugo.
The current public build still don't support this so I guess will be available latter, right ?
Thank you,
Hugo.
Re: Suggestion: New string function
Hello.
Sorry, due to technical reasons we didn't include this function i our previous prerelease build. It will be available in our next build on February 14.
Thank you.
Sorry, due to technical reasons we didn't include this function i our previous prerelease build. It will be available in our next build on February 14.
Thank you.