OnTaskChange is not running Hi Simon,
Yes. They share the same token, and I checked they are at the same scope. But you are correct, this is the connection between the task and onchange handler. I will create a more simple workflow to determine if the problem is inside my WF, or an external factor. I will let you know the result. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Change display depending on user Hi,
Sorry for the delay in reply.
Current user filter is a good idea if you have webpart that are already responsive to the filter value.
If the information is dependent on the group, You might want to use "Audience Targeting".
Regards,
Sahil Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

unenabling save functionality on browser-enabled forms Hey Lou;
Did you have any luck with this I'm experiencing the exact same problem. Basically Im making a registration form and I dont want people to re-register with the same form to same library, trying to force them to go back to the library to launch a new form.
I can easily create a button to close the form without the save prompt, but still unable to remove the big red x! Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Provisioning Pages with custom contenttypes using SiteDefinitions I have been able to use this setting, works fine but according to what I do you should change the value to twice the name of the page:
<Module ....> <File Url="default.aspx" Type="GhostableInLibrary" >
<Property Name="Title" Value="Hello World" />
<Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx, ~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx" />
<Property Name="ContentType" Value="MyContentType" />
... </Module>
So, the only thing you are missing is that you typed in the name (and not URL) of the page layout as the second value of your property.
Hope this helps! Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

How to use a ReplicatorActivity to create multiple tasks in a State Machine? I have been trying to use a ReplicatorActivity to create multiple tasks in a State Machine, but I have been extremely unsuccessful at it. Creating a simple StateMachine Event which create a single task is quite simple: You create add your StateActivity -Add a StateInitialization -Add a EventDriven -Add a StateFinalization For the StateInitialization -Add a CreateTask and create a unique correlation token (i.e. taskToken) For the EventDriven -Add a OnTaskChanged and use our unique correlation token (i.e. taskToken) For the StateFinalization -Add a CompleteTask and use our unique correlation token (i.e. taskToken) I'm not going into the particular code you need or the properties you need to set, but this essentially works for creating a State which creates a single task. I want to take the scenario, but instead use a replicator to handle any number of tasks. Thus far, I can't figure it out ... my biggest problem is the designer ... When I start trying to use the Replicator, I get an error : Activity 'StateActivity1' validation failed: The first 'EventDrivenActivity' child should implement 'System.Workflow.Activities.IEventActivity', such as 'HandleExternalEventActivity' or 'DelayActivity'. Also, even if I correct the error above, I get the following error: Activity 'CreatedState' validation failed: Only the first child activity of 'EventDrivenActivity' 'StateActivity1' can implement the 'System.Workflow.Activities.IEventActivity' interface. Please help, I am at a loss as what to do. I am considering creating a Sequencial WF that does what I need and then using a StateMachine that Invokes the Sequencial WF ... but I don't know at this point if I could pass the List array to control the replication to the child WF and get the result back that I need,such as a class with values or something. Any insight and comments is greatly appreciated. Thanks Brian Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Access to SPS via IIS Mark, You shouldn't have to use SSL or Basic Auth. We have set up SharePoint with external authentication using NTLM numerous times without any problems. You can create the web application the same way you would create it for internal access. You just need to make sure that port 80 is allowed through your firewall as well as NTLM. SharePoint also needs to know the URL you are coming from. You either need to use the same URL internally and externally, or, you can extend your web app and use a different URL for the extended web app (i.e. http://intranet internally and http://intranet.domain.com externally, or whatever other URLs you might want to use). If you do chose to do Basic, you should be able to do that as well instead of NTLM...however the disadvantage is that everything is then sent in clear text, so the recommended approach when doing basic is to use an SSL certificate, but it isn't required. Hope that helps, Ben Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Search - Typical Behavior? No, I'm just using the typical tabbed search interface and doing a managed property search by content type. The result set starts at 8600 but as I page through a few of the results pages, the number keeps changing and settles in at about 360 items. That is a huge difference and I'm just curious how the search thinks it has 8600 results when it actually has 360. The main thing I'm curious about is if this happens to other people also, or if I have major problems with Search. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

MOSS2007 VHD Image: CRC failed ? I have the same problem, I downloaded the Part02.rar again but is not working either. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Content Database number of sites administration bug Hi,
I created an additional content database associated with a web application.
Then I created a site collection which appeared to use that content database.
Then I deleted that site collection, which appeared to put the Current Number of Sites in that database back to 0.
Then I tried to set the Site Level Warning and Maximum Number of sites for that content database to 1.
On clicking OK to save these settings, I get a message "The database capacity setting values must be greater then the number of existing sites in the database, and warning site count must be less than the maximum site count." (So the warning site count is the problem but ignore for now)
Click Content Databases in the bread crumb trail to get back to Manage Content Databases
Site Level Warning and Maximum Number of Sites are both set to 1
Click through to my content database again, and the values displayed are the old ones (not both 1)
Thanks
Martin Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Data View Web part, stored procedures, and sorting Thanks - the problem is trying to figure out what to look at on the postback.
I think I have come up with a solution.
In the code for the web part (using Sharepoint Designer), I found the tag:
Code Snippet <asp:SqlDataSource id="SqlDataSource1" runat="server" __designer:customcommand="true" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=my_connect_string" SelectCommand="usp_myStoredProc" SelectCommandType="StoredProcedure" />
I edited this and changed the closing "/>" to ">".
Then within the tag, I added:
<WebPartPages:DataFormParameter PropertyName="ParameterValues" ParameterKey="dvt_sortfield" DefaultValue="my_default_sort_field" Name="SortField"></WebPartPages:DataFormParameter> <WebPartPages:DataFormParameter PropertyName="ParameterValues" ParameterKey="dvt_sortdir" DefaultValue="ascending" Name="SortDirection"></WebPartPages:DataFormParameter>
This ends up passing parameters to my stored procedure of @SortField='field name' and @SortDirection='direction' where direction is 'ascending' or 'descending'.
When the web part posts back after clicking a heading column, the sort field is bound to "dvt_sortfield" and the direction is bound to "dvt_sortdir".
It took a lot of experimenting to get to that - I wish there was some sort of reference to how some of these tags/xsl can be used - I haven't found any.
Another strange thing - during several iterations of experimenting, I found that sometimes the data source tag was created as <asp qlDataSource> and other times it was created as <asp PSqlDataSource>. I don't know why or what the difference is... Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

stsadm -o addcontentdb not working as expected Thank you for your post. I actually found the problem (much to my embarassement). I stopped the sharepoint content db but, unfortunately, mistakenly backed up and restored the CONFIG db. Backing up and restoring the content db solved this problem. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Unable to add selected web part(s). [Web Part Name]: An error has occurred. Please Help Everything is in try catch blocks and inside the CreateChildControls method. If I go to site settings I can preview it fine, it just won't add it to the home page. It works fine on my development box, it is breaking on the test server . I'm not sure why, but quite a few of the standard web parts aren't working, so I was thinking it may be a configuration issue Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Infopath xsd and sharepoint workflow serialization problem Hi Brad,
I just encountered this issue when I moved a second task into an IfElseBranchActivity. The workflow has two tasks, each with their own edit task form and it was working correctly, but then I added an If/Else and moved the second task into the If branch and now I'm getting the SerializationException. So far I haven't been able to find the offending code. Have you learned anything about the error
Thanks
-Cynthia Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Business Process description Look into a copy of NetViz. It has great drill down ability and charting effects. Once completed it will publish as html and you can place it on a SharePoint site using front page or designer, storing the files in a doc library. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Solution Deployment - Will Not Start Thanks Darrin
Yep. It looks like all the timer jobs are delayed by an hour. Must be the DST bug in SharePoint 2007. It started this week so I guess the scheduler switched to standard time last sunday per the old DST and that killed all the immediate jobs..
I guess we can wait untill sunday to see if it clears up without having to apply the patch. Darin let us know if it works!!
What a waste of time..
Thanks guys!!!
DST bug in SharePoint 2007.
TimerJob Bug with immediate
Solution Deployment Bug Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Sharepoint integration with PerformancePoint CTP2 We are currently looking at the PerformancePoint software to see how it will integrate with MOSS 2007 here at my workplace. Right now, I am focusing on the Monitoring piece and I am having a little trouble. The documentation that I have read makes it sound like I should have some webpart in Sharepoint to view the various scorecards. However, I have been unable to find any of those webparts. I've found a dll that I believe may hold the webparts, but I am not sure how to install them. Any help you could give me on this matter would be greatly appreciated. Thanks. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Error when creating workflow I will try to explain again. In Sharepoint Designer you can design a new workflow for a sharepoint site. When i want to create one i get the error: cannot load the workflow. I start the tool: file -> new -> workflow I want to use this because i cannot add actions to a workflow when i add a workflow on the site. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

WSS 3.0 As Henry said the categories are like metadata; in the blogging world they're also known as tags. Think of them as the different topics which a post may be related to. When you click on a category it will filter the posts made on the blog and only show those postings which have that category selected in the posting.
If you wish for each user to have their own space to post then you would have to create a seperate blog site for each user, you could make them subsities of a main page which represents your blogging space.
Hope this helps clear things up a bit. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

using custom authentication provider Neeraj, Thanks for your reply.
I am using the same db which i created earlier using "aspnet_regsql" for use with AspNetSqlMembershipProvider. and users were added using ASP .NET WebSite Admin utility.
I also tried authentication from own custom table but it was also failed.
Another thing to mention that, in "Site Collection Administrators" i am able to resolve user names from aspnetdb using my custome authentication provider. But unable to do so, from custom table using same provider. (I don't know why, because i just change the datasource and the SELECT statements nothing else) Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

default.aspx pages in admin site giving compilation error I have compared the application master file on our sandbox env with what will eventually become our production box. they are the same. not sure what else it could be. Kelly Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Script error when opening document menu JungleAnt wrote:
Is it only two users that get this problem while the rest are fine If so they it has to be a problem at their end. I would start by working out what differences there is between these two users and every one else. Operating System, Office Version, IE version (does it work if Firefox on their machine), do they still get the same error logged into another machine If you rule out the machine environment as being the problem then I'd look at how they are set up as users. Permissions etc. Failing that then have a look at the server where MOSS is installed and see if you can see any errors in the logs. This might help narrow the search down. I suspect that it will be on their environment. A good place to start is installing updates to see if this resolves the issue. Also what happens if they click "yes" to run the script. Does it function normally or does it crash Post back if you find out what the problem was.
Hi,
Those two users has same environment as we have. Only difference is that they use MOSS from different country and different DNS area. IE is same as I have also Office version. We don't recommend to use Firefox because we are large company and we want all users to have same environment. Those users has Contributor permissions so I believe that they have enough permissions to use site and document libraries.
I haven't found any error messages in MOSS Front End so I believe that problem is in client side.
I don't know what happens if they click yes. I have to ask.
Best Regards
Toni Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Closing Browser Enabled Form from Code Behind When the client look a form in a web, in your server you dont have control of this.
You can respond only if the user execute an action in the webform.
You have a rules.. In 1 rule you can specify "close the form".
No need a programming method.
Sorry if my english is bad.
Regards
Alvarez Arigos Roberto Miguel
Systems Analyst Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

Creating a task with special permissions I tried this solution, it gets compiled, but I still can change the task with another user.
Note: I have a custom InfoPath-Form assigned to this TaskType, maybe that could be a problem.
//EDIT: Ok, it works, when I have a public variable and assigned this to SpecialPermissions in the designer, but not, if I create the SpecialPermissions-Object in the CreateTask-method and assign it to the property. Maybe the designer sets a specific variable... Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

StateMachine task Unless you delete them, the tasks created by your workflows will continue to exist after your workflow is complete. Are you deleteing the tasks in the StateFinalisation event for the appropriate state It's not clear from your description.
Have you added an 'End state' for your workflow You probably want a State at the end that is just an 'end state'. Add a State to the design, right click on it and select the option that is something like 'Set as completed state'. (You should see a little Red icon in the state, similar to the little green icon in the starting state of the workflow). Then set up the transition to this state to happen when your workflow is complete.
I'm not sure I understand how you've structured your workflow, though. Typically, I would have a state for each Task. I would use a State Initialisation event to create the task, and a State Finalisation event to delete or complete the task. I'd have an EventDriven event handler to capture the OnTaskChanged event, where I would have logic about whether to go to a new state, and if so, which state. The correlation token for all of this would have an owner of the state itself (as the task will never be used outside of this one state).
I would repeat this for each task in my workflow. At the end, I would have a 'Workflow completed' state, created as mentioned above. Tag: SharePoint - Development and Programming ObjectDataSource in a web part? SharePoint Products and Technologies

RayCan

Hello All,

My code below works perfectly when I put it in an ASP.NET application (default.aspx code behind for example), but as soon as I put it in a web part (compile it into an assembly and place it into GAC) I get this error:

First of all, both assemblies (web part and my BLL assembly which objectdatasource calls into) are installed into CAG.

Secondly, If I don¡¯t use objectdatasoure and directly call into the BLL, web part works fine , it just does not work with objectDatasource. I know that objectdatasourcer uses reflection to find the select method in the assembly (my BLL), so there should be a problem around the reflection when both assemblies are placed into the GAC

Re: SharePoint - Development and Programming ObjectDataSource in a web part?

RayCan

Sorry , in the web part I had already changed the this.form1.Controls.Add(grdViewPersons); to this.Controls.Add(grdViewPersons);. That's not a problem.

I guess probelm is the reflection that datasourceobject uses in order to bind itself to my BLL and its select method. It seems when both web part and BLL are installed in the CAG this reflection does not work. I have strongly named all the assemblies and added them to the safecontrol tag of my web.config.

The thing is, when I do NOT use the objectdatasource by directly calling into my BLL , web part works fine , but when I try to bind the GridView or FormView to the objectdatasource I get these errors . It says the type "my assembly" can not be found.Strange!!!!!

Re: SharePoint - Development and Programming ObjectDataSource in a web part?

acuze

I have a similar problem. I have a objectdatasource that has a DataObjectTypeName that points to a object thats within a GAC assembly. When i run the code to update the objectdatasource. I get the following error below. If i place this GAC assembly in my web bin directory, the code works. Any help is appreciated. Thanks in advance

Re: SharePoint - Development and Programming ObjectDataSource in a web part?

I was never able to find the problem. I just directly called into my BLL layer and get the datatable and bound it to my controls. One thing I have learnt from this forum is that questions of this kind would never get an answer, I regret to say.

Re: SharePoint - Development and Programming ObjectDataSource in a web part?

acuze

Actually i have a little workaround which won't help me though.

You can add a reference to the gac assembly in the webconfig file. But since i'm using a in-house framework i don't have the ability to modify the webconfig file to add my assembly. Does anyone know a way to reference my dll.

I currently have a objectdatasource that just updates a object. my page also adds and deletes these object but i don't use the objectdatasource to do this and it works fine which is of course at compile time. So i know my web app can has a reference to the dll in the gac. BUT for some reason the ObjectDataSource doesn't since its during run-time i'm assuming. Sounds like the objectdatasource is a little inefficient. Maybe i'm attacking the problem wrong. Let me know what you think..thanks

Re: SharePoint - Development and Programming ObjectDataSource in a web part?

acuze

I found a work around that might help you but not me. You can modify the web.config file to add a reference to the dll in the gac. I can't do this since i'm using a web.config thats from a in-house framework and i'm not allowed to update it.

I have a objectdatasource that its only job is to select and update a object is compiled in a dll in the gac. My page also add and deletes this object but it doesn't use the objectdatasource and it works fine. Does anyone know a way to make this work. I know 2 workarounds that i've found. One is the one i mentioned in the beginning of the message, the other is to have a copy of the gac dll in your web/ bin directory. Sounds inefficient though. Does anyone know what i'm talking about. Seems like the objectdatasource is inefficient when dealing w/ run-time objects.