title: Getting initial_filter to work with subpanel's Select button
body: <p>In Suitecrm have a subpanel and when clicking 'Select' I want it to show only a specific set of records.</p>
  
  <p><a href="https://i.stack.imgur.com/DfN1f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DfN1f.png" alt="enter image description here"></a></p>
  
  <p>I have a subpanel definition file that looks like this and tried all possible variations in the section "initial_filter" but when the pop-up comes up it shows all of the records</p>
  
  <pre><code>$layout_defs["un_inventory"]["subpanel_setup"]['un_inventory_leads_1'] = array (
    'order' =&gt; 0,
    'module' =&gt; 'Leads',
    'subpanel_name' =&gt; 'default',
    'sort_order' =&gt; 'asc',
    'sort_by' =&gt; 'id',
    'title_key' =&gt; 'LBL_UN_INVENTORY_LEADS_1_FROM_LEADS_TITLE',
    //'get_subpanel_data' =&gt; 'un_inventory_leads_1',
  
      'get_subpanel_data' =&gt; 'function:get_parent_leads',
      'function_parameters' =&gt;
          array('import_function_file' =&gt; 'custom/modules/Leads/func/get_parent_leads_file.php',),
  
    'top_buttons' =&gt; 
    array (
      0 =&gt; 
      array (
        'widget_class' =&gt; 'SubPanelTopButtonQuickCreate',
      ),
      1 =&gt;
      array (
        //'widget_class' =&gt; 'SubPanelTopSelectButton',
        'widget_class' =&gt; 'SubPanelTopSelectButtonParentProjectLeads',
        'mode' =&gt; 'MultiSelect',
        // 'initial_filter_fields' =&gt; "&amp;first_name_advanced=hello",
        // 'initial_filter' =&gt; array('parent_project_id_c_advanced' =&gt; array('83b30b20-83a6-8099-b3b9-5d4a491888e6')),
        // 'initial_filter' =&gt; array('parent_project_id_c_advanced' =&gt; '83b30b20-83a6-8099-b3b9-5d4a491888e6'),
        // 'initial_filter' =&gt; array('account_type_advanced' =&gt; array('Student')),
        // 'initial_filter' =&gt; '&amp;parent_project_id_c=83b30b20-83a6-8099-b3b9-5d4a491888e6',
  
      ),
    ),
  );
  </code></pre>
  
  <p>There are many example of how this is done for 'relate' fields in editview, but not so much for subpanel's such as above, I'm pretty sure many would find this valuable.</p>
  
  <p>Solution would probably be applicable to sugarcrm CE also</p>