Hi All,
I need to add scores assigned to item values, and some caculated in data
nodes.
I've used the following syntax.
sum(/data/start_commcare, /data/opening_commcare, /data/logging_in,
/data/navigation_in_form, /data/navigation_between_forms,
/data/choosing_form, /data/finding_client, /data/case_details,
/data/use_all_forms, /data/ask_client, /data/skip_questions,
/data/counsel_on_all_topics, /data/record_accurately, /data/Entering_text,
/data/enter_dates, /data/entering_numbers)
When I test in Cloudcare I get the following error:
internal error handling request: <type
'org.javarosa.xpath.XPathUnhandledException'>:
org.javarosa.xpath.XPathUnhandledException: XPath evaluation: cannot handle
function 'sum'
How can i resolve the problem?
Thanks,
Sangya
Drew_Roos
(Drew Roos)
December 9, 2013, 11:22am
2
sum() can only be used on nodesets. just use + to add everything together.
···
On Mon, Dec 9, 2013 at 1:20 PM, Sangya Kaphle wrote:
Hi All,
I need to add scores assigned to item values, and some caculated in data
nodes.
I've used the following syntax.
sum(/data/start_commcare, /data/opening_commcare, /data/logging_in,
/data/navigation_in_form, /data/navigation_between_forms,
/data/choosing_form, /data/finding_client, /data/case_details,
/data/use_all_forms, /data/ask_client, /data/skip_questions,
/data/counsel_on_all_topics, /data/record_accurately, /data/Entering_text,
/data/enter_dates, /data/entering_numbers)
When I test in Cloudcare I get the following error:
internal error handling request: <type
'org.javarosa.xpath.XPathUnhandledException'>:
org.javarosa.xpath.XPathUnhandledException: XPath evaluation: cannot handle
function 'sum'
How can i resolve the problem?
Thanks,
Sangya
--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
so, (/data/question1 + /data/question2)
···
On Mon, Dec 9, 2013 at 2:22 PM, Drew Roos wrote:
sum() can only be used on nodesets. just use + to add everything together.
On Mon, Dec 9, 2013 at 1:20 PM, Sangya Kaphle skaphle@dimagi.com wrote:
Hi All,
I need to add scores assigned to item values, and some caculated in data
nodes.
I've used the following syntax.
sum(/data/start_commcare, /data/opening_commcare, /data/logging_in,
/data/navigation_in_form, /data/navigation_between_forms,
/data/choosing_form, /data/finding_client, /data/case_details,
/data/use_all_forms, /data/ask_client, /data/skip_questions,
/data/counsel_on_all_topics, /data/record_accurately, /data/Entering_text,
/data/enter_dates, /data/entering_numbers)
When I test in Cloudcare I get the following error:
internal error handling request: <type
'org.javarosa.xpath.XPathUnhandledException'>:
org.javarosa.xpath.XPathUnhandledException: XPath evaluation: cannot handle
function 'sum'
How can i resolve the problem?
Thanks,
Sangya
--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .