Running the Create Media Object Call Wizard

The business service framework provides a Create Media Object Call Wizard that generates Java code for calling a Media Object operation. You create a Media Object call in the code already created by the Create Business Service Wizard. You must be at an appropriate location within the code to create the business call method. A TODO tag should be available to help you find this location. The Create Media Object Call Wizard helps you select an Operation to use for creating your new Media Object call.

To run the Create Media Object Call Wizard:

  1. Open the Java file for the business service.

  2. In the JDeveloper editor pane, place the cursor at a valid position for inserting the Java logic.

  3. From the context menu, select EnterpriseOne, and then select Create Media Object Call. If Create Media Object Call is disabled on the context menu, the cursor is not at a valid position in the code.

    The Create Media Object Call Wizard is launched.

  4. Click Next. If the authentication page appears, enter your credentials, and then click Next.

  5. On the Operation Selection page, select one of the following operations:

    • Select

    • Insert

    • Delete

  6. Click Finish.

  7. The Java code is updated with the Media Object call and accompanying code, which is unique for the Media Object operation that you selected.

  8. Manually change the ValueObject type "InternalVO" in the generated Method signature to the value object type you created using the Media Object Value Object Class Wizard.