Predefining the default preferred store name within the Management Center

By default, Management Center does not automatically select a store when a tool is opened unless a business user specifies a default store in the Preferences dialog. A developer can predefine a store to use as the default preferred store for all business users.

Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
  2. In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce
    shell > ConfigProperties.lzx.
  3. Within the ConfigProperties.lzx file, locate this string: <attribute name="defaultPreferredStore" type="string" value="" />.
  4. Add the store name as the value for default preferred store.
    For example, if the store name is MyStoreName, specify:
    <attribute name="defaultPreferredStore" type="string" value="MyStoreName" />

What to do next

After you complete your work:
  1. 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.
  2. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  3. Deploy your changes to your production environment.