Announcement

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

    Integrate SmartClient Server

    Hi

    I have a web application ( Tomcat as my web server ) there is a jsp file in my project and it has this script code in it
    Code:
        isc.DataSource.create
        ({
           serverType:"sql",
           fields:[
             {primaryKey:true, hidden:true, type:"sequence", name:"id"},
             {hidden:true, type:"number", foreignKey:"uploadTest.id", name:"uploadTestId"},
             {title:"File", type:"binary", name:"file"},
             {
               title:"Name",
               type:"text",
               hidden:true,
               length:255,
               name:"file_filename",
               canEdit:false
             },
             {title:"Size", type:"number", hidden:true, name:"file_filesize", canEdit:false},
             {title:"Date Created", type:"date", hidden:true, name:"file_date_created", canEdit:false}
           ],
           ID:"uploadedFiles"
        })
    I also have a DynamicForm that its DataSource is my DataSource when the form is saved no action occurs.

    I have seen in SmartClient visual builder a DataSource with name of "uploadedFiles" excatly the ID of DataSource, how can I integrate my
    web application to communicate with SmartClient server to send binary date to this server DataSource and recieve form it binary data.

    Regards
    Amirhosein
    Last edited by Isomorphic; 4 Feb 2008, 17:58.

    #2
    Hi Amirhosein,
    Firstly - which version of SmartClient are you using? The SmartClient 6.0 LGPL version does not include the SmartClient java server.
    You can check your version info in the developer console by typing 'isc.version' and hitting "evaluate".
    If you are not running the SmartClient java server, you won't be able to save to a sql server without some back-end code.
    For more on this, see the client server integration and client data integration documentation.

    Secondly, as documented here to upload binary data (files) to the server you will need to use direct form submission via form.submitForm() rather than running through the standard data binding flows (such as form.saveData()).

    I hope this makes sense - please let us know if you have more questions
    Thanks
    Isomorphic Software

    Comment

    Working...
    X