Hi Experts,
Recently we are facing very strange issue related to search component which extend the search60 component.
We have some functionality from which we are calling the customized search component by passing dql query in Argument List parameter, but somehow the query truncated in between.
for eg. on click of a button we are calling search component by using following code inside overridden onReturn function as given below
@Override
public void onReturn(Form form, Map map)
{
Label lbl = (Label)form.getControl("message", Label.class);
String msg = lbl.getLabel();
if (msg != null && msg.contains("has been generated"))
{
String dql = "select * from ts_document where document_type_id = 9 and parent_id = \'"+strObjectId+"\' order by object_name";
ArgumentList args = new ArgumentList();
args.add("queryType", "dql");
args.add("query", dql);
args.add("treatyId", strObjectId);
getPageContext().getSession().setAttribute("selectedTreatyId",strObjectId);
SessionState.setAttribute("crsearch", "yes");
setComponentReturnJump("searchactions", args, getContext());
}
else
{
form.setFormReturn();
}
}
So in the above code the query build properly something like
select * from ts_document where document_type_id = 9 and parent_id = '08000002803e9162' order by object_name
but when we check into the search component it get the query like
select * from ts_document where document_type_id = 9 and parent_id =
We are facing this issue on webtop 6.7 SP2, 6.8 & 6.8.1.
Thank you in advance.
Regards
Rushikesh D