Developing Sun Master Indexes

ProcedureTo Customize Common Table Data for MySQL

  1. Do one of the following:

    • Under the master index project in the Projects window, expand Database Scripts and then open codelist.sql in the NetBeans editor.

    • On your computer, navigate to project_home/src/DatabaseScript, where project_home is the location of the master index project files. Open codelist.sql in a text editor.

  2. Scroll to the first line that begins with “— **** “.

    The statements following this line must be customized.

  3. In the first code list stanza, change “module description” in the first line to a brief description of the code type.

    For example:


    -- ****         PHONTYPE   ****
    insert into tCodeList values(’L’, ’PHONTYPE’, ’TELEPHONE TYPE’);
  4. Create the entries for that module using the following syntax:


    insert into tCodeList values(’V’, ’code’, ’code description’);

    where “code” is the processing code of the data element and “code description” is the description of the element as you want it to appear on the Master Index Data Manager windows. For example:


    -- ****         PHONTYPE   ****
    insert into tCodeList values(’L’, ’PHONTYPE’, ’TELEPHONE TYPE’);
    insert into tCodeList values(’V’, ’H’, ’HOME’);
    insert into tCodeList values(’V’, ’C’, ’CELL’);
    insert into tCodeList values(’V’, ’F’, ’FAX’);
    insert into tCodeList values(’V’, ’O’, ’OFFICE’);
    insert into tCodeList values(’V’, ’HB’, ’HOME BUSINESS’);
  5. Repeat the previous two steps for each code list type defined in the file.

  6. If you specified additional code list fields in object.xml and midm.xml after the database scripts were generated, add a new stanza for each new code type.

  7. Save and close the file.

  8. Do one of the following: