Hi Isomorphic,
please see this testcase and upload the file a 2nd time.
As you will see, the images below the ListGrid now show broken images. This is because the DB Select does return more than one row, making the Servlet throw an exception.
Right now I'm using
as this seems to be correct w.r.t. to the docs:
It is also not working like this (See the ListGrid Response in the Developer Console for an existing title value):
It is working like this (See the ListGrid Response in the Developer Console for an existing pk value):
Best regards
Blama
please see this testcase and upload the file a 2nd time.
As you will see, the images below the ListGrid now show broken images. This is because the DB Select does return more than one row, making the Servlet throw an exception.
Right now I'm using
Code:
src: mediaLibrary.getFileURL(1),
data - Record or value of primary key field for record containing the file to view.
Code:
var record2 = {}; record2.title = "TEST"; //If the title you chose is TEST isc.Img.create({ ID: "img2", src: mediaLibrary.getFileURL(record2), size: 150, });
Code:
var record1 = {}; record1.pk = 2; isc.Img.create({ ID: "img1", src: mediaLibrary.getFileURL(record1), imageHeight: 150, //imageType: "center", imageWidth: 150 });
Blama
Comment