.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

How to get a list of unkown number of Object from a custom Activity Designer

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :JQuery


I'm  trying to get a list of Object of unknown size. I use a stackpanel in my designer to have as many ExpressionTextBox as needed. The number is only known at design time through an ExpressiontTextBox and a validate button. Once the button is clicked, I generate the ExpressionTextBoxes as follow :

    Private Sub btnValidate_Click(ByVal sender As System.Object,
                                  ByVal e As System.Windows.RoutedEventArgs)
      stack.Children.RemoveRange(0, stack.Children.Count)
      For i As Integer = 0 To (

View Complete Post

More Related Resource Links

SharePoint Designer: insert custom list not working anymore



Suddenly sharepoint designer decided today that it doesn't want to insert a custom list form anymore...
To be more specific, it doesn't work anymore in a site that uses the Microsoft budgeting and tracking template. In a website that uses an out of the box template, it still works.

It did work before, because I did it in other websites using the same template (it's broken there as well now).

Why oh why does SharePoint refuse to do this now?
I searched google and here on the forums, but all I could find was some issues after installing SP1, but we did that already long time ago and it was still working after that. I checked with our infrastructure guys and they didn't install new updates they say.

I also tried the solutions listed here: http://blogs.msdn.com/spdsupport/archive/2008/07/03/how-to-fix-custom-list-forms-will-not-insert-or-show-up-on-the-design-surface-of-sharepoint-designer.aspx
But they don't fix the problem.

So my problem is, I can go to Insert > SharePoint Controls > Custom List Form
I pick my list, content type and form type, I hit OK and... nothing happens.

Problem with SharePoint Designer 2007 and Custom List Forms


I created several forms (Create/Edit/View) for a SharePoint list, using Custom List Forms.  I'm using Content Types in the list to ensure that each item only has the necessary fields.  When I created the ASPX forms, and inserted the Custom List Forms, I selected the correct Content Type, and I got the right fields inserted in the form.

Now, for some reason I can't identify, every time I create a new form, and insert a Custom List Form, SPD is bringing ALL fields from the list, instead of just bringing the fields included in the selected Content Type.

I have tried many different things to solve the problem, including creating new lists/content types/forms, etc. but SPD is doing the same thing all the time.

Can somebody tell me what may have gone wrong in SPD or MOSS?


How to display breakpoint and debug visual cues with custom activity designer based on WorkflowViewE

Hi,   I am developing custom activity designers based on "WorkflowViewElement" instead of "ActivityDesigner" in my xaml. It allows me to have greater control of the look and feel of the designer. However I noticed that with this approach, the breakpoint visual cue (Dark red solid circle that appears on the left side of the designer when you set breakpoint on the designer) is not visible. It works fine when you write your designed based on "ActivityDesigner". The same behavior happens to the debug visual cue when you debugging the WF. It appears as bright yellow rectangle surrounding the activity designer if you are based on "ActivityDesigner", but it is not available when your designer is based on"WorkflowViewElement". Any help is highly appreciated. Li

create new custom list form in sharepoint designer and edit in browser

hi, i have created a new list using sharepoint designer 2007. now i inserted a custom list form to modify some field and add new ones. when i finished i will tight my new custom list to the custom form. what i want to know is. i see the status field in my new form. and i only want the status field to appear in the edit form for the one that has the permission to edit the status. then i tought of open the list in my browser and go to the list settings. but what i notice is i dont see my fields i have modified in sharepiont designer in the columns section i only see the ones from the existing list. my question is how can i hide the status field in the new item form that it only show in the edit form. and how do i get my new form in the column section so the end user can add more fields if they want without using sharepointdesigner thnx

Custom designer for a Flowchart activity?

Can anyone point me in the right direction for developing a custom designer for a Flowchart activity?  In actual fact, the Flowchart control we are using is a custom activity - it's not the regular .NET Flowchart activity, but our own creation with a collection for FlowNodes/etc.  We'd like to put a UI around it now as well ... mimicking the .NET Fllowchart designer.  Is that really possible, or extremely difficult?  It seems there's no real API or anything available for constructing the node connectors, arrows, etc.

SharePoint Designer Workflow to email multiple recipients listed in a custom list


Hi all,

I created a workflow in designer attached to a form library. I also have a custom list "Admins" containing names of persons that serves a different purpose but would also like to be used as recipients for the workflow email everytime a new item in the form library is created.

I have been searching the net and tried out few work arounds but so far able to send to only one person in the "Admins" list. The list has a column "Admin Name" which is of type "Person or Group".

Thanks in advance!

Problem with creating Custom List in SharePoint Designer


Hello all,

I have used SharePoint designer 2007 to create a custom list for my SharePoint 2003 portal.  The list is quite simple, without any extensive programming. 

First I created a 'shell' for my list inside of SharePoint, where I name my fields and select their input types (Choice, Date, Currency, etc).

I then create a new .aspx file, insert a Custom SharePoint List into the new file, and use the above mentioned 'shell' to insert my content.

From this point, I rearrange the design, insert a few basic JavasScript elements - for image rollovers - and save.

The page displays perfectly in my live SharePoint environment.  However, when I enter data into this form, and submit, it doesn't save the data correctly.  For instance, there's a Yes/No option near the end of the form, defaulted to No.  If I click that checkbox - to set it to Yes - and submit the form, the resulting record does not show that I had clicked the checkbox.  In fact, it shows the whole form as being blank, as if I had entered nothing at all.

If this makes sense, how would I go about fixing this?

SharePoint custom list form using MOSS designer



I have a requirement to create "Service Request" form for 3 types of users namely "End Users", "Reviewer" and "Manager".
End users will submit the request --> Reviewer will update the effort in man day --> Manager will approve the SR form. Assuming there are 10 different fields for each and the workflow and email is in place for each level.

I'm planning to use SharePoint 2007 custom list form.

1) What is the best approach to create Service Request form?
2) Can I use SharePoint Designer alone to achieve this OR Do I need Visual studio?
3) Is it one custom list form containing all the 30 elements (10 fields each) OR 3 different lists?

Please advice. Thanks.

Due to some reasons, we don't want to take InfoPath form; Instead Custom List form.


Populate fields from custom list..... Using Sharepoint Designer only



I have a custom list with all Active Directory user data in it......

(AD name / Email / Address / tel .... etc)


I then have a form that user can select their AD name, i want to populate the fields "Phone" + "Email"   etc....

from the custom list....


How do i do it ? using sharepoint designer only ??


Thanks Rob

Sharepoint Designer Custom List Form Error




In sharepoint designer i am editing NEWFORM.aspx for a custom list and adding a custom list form to the page. When i try add item i get a correlation error : "hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3) level for this list."


Any ideas? Thanks

the joy of writing a custom workflow activity for SharePoint Designer...


So, I need an activity that will replace some old text into new text in a given string.
Not present OOTB in SharePoint Designer, so - oh boy! oh boy! - we can develop it ourselves using Visual Studio!

Ok great, I did some reading about it on SP2007 in the past, but never needed it, so never actually tried it.
Now I'm on SP2010, so I googled again to find guides on how to write my very first custom workflow activity to use in SharePoint Designer 2010.
Nothing to be found.... The few posts about 2010 were only stating that it works still the same as in SP2007, and to look for guides on 2007.

Ok, so I googled some guides on how to do this in SP2007. I found one from MSDN, perfect to start with you'd say: http://msdn.microsoft.com/en-us/library/cc627284.aspx 
But really, it doesn't work the same... When I create an Activity Library project in VS2010, I don't have a class, like in the guide. All I have is a xaml file, no cs at all, and I have absolutely no clue what I should add in order to get the same class as in the guide. Adding a regular class is not it, since in the guide they're using a partial class. So I'm blocked 5secs after I started reading the guide... just great.

I'm so fed up with the lack of information on development for SharePoint. I hit

How to drop Activities in Custom Activity Designer having custom style template?



I have designed a custom activity designer developed using Activity Designer XAML and using that in a rehosted Workflow environment on a WPF. I have changed the outer design of the Activity designer by setting the style template to my required style. If I do this, I am unable to add the activities to the custom activity having my custom activity designer.

Am I missing anything.? Please help me in this regard.

Thanks in advance,



Is there a plan to support a custom activity type as a root document in xaml on VS workflow designer



Referring to the post below. It seems that the current VS workflow designer only support "Activity" type as a root document. Is there a plan to support a custom activity type as a root document in xaml on next release of WF?




Custom Workflow Activity Designer Serialization Issues


I have an activity which has collection properties as below


    public sealed class TaskActivity : NativeActivity
        public TaskActivity()
            TaskParameters = new ObservableCollection<PMTaskParameter>();
            TaskExceptions = new ObservableCollection<Guid>();

Argument validation in custom activity designer


I am having problems getting validation to work properly in the designer for my custom activity. The simplest sample to reproduce the behavior is as follows:

I have a custom WF4 activity with a dynamic collection of arguments stored in a dictionary:

public class DictionaryActivity : NativeActivity
  public Dictionary<string, InArgument> Arguments { get; set; }
  public InArgument<string> StringArg { get; set; }

  public DictionaryActivity()
    Arguments = new Dictionary<string, InArgument>();

  protected override void Execute(NativeActivityContext context)
  { }

In the designer I dinamically crea

Custom Activity designer in VS



My custom Activity has designer that relies on external service.

In re-hosted environment I register the service right after WorkflowDesigner is created :

 _workflowDesigner.Context.Services.Publish<IMyService> ( _service);

The question is how do I tell VS to publish my service? (service class name, constructor arguments...)


Smart Tags: Simplify UI Development with Custom Designer Actions in Visual Studio


Windows Forms 2.0 components expose smart tags by utilizing Designer Actions. By taking advantage of this feature, you can add smart tags to your own custom components to make setting their properties and other actions much easier and developer-friendly.

Michael Weinhardt

MSDN Magazine July 2005

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