Monday, June 6, 2011

To Upload a file in DB(to a field inside the table)

1.Created table called TEST and field names are Get and Update.
2.Generate web services for that table.
3.Create a new UI
4.Add a new upload button and id of that upload is uploader
5.Add a button and change its id as button1
6.Add a click event for the button created .
7.Open the UI and select XML tab and change its content as








Upload:FileContent1
PARAMETER









8.Goto script tab in UI and add the following contents
var docArray = new Object();
function button1_Click(eventObject)
{


var uploadRequest = documentStoreRequest.XMLDocument;
uploader.request = uploadRequest;
uploader.setShowStatus(true);
uploader.uploadFile();
}
9.Preview the form.

No comments:

Post a Comment