How to remove Save and Continue button from edit view all module in Sugarcrm 7 - sugarcrm

How to remove the "Save and Continue" and the pagination button(marked in image) from edit view of all the modules in sugarcrm 7?

To remove only in Edit View of all modules
Override the file "include\EditView\SugarVCR.tpl" by copy and paste at "custom\include\EditView\SugarVCR.tpl" and change the logic.
I added {if empty($list_link)} as per my need.
To hide from all the view of all the modules
Add a new configuration $sugar_config['disable_vcr'] = true; in config_override.php file

Related

SugarCRM 6.5 how to customize custom module view page print layout

I am beginner SugarCRM developer, I have create custom module successful and working fine. detailview page click print button, printing the different layout. How can I customize this?
SugarCRM has its own css for print media. You can check its ruls in theme style.css
Now if you want to add any further rules then you can do it following way:
#media print {
…
}
You will need to learn more about modifying print layout using CSS. This is something using SugarCRM itself(CSS for print layout). So either you can modify existing rules or can create new one. This link might help.

Open Model on edit in list view

In backpack list view when I click in edit button then I get redirected to another page instead of I want model window where I edit and save the record. Also want for Add New.
How can I do that?
The system really isn't designed for that behaviour to be changed, but if you REALLY need it i guess you can create new files in your resources/views/vendor/backpack/crud. This will make Backpack use those views instead of the ones in the package. You can copy views from the package and change them to fit your need:
- list.blade.php would include edit.blade.php in a bootrap modal;
- buttons/edit.blade.php should trigger the right modal on click;
- edit.blade.php should submit the form with ajax instead and catch the errors, to show them inside the modal;
The same process needs to be repeated for the create.blade.php file.
It won't be easy...

How to edit an existing controller in Ckan through a plugin?

1 of the adjustments I want to make is to edit the admin.py file in the controllers list. For example, the function def _get_config_form_items(self):
I want to remove some of the default items, but i don't know how to edit the file without changing it in the core.
Thanks in advance!
If you want to remove some items from the config, I don't recommend you to overwrite that part of the code. First, go through the tutorial for writing an extension. Add to your plugin the iConfigurer interface and now you can remove or update config items.

Change menus and menu items programmatically in Eclipse E4

I am having trouble removing existing menus from the model, in a running app.
For example:
MMenu menu = modelService.findElements(app, "idMenuFoo", MMenu.class,
Collections.<String>emptyList(), EModelService.IN_MAIN_MENU).get(0);
menu.setLabel("X");
menu.setVisible(false);
menu.setToBeRendered(false);
After this code gets executed:
The label has been changed to 'X'
But the menu entry is still visible/rendered
If I start the app without clearPersistedState, then restart it, the menu has disappeared. This leads me to be believe the the visibility and rendering attributes were set in the first place, but not applied to the model (unlike the label attribute).
How can I programmatically trigger a main menu bar "refresh" after such changes?
As a Greg in the comment above posted, there is an open bug filed to address this issue. An easy to implement a workaround involves manually refreshing the underlying SWT menu. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=365724#c9 for details. In a gist:
// retrieve the main menu, containing the top-level menu element that needs to be refreshed
MMenu mainMenu = ...
// org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer
MenuManagerRender renderer = (MenuManagerRenderer)mainMenu.getRenderer();
renderer.getManager(mainMenu).update(true);

Hiding workflow re-assign button in Maximo

Is it possible to hide the re-assign button in the workflow dialog box for the users? and if so how?
Thanks
my solution may not be the best one, but it works for me. I hid the button using CSS.
Just go to the Application Designer app and use Export system XML action from Select Action dropdown. Then pick LIBRARY XML and save it somewhere on your disk. Open it (using WordPad preferably, Notepad is causing some issues when importing back to Maximo) and CTRL+F find Complete workflow assignment dialog. Go down a bit and you'll see <pushbutton> with label Reassignment:
<pushbutton id="completewf_b_4" label="Reassign" mxevent="directorinput" value="reassign"/>
Add textcss="reassign_btn" (the name is up to you of course)
<pushbutton id="completewf_b_4" label="Reassign" mxevent="directorinput" textcss="reassign_btn" value="reassign"/>
Then save the file and import LIBRARY.xml back to the Maximo using Application Designer app again. Then just edit your maximo.css file (located somewhere in \applications\maximo\maximouiweb\webmodule\webclient\ depending on which skin you are using) and add:
.reassign_btn { visibility: hidden; }
Hope this helps :-)