Thứ Năm, 8 tháng 9, 2016

Adds an in-basket dynamic filter

This customization scenario adds an in-basket dynamic filter. The in-basket
widget loads when the dynamic filter is received so that the results that are
shown in the in-basket widget already are filtered to the case worker.
Complete the following steps:
1. From Case Manager Builder, open Page Designer on the Work page.
2. Drag the Script Adapter widget from the widget palette area to the main layout
area.
3. Wire the Script Adapter widget to the Page Container widget under the
Incoming Events section by setting the following values:
– Source widget: Page Container
– Outgoing event: Page Activated
– Incoming event: Receive event payload
Click Add Wireto add this wiring setting.
4. Wire the Script Adapter widget to the Page Container widget under the
Outgoing Events section by setting the following values:
– Outgoing Event: Send event payload
– Target widget: In-baskets
– Incoming event: Apply filter
Click Add Wireto add this wiring setting.
5. Validate that the In-basket widget is wired appropriately.
6. Click the Edit Settings icon for the Script Adapter widget and paste the script
that is shown in Example 11-8 on page 438 into the JavaScript text area. The
following script grabs the current user name and constructs variables to pass
to the icm.model.InbasketDynamicFilter.fromJSON(data);function to
perform the dynamic filter.
Note:The script that is shown in Example 11-8 on page 438 is specific to
the Customer Complaints solution. Make sure to create a case property for
the Customer Complaints solution that is called AssignedToUser. The
in-basket dynamic filter searches on this case property and matches it to
the user name, which is case-sensitive.
======code=========

var myUser = ecm.model.desktop.userDisplayName;
var data = {
"queueName":"CC_Specialist",
"inbasketName":"Specialist",
"hideFilterUI":false,
"queryFilter":"(CC_AssignedToUser = :A)",
"queryFields":[
{
"name":"CC_AssignedToUser",
"type":"xs:string",
"value":"*"
}
],
"hideLockedByOther":"true"
};
data.queryFields[0].value = myUser;
var model = icm.model.InbasketDynamicFilter.fromJSON(data);
console.log(model);
var modelArray = [];
modelArray.push(model);
return {"dynamicFilters":modelArray};

 

1 nhận xét:

  1. Hello, Can anyone help me on below issue. Why is it occurring.

    Message [FNRPE2131090499E]The query syntax is invalid. The unparsed remainder of the query is: F_CaseFolder.KNK_Role=devlper)

    Trả lờiXóa