Hi to all,
is there any way to add import funcion in Action menu from subpanel?
Thnak you
Hi to all,
is there any way to add import funcion in Action menu from subpanel?
Thnak you
This should get you started:
https://developer.sugarcrm.com/2010/11/22/howto-adding-your-own-listview-action-items/
P.S. - I’ve never done it, but I remembered reading that article a while ago… I hope it helps you.
Hello,
i was able to create my custom import button…
require_once(‘include/generic/SugarWidgets/SugarWidgetSubPanelTopButton.php’);
class SugarWidgetSubPanelImportItems extends SugarWidgetSubPanelTopButton
{
function display($defines, $additionalFormFields = null)
{
global $mod_strings;
$button = '<input class="button" onclick="document.location=\'index.php?module=Import&action=Step1&import_module=DBGIT_ManageOrders&return_module=DBGIT_ManageOrders&return_action=index\'" name="import" value="Import" type="button">';
return $button;
}
}
What i’m not able to do is to compose the url that can permit me to return to the parent related record…so
Parent module: orders
subpanel: items
On subpanel items i start the import process…when completes it shoud return in the detail view of parent id.
Anyone can help me on this?
Thank you
Hi! Have you managed to solve the problem and get import from subpanel?