Infopath-Sharepoint Approval Status

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?
 
J

John Sivilla

Is the user submitting the form an Administrator on the site containing the
Forms Library? If so, try submitting it with a user who is not Administrator.
 
T

TruthCommission

I tried both ways, as an administrator it auto-approves, I logged out
and logged on as a non-admin and it still will auto-approve the form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top