I have a DataSource with a binary field on it, and a corresponding database table including the requisite metadata
and a ListGrid for displaying its contents
I can see that the full date, including time, gets stored correctly when the file is uploaded, but I can't seem to make it show up on my listgrid fetch.
I thought I could just format the date (e.g., by setting ds field type='datetime', providing a DateDisplayFormat to the ListGridField, etc.), but what I'm seeing is that the time is always 12:00p at the client.
I assume this is supposed to just work, and that I'm more than likely missing the obvious again? For something that seems to be so simple, I've sure had my share of trouble with file upload / view.
Bill
Code:
<field name="ATTACHMENT" type="binary"/>
Code:
CREATE TABLE some_table ( attachment BLOB, attachment_date_created DATE )
Code:
ListGridField attachment = new ListGridField("ATTACHMENT", "File Name"); ListGridField filedate = new ListGridField("ATTACHMENT_date_created", "Date");
Code:
SELECT TO_CHAR(ATTACHMENT_DATE_CREATED, 'MM/DD/YYYY hh24:mi:ss') FROM profile_attachment; -------------------- 08/26/2011 11:40:15 --------------------
I assume this is supposed to just work, and that I'm more than likely missing the obvious again? For something that seems to be so simple, I've sure had my share of trouble with file upload / view.
Bill
Comment