T
TruthCommission
I am having a bit of a problem, hopefully someone here can offer a bit
of advice.
I have a forms library on a Sharepoint Portal Server. This library
uses an infopath template. The problem is that when a user submits the
form it always automatically approves the form. I want this to be so
that when a user submits the form, it submits as "Pending" not
"Approved"
I saw an example of how to do it in code using the Microsoft.Sharepoint
reference. I tried that as well and in my managed code (I'm using
VB.NET) the form throws a security exception when it reaches this line
Dim MySite as SPSite
Even a try...catch can't catch the exception (strange as it may seem).
Here is the error it throws:
System.Security.SecurityException
Failure decoding embedded permission set object.
at ManagedCode.ManagedCode.CTRL1_5_OnClick(DocActionEvent e)
at
Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent
pEvent)
So bottom-line is, is there a way, programmatically or otherwise to get
it so that an infopath form submitted to a Sharepoint Forms Library to
submit as pending instead of automatic Approve?
of advice.
I have a forms library on a Sharepoint Portal Server. This library
uses an infopath template. The problem is that when a user submits the
form it always automatically approves the form. I want this to be so
that when a user submits the form, it submits as "Pending" not
"Approved"
I saw an example of how to do it in code using the Microsoft.Sharepoint
reference. I tried that as well and in my managed code (I'm using
VB.NET) the form throws a security exception when it reaches this line
Dim MySite as SPSite
Even a try...catch can't catch the exception (strange as it may seem).
Here is the error it throws:
System.Security.SecurityException
Failure decoding embedded permission set object.
at ManagedCode.ManagedCode.CTRL1_5_OnClick(DocActionEvent e)
at
Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent
pEvent)
So bottom-line is, is there a way, programmatically or otherwise to get
it so that an infopath form submitted to a Sharepoint Forms Library to
submit as pending instead of automatic Approve?