How to edit the view details button in the children-table?
How to edit the view details button in the children-table?
Hello Jan, thank you for your help... I customized the button according to the guides you give us (for a better understanding of the end user)
but I also want to customize the button that is in table-children, is there a guide? (I changed it but in the templates folder, children-file.php) but there is the problem that every time I compile it returns to its default form. like the images I sent.
thanks for your help.
but I also want to customize the button that is in table-children, is there a guide? (I changed it but in the templates folder, children-file.php) but there is the problem that every time I compile it returns to its default form. like the images I sent.
thanks for your help.
- Attachments
-
- bolet2.png (16.22 KiB) Viewed 831 times
-
- bolet.png (14.78 KiB) Viewed 831 times
-
- boleta3.png (73.2 KiB) Viewed 831 times
Luis Ramirez R.
Re: How to edit the view details button in the children-table?
Good morning,How to replace default links in children tabs by Bootstrap-styled buttons
please find the following code which creates custom edit-buttons in children-tabs:
I. Open record in modal dialog
The function
.addButtonOpenModal()
replaces the default link:Code: Select all
// file: hooks/TABLENAME-dv.js
// open in modal dialog
AppGiniHelper.dv.getChildrenTabs().addButtonOpenModal();
II. Open record in active tab
Wanna open record in the current tab instead of modal dialog? You can use
.addButtonOpen()
.Code: Select all
// file: hooks/TABLENAME-dv.js
// open in tab
AppGiniHelper.dv.getChildrenTabs().addButtonOpen();
III. Custom button
Code: Select all
// file: hooks/TABLENAME-dv.js
// custom button
AppGiniHelper.dv.getChildrenTabs().addButtonOpen("pencil", "Edit", "Edit this record in a new tab", "_blank");
- icon name
for examplepencil
,cog
,option-horizontal
Tip: See icons here - button text
- Tooltip
- target
for example_self
,_blank
,myBroswerTabName
Output
Please note:
- Those changes in
hooks/TABLENAME-dv.js
will not be overwritten on next code-generation. - Those children-tab-panels will be reloaded automatically on changes and every n seconds. Our library reacts to reloads and automatically restores those custom buttons, so you don't have to worry about this.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools
Re: How to edit the view details button in the children-table?
Hi Jan,
I tried the code but I got the following error in console
I am using AppGiniHelper Javascript Library Version 2023.01.04.2
Thanks.
I tried the code but I got the following error in console
Uncaught TypeError: AppGiniHelper.dv.getChildrenTabs().addButtonOpen is not a function
I am using AppGiniHelper Javascript Library Version 2023.01.04.2
Thanks.
Zala.
Appgini 24.17, MacOS 14.6 Windows 11 on Parallels.
Appgini 24.17, MacOS 14.6 Windows 11 on Parallels.
Re: How to edit the view details button in the children-table?
First, can you please check if
If so, please check the following:
AppGiniHelper.DV.getChildrenTabs()
works.If so, please check the following:
- Open that detail view
- Open browser's dev-tools (F12)
- In console-tab type the following command and watch the auto-completion:
AppGiniHelper.dv.getChildrenTabs().add
auto-suggestions while you type:
addButtonOpen
and addButtonOpenModal
. I don't know exactly when we have added them to the library, perhaps after January 2023. If those functions are not available for you, you may consider updating your version.Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools
Re: How to edit the view details button in the children-table?
Hello Jan, good morning...
I did the tests and it doesn't run... errors appear:
// Uncaught TypeError: AppGiniHelper.DV.getChildrenTabs().addButtonOpenModal is not a function
// Uncaught TypeError: AppGiniHelper.dv.getChildrenTabs().addButtonOpen is not a function
-- I have the latest version of AppGiniHelper-20230104 --
Greetings from Panama...
Thank you
I did the tests and it doesn't run... errors appear:
// Uncaught TypeError: AppGiniHelper.DV.getChildrenTabs().addButtonOpenModal is not a function
// Uncaught TypeError: AppGiniHelper.dv.getChildrenTabs().addButtonOpen is not a function
-- I have the latest version of AppGiniHelper-20230104 --
Greetings from Panama...
Thank you
- Attachments
-
- reporte31.png (6.1 KiB) Viewed 744 times
Luis Ramirez R.
Re: How to edit the view details button in the children-table?
Please send...
1) The output of AppGiniHelper.dv.getChildrenTabs()
2) your order number
By email.
1) The output of AppGiniHelper.dv.getChildrenTabs()
2) your order number
By email.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools
Re: How to edit the view details button in the children-table?
ready Jan, I already sent the email to [email protected] <[email protected]>
Luis Ramirez R.
Re: How to edit the view details button in the children-table?
Already answered your email.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools
Re: How to edit the view details button in the children-table?
Thank you very much, this was exactly what I wanted to do....
https://forums.appgini.com/phpbb/viewto ... 9DJQrQqe8g
https://forums.appgini.com/phpbb/viewto ... 9DJQrQqe8g
Luis Ramirez R.