AnsweredAssumed Answered

Display() function of QuickCreate in subpanel never called

Question asked by community-support on Jan 13, 2014
Latest reply on Jan 13, 2014 by community-support
i'm trying to insert code in display() function of the quickCreate ('Create' button) on Cases subpanel (in Accounts module).
but the display function isn't called at all.

what i did is copy the file view.quickcreate.php file from include/MVC/View/views folder
into custom/modules/Cases/views and modified it.

i changed the class and the requireonce and thats it:

[PHP]
require_once('include/MVC/View/views/view.ajax.php');

//require_once('include/EditView/EditView2.php'); // commented out
require_once('include/MVC/View/views/view.quickcreate.php'); // added

//class ViewQuickcreate extends ViewAjax   // commented out
class CustomViewQuickcreate extends ViewAjax   // added
{

[/PHP]

and insert a phrase in display function:

[PHP]
$GLOBALS['log']->fatal('Hello');
[/PHP]

but when i push the 'Create' button in cases subpanel , the function never called.
(i did all the above also for Cases Editview and it worked great but for QuickCreate it doesn't).

any ideas?

(from rodnikosh)

Outcomes