This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

Text message to be displayed in Carousel when no image fetched from database

pankti
pankti Member Posts: 178
edited Jul 13, 2015 7:22AM in JDeveloper and ADF

I’m creating a Carousel using images from a database table. All the fields in the table doesn’t contain images. Currently it displays a cross mark on the image.

For such fields I would like to display some text may be ‘No Image’. To achieve this I have set the ‘EmptyText’ property of the Carousel component. But the text is not displaying. Also I do not wish the cross mark to be displayed instead I want only the text ‘No Image’ to be shown up.

Jdeveloper version – 11.1.1.7.0

Fig – Cross mark displayed for blank image

1.jpg

Fig – EmptyText property set for Carousel component

2.jpg

3.jpg

Tagged:

Best Answer

  • PaKo
    PaKo Member Posts: 378
    edited Jul 13, 2015 7:22AM Answer ✓

    As I understand, emptyText shows only if whole dataset is empty, not particular image (no rows in resultset). It's same as with af:table. Maybe I'm wrong, though.

    You may use "empty" image: E.g. put some "empty" image (suitable to your needs, may just be text "no image" or some icon etc.) in your project resource folder. Then, in your query, replace "null" for path to that image and it will be dispalyed instead of generic "missing image" icon in browser (yes that red X is generic browser icon for missing images).

    pankti

Answers

  • PaKo
    PaKo Member Posts: 378
    edited Jul 13, 2015 7:22AM Answer ✓

    As I understand, emptyText shows only if whole dataset is empty, not particular image (no rows in resultset). It's same as with af:table. Maybe I'm wrong, though.

    You may use "empty" image: E.g. put some "empty" image (suitable to your needs, may just be text "no image" or some icon etc.) in your project resource folder. Then, in your query, replace "null" for path to that image and it will be dispalyed instead of generic "missing image" icon in browser (yes that red X is generic browser icon for missing images).

    pankti
This discussion has been closed.