Tutorials > Sales Center > Add a new search option in the IBM Sales Center

< Previous | Next >


Test the completed tutorial and view the reply BOD

This section refers to testing the completed tutorial and view the reply BOD..

To ensure you can search for a product using the manufacturer's part number:


Procedure

  1. Use the IBM Sales Center to search for a product with the part number information you entered:

    1. Open the IBM Sales Center.

    2. Click Open > Sales Center - Order Management.

    3. Click File > Logon. Enter the userid and password and click Logon.

    4. Click Store > Select. In the Store name field, enter the store name. For example, if you use the default consumer direct store, the store name is ConsumerDirect. Click Find.

    5. Select the store name from the search results and click OK.

    6. Click Product > Find.

    7. In the Select option list, select Manufacturer Part Number.

    8. In the Manufacturer Part Number field, enter the part number you inserted into the mfpartnumber column.

    9. Click Find. The catalog entry you updated with the mfpartnumber displays in the Search result table, as in the following screen capture:

  2. Optional: Viewing the Business Object Document (BOD)

    You can view the reply BOD that contains your new manufacturer part number information. Viewing the BOD is useful when the results are not as expected, and you can see if the information is being passed from server to client (or client to server) as you intend.

    To view the BOD:

    1. Within the IBM Sales Center development environment, click Run > Run.

    2. On the Arguments tab, make note of the Workspace Data Location. By default the location is WCDE_INSTALL /mscworkspace/runtime-workspace. This is the location in which the BOD files will be stored.

    3. On the Trace tab,

      1. Click Enable tracing for the selected plug-ins.

      2. In the Plug-ins that support tracing list, select all the plug-ins that begin with com.ibm.commerce.telesales.

      3. Click Run.

    4. When the IBM Sales Center client opens, follow the instructions above to test the changes by searching for a manufacturer part number.

    5. In the file system, navigate to the Workspace Data Location you examined. By default the location is WCDE_INSTALL /mscworkspace/runtime-workspace. Within this directory, navigate to the debug/bodmessages directory. All BODs exchanged between the client and the server are stored in this directory.

    6. Locate the BOD file with the name wc.ShowElectronicCatalog_ timestamp .xml, where timestamp is the time when the BOD was created.

    7. In the file, find text similar to the following. Here, the manufacturer part number is passed from the server to the client as you expect:

      <wc:UserData> 
         
      <wc:UserDataField name="manufacturerPartNumber">myMFPartNumber</wc:UserDataField> 
      </wc:UserData>
      

    8. Remember to disable tracing in the Tracing tab when you no longer need to view the BOD.

< Previous | Next >


+

Search Tips   |   Advanced Search