xowf::test_item::Answer_manager method get_exam_results (public)

 <instance of xowf::test_item::Answer_manager[i]> get_exam_results \
    -obj obj  property [ default ]

Defined in packages/xowf/tcl/test-item-procs.tcl

Retrieve a property value from the exam statistics result page. This page is an instance of the exam statistics workflow stored as a child of the exam object.

Switches:
-obj (required, object)
the exam object
Parameters:
property (required)
the property name
default (optional)
default value when property is not found

Testcases:
No testcase defined.
Source code:
set p [$obj childpage -name en:result -form inclass-exam-statistics.wf]
set instance_attributes [$p instance_attributes]
if {[dict exists $instance_attributes $property]} {
  #ns_log notice "get_exam_results <$property> returns value from "  "results page: [dict get $instance_attributes $property]"
  return [dict get $instance_attributes $property]
}
#ns_log notice "get_exam_results <$property> returns default"
return $default
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: