Hi Experts,
I have tried to add custom qulaifier to the my Sharepoint Solution. i have followed certain steps as below . but the qualifier isn't working .Could any one tell how to debug the code. i have tried to attach process also but that didn't work .Control never come to break points. in th code.
<MenuDefinitions>
<Qualifier name="testQualifier" classname="ConnectorPart2.Menus.testQualifier,Version=1.0.0.0, Culture=neutral, PublicKeyToken=c899190b4e61a355"/>
</Qualifiers>
<ContextMenus>
<MenuItem labelNlsId= "ContextMenu_testnumber" id="_docMenuItemAssignDocNumber" actionName="test" qualifiers="AssignDocumentQualifier=INFORMAL"/>
:
:
........</MenuDefinitions>
Qualifierclasss:
namespace ConnectorPart2.Menus
{
class testQualifier : IMenuQualifier
{
protected ISdfBusinessServices _sdfBusinessServices;
public void Initialise(EMC.Documentum.SharePoint.ISdfBusinessServices businessServices)
{
this._sdfBusinessServices = businessServices;
throw new NotImplementedException("Problem With Initialistion");
}
public bool ShowItem(IDictionary<string, string> objectProperty, string argumentString, string ActionName)
{
string A = objectProperty["a_status"].ToString();
if (!string.IsNullOrEmpty(A) && string.Compare(A, argumentString,true) == 0)
{
return string.Compare(A,argumentString,true) == 0;
}
return false;
throw new NotImplementedException("Problem with ShowItem Logic");
}
}
}