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

How can you link a Task List Custom ContentType to an InfoPath Form?

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

Hi,

I am currently reviewing a InfoPath and Workflow solution by a third-party.  

When I click on a a Task in the Workflow Task list I see an InfoPath Form with the details instead of the regular form layout. The Tasks are generated from a workflow.

Can someone tell me how you can hook up a InfoPath Form to a Custom Content Type in this "Workflow Tasks" List?

Thanks.

John.  

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


How to use VB to disable the anchor link tag

  

Hello, I noticed that the "disabled" property that appears in Intellisense for a link control doesn't work (when set to either True or False)..how can I programmatically accomplish the contextual disabling of a hyperlink via Visual Basic?  Thanks.


Custom validator not firing

  

I have the follwoing custom validator and neither the client script nor the server script get hit when I set breakpoints:

function cvComment_ClientValidate(source, args) {debugger
            var cb = document.getElementById('<%=cbDelist.ClientID %>');  
            
            if (cb.checked && args.value == "")
                args.IsValid = false;
            else
                args.IsValid = true;
        }

<asp:CheckBox runat="server" ID="cbDelist" AutoPostBack="true"
        Text="De-List" Value="0"
        oncheckedchanged="cbDelist_CheckedChanged" />

<asp:TextBox ID="tbComment" runat="server" TextMode="MultiLine" Rows="4" Columns="50" Text="" />
 <asp:CustomValidator runat="server" ID="cvComment"
          ControlToValidate="tbComment"
          Display="Dynamic" ErrorMessage="You must state the reason for de-listing this deliverable in the comments section."
          ValidationGroup="vgModDel" onservervalidate="cvComment_ServerValidate" ClientValidationFunction="cvComment_ClientValidate">*</asp:CustomValidator>

<asp:ValidationSummary
                    runat="server"
                    ID="vsModDel"
                    ValidationGroup="vgModDel"
                    EnableClientScript="true"
                    DisplayMode="List"
                    ShowMessageBox="true"
                    ShowSummary="false" />


protected void cvComment_ServerValidate(object source, ServerValidateEventArgs args)
    {
        if (cbDelist.Checked && tbComment.Text.Trim() == string.Empty)
            args.IsValid = false;
        else
            args.IsValid = true;
    }

What am I doing wrong? I can't see it!


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....


Dropdown list working in IE, but not firefox...

  

Hello-

I have 2 drop down lists in a gridview. OnselectedIndexChanged for either of the dropdownlists, I would like to remove the value option from that dropdownlist, and add it into the other dropdownlist.

My code is working perfectly in internet explorer, but when I try to run in Firefox, it gives me the following error:"

"ddl2.options is undefined"


default.aspx

<ItemTemplate>
                <asp:DropDownList ID="ddl1" runat="server" CssClass="box2" Style="width:55px;" AutoPostBack="False">
                </asp:DropDownList>
</ItemTemplate>



default.aspx.vb

ddl1.Attributes.Add("OnChange", "dd1_Changed(this," & ddl2.UniqueID & "," & e.Row.RowIndex + 1 & ");")




<head> i default.aspx

function dd1_Changed(sdr, ddl2ID, row) {

        var GridView = document.getElementById('<%= gvSchedule.ClientID %>');
        // Get the EditIndex from a hidden variable
        var ddl2ToChange = GridView.rows[row].cells[6].firstChild;

        var text = sdr.options[sdr.selectedIndex].text;
        var value = sdr.value;
        var opt = new Option(text, value);
        ddl2ToChange.options.add(opt);        <---------- ### THIS IS WHERE I GET THE ERROR

        sdr.options[sdr.selectedIndex] = null;
        sdr.options.selectedIndex = 0;

        sortList(ddl2)
    }



Any help is appreciated. Thanks



calling Javascript on Selected index changed f drop down list

  

helo

i want to call some javascript code from my aspx page on the selected index changed event of drop down list

<

asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Width="163px" OnSelectedIndexChanged=how to call javascript from here>

<asp:ListItem>item1f</asp:ListItem>

<asp:ListItem>item2</asp:ListItem>

<asp:ListItem>item3</asp:ListItem>

<asp:ListItem>item3</asp:ListItem>

<asp:ListItem>item4</asp:ListItem>

</asp:DropDownList>

 

in java script i just want to enable my button control

 

how to achieve this

thank

sam


Overriding filter section in List.aspx

  

Having the List.aspx page, suppose I want to do the following:

  1. Eliminate combo boxes on top of the grid (I want to use my own filters)
  2. Put my own combo boxes there replacing the default ones (I want to use customized pages for some of my entities)
  3. Have each combo box associated to its own datasource (So I can ontrol the way in which they are populated)
  4. Make my own filtering hierarchy by chaining combo boxes according to my own needs. The first one will be the entry point of the second one; the second one will be the entry point of the third one and so on. I would be using conventional ASP.Net linkage among the combo boxes instead of having Dynamic Data doing this for me

Any idea on how can this be done? Thank you


Filter List.aspx

  

Hi,

I have this table structure:

Table:  Incentive
=================
IncentiveId
SponsorId
SponsorType
Event

 Table:  IncentiveAwardees
=================
IncentiveAwardeesId
IncentiveId
PersonId

 

I created a custom page for Incentive - Edit and added a link "View Incentive Awardees" which will go to the List page of IncentiveAwardees table.  However, I only want the list to show those under the IncentiveId from the previous page.  Currently, the IncentiveAwardees List page displays the awardeees of all incentives.  Can anyone tell me how to filter it based on the Primary Key of the previous page?

I appreciate your input!

Thanks,

Tinac99


How to cast return custom values from stored procedure??

  

Hello

Net.3.5 DD from sql

How to cast return values from stored procedure??

I need to have 2 calculated columns on one of my model partial classes,

On custom prop the values not passing .. cause its not fields.

I have tried to create a new table class on the model and having 2 selects on the usp but still having a casting prob..

So how can I get my "custom calculated column" values from usp  ??


        BizRunDataContext db = new BizRunDataContext();
        IMultipleResults results = db.USP_Orders_GET_TEST1(DateTime.Now);                
        // with out the custom prop
        e.Result = results.GetResult<Order>().ToList<Order>();

-->> tried 

        List<Order> order = results.GetResult<Order>().ToList();
        //class with thet fields->> 
        List<Pricing> obj = results.GetResult<Pricing>().ToList(); //Specified cast is not valid.
        // as if
        order[0].Pricing = obj[0];




 
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