Hello,
i have purchased the JavaScript Library , my main purpose is to use custom tabs in detailed view like in this link: https://appgini.bizzworxx.de/products/j ... view/tabs/
i have copied AppGiniHelper.min.js to my hooks folder and added <script src="hooks/AppGiniHelper.min.js"></script> to the header-extras.php file,
the table name is sales but i cant find the file sales-dv.js in the hooks folder so i can follow the guide for adding custom tabs.
what am i doing wrong?
also, on the header-extras.php i had this:
<script>
var common = new AppGiniCommon();
common.autoRedirect();
</script>
should i leave it or should i delete it and have only : <script src="hooks/AppGiniHelper.min.js"></script> ?
please your support,
Shay.
cant find table-dv.js in hooks
Re: cant find table-dv.js in hooks
Just create that "magic" file:but i cant find the file sales-dv.js
https://bigprof.com/appgini/help/advanc ... agic-files
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: cant find table-dv.js in hooks
This is a special function which helps redirecting users to a given page after forced login. If you need it, you can keep it.AppGiniHelper.getCommon().autoRedirect()
Especially for beginners I highly recommend to learn how to use the browser's development tools with logging and debugging options. You should always check for (red) errors in console tab.
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: cant find table-dv.js in hooks
dear jsetzer,
thanks for your kind support.
i have created the file and copied the exmpale for "New Tab with multi-column layout" from the (Custom) Tabs guide.
i refreshed the detailed view page but no result.
on the detailed view page i have a few fields for the project details and beneath does fileds i need to add the tabs.
please your support,
Shay.
thanks for your kind support.
i have created the file and copied the exmpale for "New Tab with multi-column layout" from the (Custom) Tabs guide.
i refreshed the detailed view page but no result.
on the detailed view page i have a few fields for the project details and beneath does fileds i need to add the tabs.
please your support,
Shay.
Re: cant find table-dv.js in hooks
Please remember to reload your browser without caching.
And always check for errors in console tab of developer tools.
There is a troubleshooting guide here:
https://appgini.bizzworxx.de/support/troubleshooting/
And always check for errors in console tab of developer tools.
There is a troubleshooting guide here:
https://appgini.bizzworxx.de/support/troubleshooting/
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: cant find table-dv.js in hooks
thanks again jsetzer,
i get this errors:
Uncaught ReferenceError: AppGiniCommon is not defined
at sales_view.php:949:16
(anonymous) @ sales_view.php:949
AppGiniHelper.min.js:7 AppGini Version 23.11
AppGiniHelper.min.js:7 AppGiniHelper Javascript Library Version 2022.12.09.1
AppGiniHelper.min.js:7 Uncaught Error: AppGiniHelper | Uncaught exception: .form-group not found: title
at AppGiniHelper.<computed> [as throw] (AppGiniHelper.min.js:7:66887)
at AppGiniControl.<computed> [as getFormGroup] (AppGiniHelper.min.js:7:80688)
at AppGiniHelper.min.js:7:509779
at Array.forEach (<anonymous>)
at AppGiniLayout.<computed> [as add] (AppGiniHelper.min.js:7:509356)
at sales-dv.js:4:7
do i need do define something on sales_view.php?
shay.
i get this errors:
Uncaught ReferenceError: AppGiniCommon is not defined
at sales_view.php:949:16
(anonymous) @ sales_view.php:949
AppGiniHelper.min.js:7 AppGini Version 23.11
AppGiniHelper.min.js:7 AppGiniHelper Javascript Library Version 2022.12.09.1
AppGiniHelper.min.js:7 Uncaught Error: AppGiniHelper | Uncaught exception: .form-group not found: title
at AppGiniHelper.<computed> [as throw] (AppGiniHelper.min.js:7:66887)
at AppGiniControl.<computed> [as getFormGroup] (AppGiniHelper.min.js:7:80688)
at AppGiniHelper.min.js:7:509779
at Array.forEach (<anonymous>)
at AppGiniLayout.<computed> [as add] (AppGiniHelper.min.js:7:509356)
at sales-dv.js:4:7
do i need do define something on sales_view.php?
shay.
Re: cant find table-dv.js in hooks
No. That library is pure client side (browser) Javascript Library.do i need do define something on sales_view.php?
It is enough to include the script in hooks/header-extras.php
http://www.appgini.de/docs/Javascript-L ... start.html
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: cant find table-dv.js in hooks
Uncaught Error: AppGiniHelper | Uncaught exception: .form-group not found: title
I do not know your code. It looks as if you are addressing a field named "title" which seems to be missing.
Check existence of field "title", double check spelling (lowercase?).
Start with small steps: change only one thing, save, reload without cache, any errors? Then change next small thing and again: save, reload without cache, verify.
If a step is not working, focus on the most recent change.
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: cant find table-dv.js in hooks
Attention: don't mix up PHP code (server side) with javascript code (client side/browser).Uncaught ReferenceError: AppGiniCommon is not defined
at sales_view.php:949:16
AppGiniCommon (which is part of the client side javascript library) cannot be used in server side PHP scripts.
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: cant find table-dv.js in hooks
i have copied this example:
var dv = AppGiniHelper.DV;
var row_2 = dv.addLayout([8, 4])
.add(1, ["title", "date", "time"])
.add(2, ["status"]);
i have copied it as is to sales-dv.js, maybe that's the "title" causing the error?
var dv = AppGiniHelper.DV;
var row_2 = dv.addLayout([8, 4])
.add(1, ["title", "date", "time"])
.add(2, ["status"]);
i have copied it as is to sales-dv.js, maybe that's the "title" causing the error?
Re: cant find table-dv.js in hooks
You have to put your own fieldnames of your sales-table, not my fieldnames, obviously.i have copied this example
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: cant find table-dv.js in hooks
Hi jsetzer,
sorry, i thought the fields are created in the code, now everything works.
thanks for your patient.
shay.
sorry, i thought the fields are created in the code, now everything works.
thanks for your patient.
shay.