stuartclements
Technical User
Hi,
We have built an oracle function used as an 'Age' object in a BO universe. The function compares two dates and returns the difference in years.
Age Object Definition:
f_bo_empl_age(PS_PERSON.birthdate,@Prompt('for which date','D',,MONO,FREE) )
A problem is occuring when a query is run on Webi using the object. Assume a persons birthdate is 20/10/71 (UK Format)
When the query is run with the date: 17/11/03 the age is returned as 46 (This is correct if the date is taken as year 2017)
When run with a date: 11/17/03 (US Format) the query correctly returns the age of the person as :32
This issue seems to be related to the @Prompt function and how BO interprates the date entered by the user.
Has anyone seen this problem before?
We are using BO5.1.7 running against an Oracle 9i DB.
Thanks
Stuart
We have built an oracle function used as an 'Age' object in a BO universe. The function compares two dates and returns the difference in years.
Age Object Definition:
f_bo_empl_age(PS_PERSON.birthdate,@Prompt('for which date','D',,MONO,FREE) )
A problem is occuring when a query is run on Webi using the object. Assume a persons birthdate is 20/10/71 (UK Format)
When the query is run with the date: 17/11/03 the age is returned as 46 (This is correct if the date is taken as year 2017)
When run with a date: 11/17/03 (US Format) the query correctly returns the age of the person as :32
This issue seems to be related to the @Prompt function and how BO interprates the date entered by the user.
Has anyone seen this problem before?
We are using BO5.1.7 running against an Oracle 9i DB.
Thanks
Stuart