Required to develop custom workflows and custom activities
Required to develop custom workflows and custom activities
It is required to develop custom webpart or any other custom sharepoint stuff.
http://www.mediablend.co.uk/blog/CategoryView,category,SharePoint2007WebParts.aspx
If you are using SharepointWorkflows with some custom activities you might face this problem.
In your custom activities, you might need dynamic content input from user while creating workflows.
Mail text would be the best example for the same.
In custom activity such as mail send with attachments, needs dynamic content.
For example,
Hi [%List:Username%]
.....
......
Thanks,
[%List:Sender%]
This kind of dynamic content will not be parse if you directly use the input parameter without Helper.ProcessStringField.
Without this processing custom activity will treat it as a string. and and in mail you will get Hi [%List:Username%] text. (instead of Hi Indrajeet..)
So to fix of the problem,
before using the input in mailsend function you should procees it by using Helper.ProcessStringField(stringFromUserInput, objActivity, this.__Context))
Ex. String retValue = Helper.ProcessStringField(stringFromUserInput, objActivity, this.__Context))
For themes :
/_Themes/Folder1/test.css
For Layouts :
/_Layouts/Folder2/Page1.aspx
Core.Js findings:
function AddSharedNamespaceMenuItems creates following context menu items.
View Item,
Edit Item,
Manage Permissions
You can override the functions in MasterPage to modify the context menu.
AddListMenuItems -- Hides Context Menu from list.
For more details mail me at indrajitk@gmail.com
Steps to hide Context menu for list items:
1. Just go to core.js file(C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033)
2. find AddListMenuItems function.
3. You will find following code in this function, if (typeof(Custom_AddListMenuItems) !="undefined") { if (Custom_AddListMenuItems(m, ctx)) return; }
4. You can override AddListMenuItems function by Implementing Custom_AddListMenuItems(m, ctx) function in any global place(I did it in master page.). Do not put any code in this function except return false True;
5. No context menu will be displayed for list items.
Put the code in Global.asax under c:\Inetpub\wwwroot\wss\VirtualDirectories\80
void Application_Error(object sender, EventArgs e) { //To catch the error caused by masssive file size upload more than 4MB. HttpException httpEx = Server.GetLastError() as HttpException; if(httpEx.ErrorCode == -2147467259) { HttpContext.Current.Server.ClearError (); HttpContext.Current.Server.Transfer("ErrorMessage.aspx"); } } |
In Web.Config file, modify the following string.
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" /> |
<!--<add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->
Change into:
<add name="Session" type="System.Web.SessionState.SessionStateModule"/> |
http://www.youtube.com/watch?v=u20vVbhpM50
-- Srikumar Rao from London business school at google
Very good speech.
You can find any dll in gac at local path as given below:
C:\WINDOWS\assembly\GAC_MSIL\<Name of dll>\1.0.0.0__0fcde578cc202cae\<Name of dll>.dll
Note: 1.0.0.0__0fcde578cc202cae is the version name and it differs assembly to assembly.
http://www.u2u.info/Blogs/karine/Lists/Posts/Post.aspx?ID=28
Session.SessionID is unique only after there is some value stored in session.
Otherwise it always give different id at every postback.
// Disable F5 button to disable refresh.
function checkKeyCode(evt)
{
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if(event.keyCode==116)
{
evt.keyCode=0;
return false
}
}
document.onkeydown=checkKeyCode;
//Disable Right click
function Disable()
{
if (event.button == 2)
{
return false;
}
}
document.onmousedown=Disable;
Note: We cant control the refresh button of browser in general ways.
Heather Solomon - http://www.heathersolomon.com/blog/
How to: Customize the Display of Quick Launch -- http://msdn.microsoft.com/en-us/library/ms466994.aspx
Windows SharePoint Services Default Master Pages -- http://msdn.microsoft.com/en-us/library/ms467402.aspx