Hello you all, hope you are having a great day. I’m having some trouble trying to create a custom view for a module, so I’m going to try explaining whats’a my problem here.
What I want is overriding the default view (index/ListView) for a custom module with my own custom view. What I’ve already done is the next:
- I have a remap from action index to my custom action custom/Extension/modules/<custom_module>/Ext/ActionReMap/remap_default_view.php like this:
$action_remap['index'] = 'filter';
- Then I’ve binded the action to a view in custom/Extension/modules/<custom_module>/Ext/ActionViewMap/custom_view.php:
$action_view_map['filter'] = 'filter';
Then I’ve created the view controller in custom/modules/<custom_modules>/views/view.filter.php. Then I’ve created a tpl file which I’m loading a tpl in the display function like this:
public function display() {
parent::display();
$this->ss->display('custom/modules/CustomModule/tpls/filter.tpl');
}
- Then there goes my problem:
As you can see the tpl is being loaded great, but the mass assign form from the ListView is being loaded under my custom view. It seems like the CRM has some kind of check to see if the action=index to load this form.
Also if I modify the URL and set manually action=filter this form disappears.
Is there any way to remove this mass assign form for this view without having to redirect to the custom action? (action=index but without the mass assign form)
My suitecrm version is 7.13.0.
If there’s something I didn’t explained well feel free to ask.
Thanks for your time!!