cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Info Engine Search based on Global atributes

srammohan-2
4-Participant

Info Engine Search based on Global atributes

Dear Users,

I am trying to write a EPMSuggestBox which will shown all EPMDocument when the Global Atribute DOCUMENT_TYPE= 'SAAF' . I've tried the below search using where clause , but still the text box shows other EPM Documents where DOCUMENT_TYPE<> 'SAAF'  . 

 

Can you please share your ideas.

 

Regards

Sriram Rammohan

 

 

protected void setTaskParams(Task paramTask) throws WTException,
			IOException {

		WTUser localWTUser = (WTUser) SessionHelper.getPrincipal();
		WTProperties localWTProperties = WTProperties.getLocalProperties();
		String str = localWTProperties.getProperty("wt.federation.ie.VMName");
		paramTask.setUsername(localWTUser.getAuthenticationName());
		paramTask.addParam("object_type", "wt.epm.EPMDocument|com.xxx.DefaultEPMDocument");
		paramTask.addParam("search_type", "wt.epm.EPMDocument|com.xxx.DefaultEPMDocument");
		paramTask.addParam("where", "(name='" + this.search_term.trim()
				+ "')&(checkoutInfo.state!='wrk')&(latestIteration='1')");
		
		/*paramTask.addParam("where", "(DOCUMENT_TYPE='SAAF')");
		paramTask.addParam("where", "('IBA|DOCUMENT_TYPE'='SAAF')");
		paramTask.addParam("where", "IBA|DOCUMENT_TYPE=SAAF");
		paramTask.addParam("where", "IBA|DOCUMENT_TYPE='SAAF'");
		*/

		paramTask.addParam("where", "(DOCUMENT_TYPE='SAAF')");
		paramTask.addParam("where", "(IBA|DOCUMENT_TYPE='SAAF')");
		
		paramTask.addParam("dca_attribute", "name");
		paramTask.addParam("dca_attribute", "number");
		paramTask.addParam("dca_attribute", "type");

		if (this.excludeSubTypes != null)
		paramTask.addParam("excludeSubTypes", this.excludeSubTypes);
		paramTask.addParam("group_out", "output");
		paramTask.addProcessor(str);
		paramTask.addParam("supporting-adapter", str);
		
	}


 

0 REPLIES 0
Announcements

Top Tags