Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 9 Monaten
Letzter Beitrag:
vor 3 Jahren, 9 Monaten
Beteiligte Autoren:
Michael Q, Piet van Zanten, ChrisC

WB19: Show standard image or icon in table column

Startbeitrag von Michael Q am 26.08.2014 10:10

I want to show a "Delete" icon in an image column in every row of a table.
In the Row Display of the Table (Server) I have tried the following code:

TABLE_Project.COL_IconDelete = IMG_X
(IMG_X is an image located off the page).

I have also tried referencing an image which I have placed in the "Other" folder eg:
TABLE_Project.COL_IconDelete = "E:\WebDev 19\Inigo-2\MyPicture.jpg"

In both cases I get a grey generic icon in the column which looks like this:

What am I doing wrong?





Is the table in Ajax mode? Only tables in this mode can display images in columns.



von ChrisC - am 26.08.2014 11:14
Hi Chris,

Yes the table is in Ajax mode.


von Michael Q - am 26.08.2014 11:17
Hi Michael,

AFAIK you cannot reference an image by the name of another image control in Webdev.
You need to place the image in the MyProject_WEB folder an reference it by its name without path or relative to the _WEB folder.
Also it needs to be added to each row of the table by TableAddLine for a table filled by programming or e.g. in the row display process in case of a browsing table.
BTW, placing an image in a table with many rows may seriously slow down the display of the table.
A simpler way to delete a row is to place a single button outside the table to delete the selected row.


von Piet van Zanten - am 26.08.2014 16:05
Many Thanks Piet.


von Michael Q - am 26.08.2014 16:15
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.