When I want to convert my XLSForm using the application, I get the following error:
Error: ODK Validate Errors: org.javarosa.core.log.WrappedException: Error evaluating field 'femmebureauscore': The problem was located in calculate expression for ${femmebureauscore} XPath evaluation: cannot handle function 'floor' => org.javarosa.xpath.XPathUnhandledException[The problem was located in calculate expression for ${femmebureauscore} XPath evaluation: cannot handle function 'floor']
This comes from the line, in my xls file:
type name label calculation
calculate femmebureauscore score femmes floor(((${Nbres_Membre_bureau_Femmes}div(${Nbres_Membre_bureau_Femmes}+${Nbres_Membre_bureau_Hommes}))+0.18)*4.5)-1
This calculation aims to give à 0 to 4 marks depending on the % of women members in a team.
Nbres_Membre_bureau_Femmes is an integer with the number of women in the team,
Nbres_Membre_bureau_Hommes is an integer with the number of men in the team.
I want a '0' score if there's 0% women, '1' for 30%, '2' for 50%, '3' for 75% and '4' for 100%.
When I want to convert my XLSForm using the application, I get the
following error:
Error: ODK Validate Errors: org.javarosa.core.log.WrappedException: Error
evaluating field 'femmebureauscore': The problem was located in calculate
expression for ${femmebureauscore} XPath evaluation: cannot handle function
'floor' => org.javarosa.xpath.XPathUnhandledException[The problem was
located in calculate expression for ${femmebureauscore} XPath evaluation:
cannot handle function 'floor']
This comes from the line, in my xls file:
type name label calculation
calculate femmebureauscore score femmes
floor(((${Nbres_Membre_bureau_Femmes}div(${Nbres_Membre_bureau_Femmes}+${Nbres_Membre_bureau_Hommes}))+0.18)*4.5)-1
This calculation aims to give à 0 to 4 marks depending on the % of women
members in a team.
Nbres_Membre_bureau_Femmes is an integer with the number of women in the
team,
Nbres_Membre_bureau_Hommes is an integer with the number of men in the
team.
I want a '0' score if there's 0% women, '1' for 30%, '2' for 50%, '3' for
75% and '4' for 100%.
When I want to convert my XLSForm using the application, I get the
following error:
Error: ODK Validate Errors: org.javarosa.core.log.WrappedException: Error
evaluating field 'femmebureauscore': The problem was located in calculate
expression for ${femmebureauscore} XPath evaluation: cannot handle function
'floor' => org.javarosa.xpath.XPathUnhandledException[The problem was
located in calculate expression for ${femmebureauscore} XPath evaluation:
cannot handle function 'floor']
This comes from the line, in my xls file:
type name label calculation
calculate femmebureauscore score femmes
floor(((${Nbres_Membre_bureau_Femmes}div(${Nbres_Membre_bureau_Femmes}+${Nbres_Membre_bureau_Hommes}))+0.18)*4.5)-1
This calculation aims to give à 0 to 4 marks depending on the % of women
members in a team.
Nbres_Membre_bureau_Femmes is an integer with the number of women in the
team,
Nbres_Membre_bureau_Hommes is an integer with the number of men in the
team.
I want a '0' score if there's 0% women, '1' for 30%, '2' for 50%, '3' for
75% and '4' for 100%.