Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

Automatically assigning worklow approver from info path form

Posted: Jan/18/2011   By: nikhil   Points:15   Category: .NET  - ASP.Net    Views:10   Vote Up (0)   Vote Down (0)    

I have an infopath form which has a field called Manager. when a user fills out the manager field in the web based form I want this to auto populate the approver field in the new workflow so that the manager gets an approval email for approve or reject of the form

Thanks


Sharepoint Customiser

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

send alert message to user if close internet browser before save web form data

  

 Hi, I have window form to let user fill data, I want to alert user if close web browser before saved web form data, could anyone provide any clue?

 

Thanks,

Martin


access to web form from class

  

hey,

i've read several posts with similar but problems, but i can't find one exactly like what i am seeing.  This is probably very simple...i just can't get the exact solution.

Platform is c#, VS 2010.

I have a web form and code behind file, with scripting that works just fine.  i'm trying to move script from the code behind file into a class, to consolodate and create re-use. The basic problem is when i move the script into the class, i cannot access the webform.

error here on "this":   HyperLink hyplAlertbox = (HyperLink)this.frmEtsuHome.FindControl(codeboxID);

i know WHY it throws the error, i just don't know how to fix it.  any help is appreciated.

below is simplified code....

------------------------------------------------------------------------------------------------

New Script in Code Behind File:


namespace myhome
{
    public partial class _default : System.Web.UI.Page
    {
                    
        protected void Page_Load(object sender, EventArgs e)
        {
             new majorAlerts();
             majorAlerts.GetAlerts();
             majorAlerts.ProcessAlerts(); } } }

-------------------------------------------------------------------------------------

Code for the Class

-------------------------------------------------------------------------------------


using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;

namespace myhome
{
    public class majorAlerts
    {
        
        public static void GetAlerts()
        {
            // grab the alerts and store them in a list                     
        }

public static void ParseAlerts(List<Alert> lAlerts) {
            foreach (Alert Alert in lAlerts) { // create codebox ID codeboxID = "codebox" + index.ToString(); // find hyperlink with ID of codeboxN cand reate an instance of it HyperLink hyplAlertbox = (HyperLink)this.frmMyHome.FindControl(codeboxID);

//******************* ERROR *************************************************
// ERROR ON this in previous line.  i understand, because "this" is not the form like it is in the code behind file.
// but i don't know how to modify "this" and make it work from class file
// **************************************************************************

 // set hyperlink URL value for alert based on alert ID alertURL = "http://www.blah.com"; hyplAlertbox.NavigateUrl = alertURL; } }




"Tabbed" Form with strongly typed model and validation after each tab

  

I got a very long user creation form with tons of validation.  Works fine.

Now I want to "split" this form into 5, displaying each form in a set of tabs (will be using jQuery UI Tabs).

So when you start, Tab1 is enabled, the rest not.

You finish what is in Tab1, and click "Next", the part of the original long form get validated (like a normal form using client side and remote validation .....it *must* be client side.  User Requirement.)

If valid, Tab2 becomes enabled, and also the user are shown Tab2.

Once the user get to finish and reach the last tab (which will basically just have a "Submit" button) I need to post everything that was entered across the series of tabs to the server (back to the single form/model/controller the existing form works on).

Any tips / advice / samples out there will be welcome.  (However not suggestions to change the requirements....picky as hell client)

Thanks for reading....


Why separate account data and user info?

  

Hi,

If I'm correct the membership functionality separates account and user (profile) data in two tables. Why not one table? What's the design priciple behind this?

Thanks!


How to read XML in XMLDOcument which may not be valid? getting error as "Illegal characters in path."

  

Hello,

    I need to read part of XML in XMLDocummnet, search for specific node and change its value and save it.

As input is "Part of XML", I am getting error as "Illegal characters in path."   

My code works in case of valid XML file. But I get this when I use it in my application.

System.Xml.XmlDocument xdoc = new System.Xml.XmlDocument();//XmlNodeList


This part works as it is valid XML file.

xdoc.Load("C:\\input.xml");

However, when I use this,

xdoc.Load(sInput);

I get error as I mentioned above.

What are my options as I am trying to read part of XML?

Thanks

sample XML

<Bundle Test=\"True\" BundleID=\"2\" DSID=\"1\"
                TypeID=\"7\" ExpirationDate=\"2010-12-14\"                 ">
    <Request RequestID=\"152\"><Sender Type=\"Contract\">
        <ContactID>1234</ContactID></Sender><Data Type=\"SDF\">
            <FirstName>Jon</FirstName><LastName>Doe</LastName>
            <Program>Default Program</Program>
            <ProgramPhone>523-523-5523</ProgramPhone>
            <SDate>Dec 14 2010</SDate>
            <EDate>Oct 12 2010</EDate>
        </Data><Receiver Type=\"Email\"><Email>M.QA@test.com</Email></Receiver>
        <Tracking Type=\"Standard\"><SourceSystemID>3</SourceSystemID>
        <PID>1234</PID><SID>6789</SID>
            </Request>


MS Info Post: Deliver accessible solutions with SharePoint

  

 

Office UA has published a white paper (http://technet.microsoft.com/en-us/library/cc668367(TechNet.10).aspx) that provides information and guidelines about the issues that organizations face when delivering Web solutions, including those built by using Microsoft Office SharePoint Server 2007 that are accessible to people with disabilities. This paper might help you address considerations that apply to accessibility issues as you design your Web applications.

how to automatically save new file into document library with a unique name or ID?

  
I've created a form using MS Word Document (2007) and lock it (protect it) so that users will be able to fill in the required fields.
then i've created a Content Type and uploaded the MS word form to be used as a template.

Then I've created a document library and enabled the content type and associate the above form for the library, so that when users click on New button the form will open.

everythings goes fine till here.

The problem is when users clicks on New and save the file back to the library, It doesn't save it with a unique name, instead it is over writting the existing one.
in other words, if employee 1 fill up the form and save it and later on employee 2 accessed the library and fill up a new form, he will overwrite what employee 1 has already saved!!

Is there a way to give every new created file a unique name? maybe (username+time)??


How to use form libraries in Bi-Lingual site in sharepoint 2007?

  

Hi All,

I have developed a bi-lingual (English/Arabic) portal using variations in sharepoint 2007. I am facing issues with infopath form libraries. Since infopath form library is not a publishing feature, it is created only in source site (English site). I am displaying the form library on a page as a web part and then publish the same page to make same web part available in Arabic site. But when I go to add new form in infopath form library from Arabic site, it goes to English locale. Please guide me on how to use common form/document libraries in multilinugal sites. I appreciate your suggestions.

Thanks,

Rahul Babar


assigning tasks to the user who is having least number of Task

  

Hi,

When a new Task is created, WORKFLOW  should automatically assign task to the  user who is having a least number of task in TASK List.

Using out of box feature ( Sharepoint Designer WF) how can  I do ?

thanks

Bhoja

 

 


Infopath task form altering data ?

  

Hi,

In a workflow, I create a task which use an Infopath Task Form.

The form has a rich text field I want to populate with some data.

In my CreateTask Invoke handler, I add (this is a valid xml fragment) :

mytaskProperties.ExtendedProperties["body"] = @"
<div xmlns="http://www.w3.org/1999/xhtml">
<p>Text</p>
<br/>
<p>Another text</p>
</div>
";

When the task is created, and when I read this node (from a code in IP, since I want to preserve the nodes), the result is altered to:

<p>Text</p>
<br>
<p>Another text</p>


which is no more a valid xml fragment (because of the non closed br tag).

 

I can workaround this behavior by adding HttpUtility.HtmlEncode and HttpUtility.HtmlDecode to the create task event and in the IP code. In this case, the xhtml fragment is preserved.

 

Is there any explanation of this behavior ? The workaround is working is not very elegant... and works only if I read the xml from code.

 

thanks in advance

steve


Paying back the community for its help by writing articles :
Have a Nice Day.Net Blog
 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge