Open popup windows in customcontroller SuiteCRM

Dear all,
I have done create new action in bulk action in Listview by
Part 1:
gist.github.com/pgorod/5de7c6f8d37413654b16e06668d7e1b1
Part 2:
https://gist.github.com/pgorod/c838f258fadf9528b61183e763e978a8
In part 2, i want to show popup window, please guide me how to create popup window?


<?php
class CustomAccountsController extends SugarController
{
    public function action_displaypassedids() {
        if ( !empty($_REQUEST['uid']) ) {
            $recordIds = explode(',',$_REQUEST['uid']);
            foreach ( $recordIds as $recordId ) {
                $bean = SugarModule::get($_REQUEST['module'])->loadBean();
                $bean->retrieve($recordId);
                echo "Sent Record ID {$bean->id}, name ".$bean->get_summary_text()."";
            }
           //I want to show popup window at here!!!
        }
        sugar_die('');
    }
}

Thanks a lot!

I don’t know the answer, sorry. Look for existing popup windows and try to copy the code. I know it uses a framework called Yahoo UI, or “YUI”.

Note that my gists are calling a different page, and if you want a popup, you probably don’t want any redirects, you want to stay on the same page.

1 Like