.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Worklow Approval Required of Majority but 1 Rejects

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#
We have a workflow set up that asks for approval from 4 people but only a majority need to approve. However, is there a way to set it up that if only 1 person rejects, it rejects the workflow but keep a majority required to approve?

View Complete Post

More Related Resource Links

sql server 2005 enterprise edition is required


sql serve 2005 enterprise edition is required to work with microsoft enterprise blocks


Export Dataset to excel sheet in a required format?



I know how to export a grid view to excel.

But here i have a Dataset which consists of data like below and also it need to display in a required format like below.

pno psubno pstate pdetailid pdetails

 12    1          CA         1           cbsdjcbdjc     

12     1          CA          2        cndcnjdcjcj

12     2           VA         4          xcndwkfcgygry

13     1            AL        1           ncdcnjdcndj

My excel sheet  should like this.

pid       pstate     

 12/1      CA             &nb

Required permissions cannot be acquired when host asp.net 3.5 application in godaddy


I got the following error when click print report button.

Application : asp.net 3.5

Crystal report : 10.5

Host: godaddy

Please help me.


Required permissions cannot be acquired.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Use DB query result to generate Jquery required lines of code



I 'm gonna query database for photo records. each record include "photo path" where imagesURL  stored in string format

 I Choses my favorite Juqery plugin to show images. Plugin needs some lines of code like below.

How could I  generate these lines

$(function() {
sleep: 2,
fade: 1
}, [
{ src: 'picture1.jpg' },
{ src: 'picture2.jpg' },
{ src: 'picture4.jpg' }

How to Customize the Add Comment 'Items on this list require content approval...' notification in


WSS 3.0:

If content approval is turned on, the Add Comment section displays a fairly ugly notification. Is there any way I can customize that section through e.g. CSS or SPDesigner?

I'd like to change at least the text, and preferably the yellow exclamation image, and also the background if possible.

Serial approval workflow keeps running


I have a serial approval workflow created out of the box. The setting cancell this workflow when the document is rejected is selected. But if one of the approvers rejects it the workflow keeps running. After this is it will give acces denied errors for the other approvers.

So for example what is happening. The workflow is started and sends a email to persone 1. This persone approves so the workflow sends a email to persone 2. Persone 2 decided to reject the document. Now i want the workflow to be cancelled, but it keep running and sends a email to persone 3 for approval. If persone 3 opens the workflow he get's a acces denied error, i guess because of the reject.

Anyone has a idea what is happening here?

Required columns on list; how can I reset them to be NOT required?

I have a user list where several fields in a sharepoint list that were originally created as required, but would now like to make them not required. I have already tried simply unchecking the required field checkbox, but that does not work. Any other ways to do this?

Viewmodel property not set to [Required] yet getting error message saying it is?


I have a viewmodel that i use for my view

public int SelectionId{ get; set; }        
public IEnumerable<Selections> Selections { get; set; }

Notice that SelectionId is not decorated with [Required]. In my view, i use DropDownFor like this:

<%= Html.DropDownListFor(m => m.SelectionId, new SelectList(Model.Selections, "Id", "Name"), "--- Select ---")%>

It should be possible to not select anything from the dropdown, resulting in model.SelectionId = 0, which is fine. Why do i get a "SelectionId field is required" error when i Post?  If i do this:

<%= Html.DropDownList(mySelectionId, new SelectList(Model.Selections, "Id", "Name"), "--- Select ---")%>

I no longer get the error if i dont select anything, which is what i want - but no way to bind it to the id if the user does select something

thanks for any help!

Item approval in Discusion borad


In a sharepoint discussion board, I am using content approval. As we know, Administrator can see all posts (approved as well as pending posts).

I want  to know, how can Admin differentiate among the approved posts and the posts pending for approval? can we change the color of the posts waiting for approval?



Could not find a part of the path ... Occuring even if it's not required

I have a windows application which will be installed on a client PC. However, when the user tries to run the app, an error is thrown up.   Could not find a part of the path "C:\Documents and Settings\$username$\Application Data\$appName folder$\sample_log.txt   I looked in the code..but could not find any reference to the file named sample_log.txt . There's no code that creates this file. Although, I know, we had in the past created this file for testing purposes and then deleted the code.   Thank You    

WebServiceBindingAttribute is required on proxy classes.

  I created a soap based web service and create a function named SetclientCredential which set the client credential using Microsoft.Web.Services3.Security.Tokens.UsernameToken the code sample is given below: <System.ComponentModel.DesignerCategoryAttribute("code")> _ <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _ <System.Web.Services.WebServiceBinding(Name:="LocalBinding", Namespace:="http://tempuri.org/Service", Location:="http://tempuri.org/Service.asmx?wsdl")> _ <ToolboxItem(False)> _ Public Class Service Inherits System.Web.Services.Protocols.SoapHttpClientProtocol <SoapDocumentMethod(Action:="http://tempuri.org/SetClientCredential", _ RequestNamespace:="http://tempuri.org/", _ RequestElementName:="GetUserNameRequest", _ ResponseNamespace:="http://tempuri.org/", _ ResponseElementName:="GetUserNameResponse"), _ WebMethod(Description:="Obtains the User Name")> _ Public Sub SetClientCredential(ByVal username As String, ByVal userpass As String) username = "ADMIN" userpass = "password" Dim usernametoken As New Microsoft.Web.Services3.Security.Tokens.UsernameToken(username, userpass) Dim cProxy As New Microsoft.Web.Services3.WebServicesClientProtocol cProxy.SetClientCredential(usernametoken)

Why upgrade is required from SQL Server 2000 to SQl Server 2008

Hi all Can some body share with information about "Why upgrade is required from SQL Server 2000 to SQl Server 2008?"   This question was raised by my Boss why upgrade is required.   I stared saying   My: there is no more   support for SQL Server 2000 from Microsoft   Boss: what you will do  as DBA, Why Required Microsoft support   My: 2008 having very good features where 2000 not have...like Compression, resource governing. .Etc..   Boss: do you mean Database backup compression take full backup and compresse it using ZIP   Finally He (Boss) told me that give document proof why I have go for SQL Server 2008 and what down time you required?   Some body help me why really SQLServer 2008 is required and what are benefits   I have a link; please provide your greatest ideas so that I can convince my Boss.   http://www.mssqltips.com/tip.asp?tip=1462   share your greate Ideas please....   Thanks in Advance     SNIVAS

No value given for one or more required parameters.

Hello, I am getting the "No value given for one or more required parameters." when importing an Excel 2003 spreadsheet into my web site. I have pinpointed the problem to be the last column in my SELECT statement. This column does not seem to be a reserved word and the the data in the column 'POS' and 'HMO' seems fine as well. The SELECT code is posted below as well as 4 other columns I am having the same problem (they are commented out for now). Any help solving this problem would be greatly appreciated.Dim objCommand As New OleDbCommand("SELECT [Employee Name] as Employee, " & _ "[Residence Zip Code] as ZipCode, " & _ "[Position] as EmpPos, " & _ "[FT Exempt, FT Non Exempt, PT Exempt, PT Non Exempt] as Exempt, " & _ "[Annual Salary OR Hourly Rate] as Rate, " & _ "[Hours Per Pay Cycle] as HoursPerPayCycle, " & _ "[Date of Birth] as DateOfBirth, " & _ "[Gender] as Gender, " & _ "[Status: Active or COBRA] as AorCStatus, " & _ "[Plan Name] as PlnName " & _ "FROM [Census$]", objXConn) ' "[Workers Comp Category] as WorkersComp, " & _ ' "[Medical Tier: EE Only, EE & Child(ren), EE

WCF Workflow Service Application - Required Extensions

Hello, I built a WCF Workflow Service App and I built a custom activity that requires an extension in the workflow. In a web app, I'm trying to create a service reference to the WCF workflow service but it says that an extension that is required has not been provided; so how do I consume a service with a required extension? At what point do I supply that extension in an ASP.NET scenario? Thanks. http://linkedin.com/in/brianmains

Server-side validation on an Entity Framework required field (property) does not work!

Has anyone had issues getting server-side validation on an Entity Framework required field (property) to work? The data type is a string (nvarchar). Server-side validation for required fields of other data types WORK fine. Only string fields have issues. I get the following error on UpdateModel(obj); of my POST method within the controller. Exception Details: System.Data.ConstraintException: This property cannot be set to a  null value.Source Error: Line 4500:                OnTextChanging(value);Line 4501:                ReportPropertyChanging("Text");Line 4502:                _Text = StructuralObject.SetValidValue(value, false);Line 4503:                ReportPropertyChanged("Text");Line 4504:                OnTextChanged(); I've even tried data annotations like this but it seems to get ignored.     [MetadataType(typeof(ObjMD))]     public partial class Obj     {    

Server ERROR: An error occurred during the parsing of a resource required to service this request.

I have created one asp.net 2.0 application and created a setup project. I run this setup in my local machine, the application run fine, but i uploaded into online server I met the following parser error.How to solve this error? Kindly help me. Very urgent.. Kamal....


I have got a code on cluster analysis made on asp.net platform.When i run it on MS Visual Web Developer 2008 edition the default.aspx page opens. But when i press any other button the page it gives the error message "A connection cannot be made. Ensure that the server is running."Kindly help me out. Its very urgent.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend