Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    image file delete

    I am using smartclient 8.0 pro

    I have blob in the database which stores an image. I am able to upload the a jpg file successfully. During the process I get proper values for DSRequest, and the oldValues and values seem to work as expected.

    However when I try to delete the image from the database, the oldValues and values in DSRequest is exactly the same. though the image is getting delete from the database.

    The code to delete is
    Code:
    			   record.map_filename=null;
    			   record.map_filesize=0;
    			   customDS_zone.updateData(record);
    From where does the server side know to delete the image in the database via the datasource.

    Thanks in advance.

    regards,
    S

    #2
    Not sure if this answers your question, but oldValues are typically automatically provided by DataBoundComponents which track the original values of a record being edited (eg DynamicForm does this). You can manually provide oldValues via the DSRequest Properties argument when calling updateData().

    Comment

    Working...
    X