Show TOC

Adding Custom Code to Display All Order HeadersLocate this document in the navigation structure

Procedure

  1. In the UI Explorer , in the context menu of the Component Controller of OrderComp , choose Start of the navigation path Open Next navigation step Java Editor End of the navigation path.
  2. Find the supplygetOrderHeaders method. You can use the Outline view (by default in the bottom right corner) for navigation.
  3. In the existing coding, add the line getOrderHeaders.execute(); to execute the query object getOrderHeaders . When you try to edit the file, a dialog box appears asking if you really want to edit the file. Choose Yes .

    The completed code should be the same as the example below (you can copy and paste this example code into the editor):

    //------------------------------------------------------------------------------------

    // Supply Functions for Context Nodes.

    //------------------------------------------------------------------------------------

    public void supplygetOrderHeaders(IWDNode node) {

    //@@begin supplygetOrderHeaders(IWDNode,IWDNodeElement)

    //$$begin (Mobile Service Component)

    getOrderHeaders.execute();

    node.bind(Collections. singleton (getOrderHeaders));

    //$$end //

    @@end

    }

  4. Save your work.