List with image

List with image

SWATswatSWATswat Posts: 109Questions: 0Answers: 0

Hi Allan,

Is it possible to make a name list to display an image in datatable and store the address of the image in the database ?

Exemple (definitely false)

{
                label: "Priority:",
                name:  "priority",
                type:  "select",
                options: [
                    { label: "green",  value: "http://compagny.com/color/green.gif" },
                    { label: "orange",value: "http://compagny.com/color/orange.gif" },
                    { label: "red",      value: "http://compagny.com/color/red.gif" },
                    { label: "black",   value: "http://compagny.com/color/black.gif" },
                    { label: "white",  value: "http://compagny.com/color/white.gif" }
                ]
            }

Thanks a lot for your help.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin

    It sounds a lot like a left join. Does that suit your needs?

    Allan

  • SWATswatSWATswat Posts: 109Questions: 0Answers: 0
    edited June 2016

    No Allan, I want to know if it is possible to have a datatable with color list in the editor to display an image in the table and save the URL in the data base of this image?

    much like file upload without selecting the image in a folder.
    Have a Field List with recorded images database that we just choose to display.

    The example given was not clever.

    Thanks.

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin

    Sorry - I'm still not getting it. You've got a select with a list of options (which are statically defined?). If you have the value in the data, can you not just use a renderer (or even a different data point) to display in the table?

    Allan

This discussion has been closed.