How to add custom create button on popup search window for custom module?

-I have create one custom module(category) and create relation with account module(1 to many)

now i want this button of 'create category' on popup search of category in account module

(from Ishani Lad)
Parents
  • I tried to follow these steps, but I have not been successful
    1- In custom/modules/<MyModule>/metadata/popupdef.php file,I added the following lines :

    'searchInputs' => array (....),

    'create' =>
    array('formBase' => 'MyModuleFormBase.php',
    'formBaseClass' => 'MyModuleFormBase',
    'getFormBodyParams' => array('','','MyModulesave'),
    'createButton' => $mod_strings['LNK_NEW_RECORD'] 

    ),

    after that , I did a quick repair, but I got errors, 


Reply
  • I tried to follow these steps, but I have not been successful
    1- In custom/modules/<MyModule>/metadata/popupdef.php file,I added the following lines :

    'searchInputs' => array (....),

    'create' =>
    array('formBase' => 'MyModuleFormBase.php',
    'formBaseClass' => 'MyModuleFormBase',
    'getFormBodyParams' => array('','','MyModulesave'),
    'createButton' => $mod_strings['LNK_NEW_RECORD'] 

    ),

    after that , I did a quick repair, but I got errors, 


Children
No Data