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


Top 5 Contributors of the Month
Ashutosh Jha
ASPEvil
Jean Paul
satyapriyanayak
SP
Post New Web Links

How to find child (model item) activities of a flow chart model item?

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :Windows Application
 
Hello,In an earlier post, I asked how to find the children of a given model item.  If the model item I'm working with is a FlowChart, then the strategies given in that earlier post don't work.  How can I, given a model item that contains a FlowChart activity, find the direct children of the model item?  I'm not particularly interested in the order in which the child will execute, I just want a list of all the immediate children. (I'm not interested in child activities nested within an activity that is a direct child of the FlowChart activitiy).Also, I would like to get the model item representing the child activities, rather than the activities directly themselves.  I think I could do something like this: Flowchart flowChart = _activeflowChartDesigner.ModelItem.GetCurrentValue() as Flowchart;            if (flowChart != null)            {                foreach (FlowNode node in flowChart.Nodes)                {                    FlowStep flowStep = node as FlowStep;    


View Complete Post


More Related Resource Links

Model item passed in Directory

  
Hello everyone ...i am a newbee in Asp.net Mvc and even in AspWhile Executing My Contact Management Asp.Net MVC application ,i am getting following error :The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[ContactManagementSystem.Models.EmployeeMaster]', but this dictionary requires a model item of type 'ContactManagementSystem.Models.ViewData.IndexModel'.from index.aspx View My index.aspx Code islike<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ContactManagementSystem.Models.ViewData.IndexModel>" %> <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ContactManagementSystem.Models.EmployeeMaster>>" %> <%@ Import Namespace="Helpers" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> <title>Index</title> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <ul id="leftColumn"> <% foreach (var item in Model.Group_Master   ) { %>     <li <%= Html.Selected(item.C

Can't add item using client object model of sharepoint 2010 with read only permission to user.

  

Hi

I have already developed Silverlight application in SharePoint 2010 using client object model.

But I have one scenario that user can comment on the item, so there is a update operation come in picture for user, but user have read only permission to site.

So please help me resolved this problem.

We can use Run with elevated privileges method in SP object model. I think Silverlight client object model don’t support this method.

Is there any alternative workaround to solve this problem?

Tha


how to get the status of an approval workflow of item using sharepoint object model ?

  

Hi,

There is a list on which an approval workflow is associated,workflow starts when an item is added.The list is having anonymous access so anyone can enter an item,but the item needs to be approved by an approver.Hence,each item will have a status(e.g. approved,rejected etc.).

Now,I am creating a visual webpart.I want to display the list items in a grid.But I need to display only those items which are approved.I am using sharepoint object model,How can I filter the items based on the approval status.

Thanks


How to keep the hover for Parent menu and set the selected menu item css for child menu item?

  

Hi,

I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.

I have the following questions:

  1. Is there a way to keep the parent menu item hovered while hovering over the respective child menu items?
  2. Is there a way to keep the child menu item selected? I am able to set the css for the parent menu, however I was wondering if the same is possible with the child items.

Please help! Smile

Thanks,

Moneka Smile



MDX Query - Find only new item that purchased in the last day or during the last week

  
Hi to all I whould like to write a MDX query to get new items that purchased in the last day and not purchased in the last 7 days or 30 days  , Also to find new items that purchased in the last 7 days and not purchased in the last 30 days , this is what i done until now CREATE   SET CURRENTCUBE.[FindNewWordIn_1_Day]   AS Filter   (nonempty([Keyword].[Keyword Name].members, ([Measures].[Count keyword],   NONEMPTY (Tail( Filter( [Time].[Date].MEMBERS ,   Not IsEmpty ([Measures].[Count keyword]) ), 1) ))) ,([Measures].[Count keyword], [Time].[Date].&[2010-09-10] )=0);   The value of [Time].[Date].&[2010-09-10] should be change to period that i want to check , ( 1 day, 7 day , 30 day)   the other one is lateset day with value NONEMPTY (Tail( Filter( [Time].[Date].MEMBERS , Not IsEmpty ([Measures].[Count keyword]) ), 1) with for you help ,   ofer  

where do find complete guide for sharepoint 2010 server object model?

  
where do find complete guide for sharepoint 2010 server object model?

How to find newly added item in the share point site?

  
How to find the recently added item in the share point page If the any user added the items in the custom list, library, list,Announcement, Picture library,etc......... i need to show all item that added last 2 days. Is that any object model available to find all item in the share point site???Instead of searching every list.

VWD 2010 and Linq to Sql: can't find a query model for...

  

Hello!

I have added a linq to sql layer in my MVC 2 application.

This is the code I am using:


using (ProductPortalDataContext ctx = new ProductPortalDataContext())
            {
                var Title = from aps in ProductPortal.Models.AppSettingsView
                            where aps.LanguageID = Lang
                            select aps.WebSiteTitle;
            }


It says to be unable to find a quey model for AppSettings view and then says "where not found".

Tried googling, nothing came up. Tried searching here(first two pages) and nothing that seemed relevant popped up.

But the best of all, created a new ASP.NET applicatio, imported the model using Linq to SQL and it compiled!

No idea what I am doing wrong... hints?

(some time later...)

Ok, I tried adding a button and a label to the asp.net application j

Nested ListView: Parent listview item auto selection on child ListViewitem select

  
 

how can i auto select paraten listview item on selecting child listview item?

<
ListView ItemContainerStyle="{StaticResource myStyle}" Name="lv_list" Margin="5" HorizontalContentAlignment="Stretch">

SSIS Object model - dynamically identifying the source and destination tables of the data flow/ tran

  

Hello All,

I would like to identifying the source & destination tables of the data flow or the transformation task.

I need to create a custom component which i can put into existing packages which can do some validation.

Please suggest ways i can accomplish this.

 

thanks

 


Add Related/Child List Item? - How to automatically set the relationship?

  

 

Hi,

I've got a parent/child relationship between two lists.  I have the parent form set to automatically include child records.

The problem I'm having is that when I "Add new item," it is not associating the new record with the parent record automatically.

How do I have it automatically set the key field?

Thanks in advance for any suggestions,

:|Ben

 

 


Flow Chart - Multiple FlowSteps from an activity to other activities

  

Requirement:
A custom activity called "Number" which is used to set value of a variable. 
A custom activity called "Add" which is used to add two numbers.

Drag and drop "Number" activity to the flowchart.Name the activity to Number1.Set the value to 5.
Drag and drop another "Number" activity to the flowchart.Name the activity to Number2.Set the value to 10.

Make the connections in this way

Number1-------------------->
                                         Add
Number2-------------------->


"Add" activity should automatically check its inputs(Number1 = 5 ,Number2 = 10) from the arrows and do the computation to give result 15.

How it can be achieved using FlowChart elements by writing custom activities for the arrow,Number,Add?

Please let me know if the question is not clear.


Binding WPF Controls to an Entity Data Model

  
In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Model View Controller (MVC) for ASP.NET

  
Model View Controller (MVC) architectures, immediately wonder how the MVC pattern can be applied in an ASP.NET world. This article will demonstrate how the MVC pattern can be applied to an ASP.NET web application and still maintain the basic Microsoft supplied architecture.
Categories: 
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