You can expose a prebuilt user interface that allows business
users to define the criteria for displaying recommendations from external
systems. By default, this user interface does not display in the Management
Center Marketing tool because it is commented out in the code, but
you can remove the comments. You might also need to customize the
user interface to meet your business requirements.
Before you begin
Decide whether you need to customize the prebuilt Display
Recommendation from External System action element. Without customization,
the properties view for the element looks like this:
About this task
To use the prebuilt Display Recommendation from External
System action element as is, you must expose it in the Activity Builder
in the Marketing tool. This involves editing the properties view file
for the Activity Builder so that the element displays in the palette.
Business users can then drag the element from the palette into a Web
activity and complete the properties shown in previous screen capture. Customizing
the prebuilt action element requires additional work.
Procedure
- Open
WebSphere Commerce Developer and switch to the Enterprise Explorer
view.
- If required, customize the Display Recommendation from
External System action element. For example:
- To add or remove widgets in the properties view, modify:
- To customize the object definition for the element, modify:
Your customization might require additional changes. The topics
linked from Adding a new trigger, target or action provide useful
reference information about the code that supports action elements
in the Marketing tool.
- Expose the prebuilt Display Recommendation from External
System action element in the Activity Builder for the Marketing tool:
- Complete one of the following steps:
- In the Enterprise Explorer view, expand .
- In the Enterprise Explorer view, expand .
- Open the properties view file that
contains the palette for Web activities:
Option |
Description |
WebActivityBuilder.lzx |
- Locate the following line of code:
<Element objectType="displayExternalRecommendation"/>
- Remove the comments so the line is no longer commented out.
- Save and close the file.
- If you want business users to be able to create Web activity templates
using the Display Recommendation from External System action element,
repeat steps 3.b.i through 3.b.iii for the WebActivityTemplateBuilder.lzx file
. This properties view contains the palette for Web activity templates.
|
WebActivityBuilder.def |
- Locate the following code:
<!-- This prebuilt element is available for customizations to use when the
DisplayExternalRecommendationActionTaskCmd task command is implemented.
<Element objectType="displayExternalRecommendation"/>
-->
- Remove the comments so the element is no longer commented out.
- Save and close the file.
- If you want business users to be able to create Web activity templates
using the Display Recommendation from External System action element,
repeat steps 3.b.i through 3.b.iii for the WebActivityTemplateBuilder.def file
. This properties view contains the palette for Web activity templates.
|
What to do next
After you complete your customization:
Version |
Steps |
|
- Right-click LOBTools Project;
then click Build OpenLaszlo Project to produce
an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent
directory. This setting is the default environment setting.
- Test your changes by viewing
them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy
your changes to your production environment.
|
|
- Test your changes by viewing them in the Management Center, using
this URL: https://hostname:8000/lobtools.
- Deploy
your changes to your production environment.
|