Forums: [SOLVED] Only First Image Showing In List - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

[SOLVED] Only First Image Showing In List Rate Topic: -----

#1 User is offline   Bill Lalor 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 26-September 14

Posted 09 May 2016 - 02:51 PM

In a project, we have a list of vehicles that can be reserved. There is an image field in that table and when the list for that table displays, all the images display as well. However, in a list created by a query of vehicles that are not currently in use, only the first image in the list shows. All the others show an icon for a broken link.

Here is the source for the first item in the list which does display the image:

<td class="rnr-field-text" data-record-id="9">
<span id="edit9_Image" ><img border=0 style="max-width:75px;max-height:75px;" src="mfhandler.asp?file=MP32%2Ejpg&amp;table=AvailableVehicles&amp;field=Image&amp;pageType=list&amp;fkey=&amp;nodisp=1"></span>
</td>


Here is the source for the next item in the list which DOES NOT display the image.

<td class="rnr-field-text" data-record-id="10">
<span id="edit10_Image" ><img border=0 style="max-width:75px;max-height:75px;" src="mfhandler.asp?file=MP39%2Ejpg&amp;table=AvailableVehicles&amp;field=Image&amp;pageType=list&amp;fkey=&amp;nodisp=1"></span>
</td>

All of the images are in the same directory.

Any idea what is wrong?

Thanks!
0

#2 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 15435
  • Joined: 03-February 03

Posted 10 May 2016 - 03:48 PM

Not sure I understand. Are we talking about some custom code or about built-in functionality?

Just in case make sure there is a key column selected for the table where images are stored. As far as I can see there is not key column specified in image URL ("fkey" parameter).
Best regards,
Sergey Kornilov
0

#3 User is offline   Bill Lalor 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 26-September 14

Posted 11 May 2016 - 01:53 PM

Hi Sergey. No custom code. Just an image field in a table of vehicles. When the list page for that table displays, the images are fine. However, I have another list that comes from a query that includes a join to that table and pulls the image field. In that list, only the first image displays and the subsequent ones show only the broken image graphic.

I'll verify the key column and see how that goes.

Thanks again, Bill
0

#4 User is offline   Bill Lalor 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 26-September 14

Posted 11 May 2016 - 02:48 PM

Sergey, it appears that checking the ID box on the "Pages" worked. Thank you again.
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked