I want to add more survey question just to check customer response that he/she satisfied with service company provides to solve issue...
it works fine when i open as portal user ..it display one question..
But it gives error when i click as adminn and incident(create new incident,open all incidemt) it gives error
call_satifaction is NOT a valid attribute of class Incident.
Notice: Undefined index: call_satifaction in C:\wamp\www\web\core\metamodel.class.php on line 745
Fatal error: Call to a member function IsWritable() on a non-object in C:\wamp\www\web\core\metamodel.class.php on line 508
following steps
1) first i update a ticket_response table add one more column call_satisfaction
2) updated file en.dict.itop-ticket.php
add following lines:-
'Class:ResponseTicket/Attribute:call_satisfaction' => ' Was your issue resolved to your satisfaction?',
'Class:ResponseTicket/Attribute:call_satisfaction+' => '',
'Class:ResponseTicket/Attribute:call_satisfaction/Value:1' => 'Yes',
'Class:ResponseTicket/Attribute:call_satisfaction/Value:1+' => 'Yes',
'Class:ResponseTicket/Attribute:call_satisfaction/Value:2' => 'No',
'Class:ResponseTicket/Attribute:call_satisfaction/Value:2+' => 'No',
3)updated files:-model.itop-ticket.php
line 213:- add this lines..... MetaModel::Init_AddAttribute(new AttributeEnum("call_satisfaction", array("allowed_values"=>new ValueSetEnum('1,2'), "sql"=>"call_satisfaction", "default_value"=>"1", "is_null_allowed"=>true, "depends_on"=>array())));
line 216-217:add call_satisfaction in following lines-
itop Version 1.2
I want to add more survey question just to check customer response that he/she satisfied with service company provides to solve issue...
it works fine when i open as portal user ..it display one question..
But it gives error when i click as adminn and incident(create new incident,open all incidemt) it gives error
call_satifaction is NOT a valid attribute of class Incident.
Notice: Undefined index: call_satifaction in C:\wamp\www\web\core\metamodel.class.php on line 745
Fatal error: Call to a member function IsWritable() on a non-object in C:\wamp\www\web\core\metamodel.class.php on line 508
following steps
1) first i update a ticket_response table add one more column call_satisfaction
2) updated file en.dict.itop-ticket.php
add following lines:-
3)updated files:-model.itop-ticket.php
line 213:- add this lines..... MetaModel::Init_AddAttribute(new AttributeEnum("call_satisfaction", array("allowed_values"=>new ValueSetEnum('1,2'), "sql"=>"call_satisfaction", "default_value"=>"1", "is_null_allowed"=>true, "depends_on"=>array())));
line 216-217:add call_satisfaction in following lines-
MetaModel::Init_SetZListItems('details', array('ref', 'title', 'org_id', 'start_date', 'tto_escalation_deadline', 'ttr_escalation_deadline', 'closure_deadline', 'document_list', 'ci_list', 'contact_list', 'status', 'caller_id', 'service_id', 'servicesubcategory_id', 'product', 'impact', 'urgency', 'priority', 'workgroup_id', 'agent_id', 'agent_email', 'related_problem_id', 'related_change_id', 'close_date', 'last_update', 'assignment_date', 'resolution_code', 'solution', 'user_satisfaction','call_satisfaction', 'user_commment'));
MetaModel::Init_SetZListItems('advanced_search', array('finalclass', 'ref', 'title', 'org_id', 'start_date', 'status', 'caller_id', 'service_id', 'servicesubcategory_id', 'product', 'impact', 'urgency', 'priority', 'workgroup_id', 'agent_id', 'agent_email', 'related_problem_id', 'related_change_id', 'close_date', 'last_update', 'assignment_date', 'tto_escalation_deadline', 'ttr_escalation_deadline', 'closure_deadline', 'resolution_code', 'solution', 'user_satisfaction','call_satisfaction','user_commment'));
MetaModel::Init_SetZListItems('standard_search', array('finalclass', 'ref', 'title',
'org_id', 'start_date', 'status', 'caller_id', 'service_id', 'servicesubcategory_id', 'product', 'impact', 'urgency', 'priority', 'workgroup_id', 'agent_id', 'agent_email', 'close_date', 'resolution_code', 'solution', 'user_satisfaction', 'call_satisfaction','user_commment'));
3)-Add one more line:-line332
'call_satisfaction' => OPT_ATT_MUSTPROMPT,
And i updated most of realttd files .itop.incident dile,service mangement file....
Please help me to solve this issues....
Thanks in advance
Pankaj Khurana
when i checked using toolkit ... its show this ..please just give clues
thanks to all ,I have fixed this problem....