Modify default lookup buttons (dropdown buttons)¶
Bug
There is a display bug with lookups in tabs which will be fixed soon.
The next screenshot shows a modifed icon + text "Edit" for the view-button and an additional "user"-icon + text "New partner" for the add-button of a dropdown.
(1) Change default icon¶
1 2 |
|
(2) Add additional icon and text¶
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Danger
If the currently logged in user does not have enough privileges
...or...
...if you disable the "view" button (in AppGini) ...
... one or both buttons (Add / View parent) will not be available on the detail view page and therefore will not be accessible by any javascript code.
Applying any changes to a non-existing element will cause javascript errors like the following, which can be seen in console tab of your browser's developer tools.
Javascript errors may stop execution of the rest of the code.
You can avoid such errors by checking existence of the button (n) before applying changes:
1 2 |
|