Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Apply Custom Filtering on Project Center Web Part in Project Server 2013

$
0
0

Our requirement is to add Project Center web part on the Project Site and apply custom filtering to it on basis of Project level custom field associated to a look up multi-level look table  on the grid load . We did find a link that explains filtering (Link) on Project center web part but this solution works only on Project 2010 . 

In Project Server 2013 we do not find  HandleFilter function . 

projectCenterComponent.get_GridSatellite().HandleFilter(filterxml)

It has a Filter function but it is for internal use. Can any explain how can we apply custom filtering on Project Center Web part in Project Server 2013.

Filtering function explained on the link for Project Server 2010:

function Cffilter(eventArgs) {
            var a = {}            
            var sites = window.location.href;                   
            var len = n.lastIndexOf("/");
            var myString = n.substring(0, len+1);
            var stname = n.replace(myString, "");

            a.ClientFilterXml = '<Filter><FieldComparison><Field>7806971e-9291-49ea-ba75-dd726faffba6</Field><Operator>Equals</Operator><Operand>' + stname + '</Operand></FieldComparison></Filter>'
            a.ServerFilterXml='<Filter xmlns:pwa=\"http://microsoft.com/ProjectServer/FilterSchema.xsd\"><Criteria><LogicalOperator logicalOperationType=\"Nop\"><FieldOperator fieldOperationType=\"Equal\"><CustomField fieldName=\"27955ccb-860b-45ec-8722-dfb02e6a2dca\" customFieldType=\"CodeValue\" ISMULTIVALUE=\"0\"/><Operand LTUID=\"89417fcc-768c-47aa-aa4b-d71bd979825e\">8f8ecc68-ed8a-4bfa-89d8-424db1353a64</Operand></FieldOperator></LogicalOperator></Criteria></Filter>'
            projectCenterComponent.get_GridSatellite().HandleFilter(a)
}


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>