P
Palli
Hi
Is it possible to update a infopath document in Sharepoint. Currently I
have a button in my document that submits the doc to sharepoint. But now I
what to check to see if the document was opened thru sharepoint and then I
want to update current document, not submit a new one.
This is my code now... and it works but I need to add some code to see if
this doc was loaded from a sharepoint server and then update current doc,
not upload a new instance to the server.
public void Submit_OnClick(DocActionEvent e)
{
try
{
(thisXDocument.DataAdapters["Ad1"] as DAVAdapter).FileName =
"Doc1 - " + System.Environment.UserName + " - " + DateTime.Now +
".xml";
(thisXDocument.DataAdapters["Ad1"] as DAVAdapter).Submit();
thisXDocument.UI.Alert("Message");
}
catch( Exception ex)
{
thisXDocument.UI.Alert(ex.Message);
}
Thanks
Palli
}
Is it possible to update a infopath document in Sharepoint. Currently I
have a button in my document that submits the doc to sharepoint. But now I
what to check to see if the document was opened thru sharepoint and then I
want to update current document, not submit a new one.
This is my code now... and it works but I need to add some code to see if
this doc was loaded from a sharepoint server and then update current doc,
not upload a new instance to the server.
public void Submit_OnClick(DocActionEvent e)
{
try
{
(thisXDocument.DataAdapters["Ad1"] as DAVAdapter).FileName =
"Doc1 - " + System.Environment.UserName + " - " + DateTime.Now +
".xml";
(thisXDocument.DataAdapters["Ad1"] as DAVAdapter).Submit();
thisXDocument.UI.Alert("Message");
}
catch( Exception ex)
{
thisXDocument.UI.Alert(ex.Message);
}
Thanks
Palli
}