Develop > Presentation layer > Management Center framework
Predefine 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
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce shell > ConfigProperties.lzx.
- Within the ConfigProperties.lzx file, locate this string: <attribute name="defaultPreferredStore" type="string" value="" />.
- 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 the work:
- Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This is the default environment setting.
- Test the changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy your changes to the production environment.