xowf::WorkflowPage instproc stats_record_detail (public)

 <instance of xowf::WorkflowPage[i]> stats_record_detail \
    [ -label label ] [ -value value ] [ -name name ] \
    [ -correctly_answered on|off ]

Defined in /var/www/openacs.org/packages/xowf/tcl/xowf-procs.tcl

Record the stat detail of the question.

Switches:
-label (optional)
-value (optional)
-name (optional)
-correctly_answered (optional, boolean)

Testcases:
create_test_items
Source code:
dict set :__stats_label $name label $value $label
if {[info exists :__stats_success] && [dict exists ${:__stats_success} $name $value]} {
  set details [dict get ${:__stats_success} $name $value]
} else {
  set details ""
}
dict incr details $correctly_answered
dict set :__stats_success $name $value $details
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: