Summary Reports bug

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
Jay Webb
Veteran Member
Posts: 80
Joined: 2017-08-26 15:27
Contact:

Summary Reports bug

Post by Jay Webb » 2019-08-06 04:54

Ok, Summary Reports has bad path for header-extra.
If I add background image to header-extra with an image path," hooks/images/image.png"
Summary Reports throws an error bad path body background image shows path as "hooks/hooks/images/image.png"
and therefor no background image.
If I change path in header-extra path to, "images/image.png" it displays correctly in Summary Reports, but all other pages have no background image
and error, bad path.

I've tried to find a way to correct but no luck. Hope there's a fix.
What we envision, we make happen.

kbarrett
Veteran Member
Posts: 50
Joined: 2019-02-24 16:35
Location: Calgary Alberta

Re: Summary Reports bug

Post by kbarrett » 2019-08-31 15:24

Hi,

Not really a fix, a work around. I inspected the broken image link in the console and found that the browser is looking for images in the hooks folder. I added an images folder with the appropriate image header and all works. I don't even have to add an image url to the report when I am creating it.

Cheers,

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Summary Reports bug

Post by a.gneady » 2019-10-16 14:27

Sorry for the late reply as I just saw this thread now. Generally, if you're pointing to resources in footer-extras.php or header-extras.php, you should use the predefined constant PREPEND_PATH before the resource path, and then list the path relative to the app path ... So, if the resource is an image stored as hooks/images/image.png (as per your example), you should point to it in header-extras.php like so:

Code: Select all

<img src="<?php echo PREPEND_PATH; ?>hooks/images/image.png">
That way, pages stored anywhere on the app would correctly point to it.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: Summary Reports bug

Post by onoehring » 2019-10-20 14:15

Hi Ahmed,

this is a good tip (tips & tricks?) but unfortunately it is not mentioned in the documentation yet :-(

Olaf

Post Reply