Modifying the Plug-in Properties

You can modify the macro and function servlets using the Net.Data servlet plug-in.

To modify the Net.Data servlet with NOF:

  1. On the NOF canvas, mark the area to specify where you want to place the selected plug-in. This is where the results of the servlet will be displayed. The Installed Components window opens, displaying a list of plug-ins from which to choose. If the servlet plug-in is not in the list, use the path and file name fields to specify the plug-in file name, NetDataServlet.NFX to use with the macro or function servlet.
  2. Select the Net.Data servlet plug-in from the list and click on the OK push button.

    The plug-in becomes an object on the NOF canvas.

  3. Select and customize the properties of the Net.Data servlet plug-in:
    1. Select the Net.Data servlet plug-in on the NOF canvas. The NOF Properties palette opens, displaying the plug-in properties as shown in Figure 31.

      Figure 31. The Net.Data Servlet Properties Palette


      The Net.Data Servlet properties palette

      Properties for the Net.Data servlets:

      You can customize the following properties:

      Servlet name
      Select the name of the servlet you want to invoke: Function or Macro. Depending on which servlet name you select, different properties are displayed.

      Servlet type
      Select the type of servlet you want: SSI, HREF, or FORM Submit Button. Depending on which type of servlet you want, different properties are displayed.

      Submit label
      If you select a FORM Submit Button type, specify the text for the submit label. Otherwise, this property is not displayed.

      Server URL
      If you select an HREF servlet type, specify the server URL to the servlet-enabled Web server. If you select SSI, this property is not displayed.

      Macro name
      If you select the macro servlet name, specify the name of a existing Net.Data macro to execute. Otherwise, this property is not displayed.

      HTML block name
      If you select the macro servlet name, specify the name of HTML block in the Net.Data macro to run. Otherwise, this property is not displayed.

      Function type
      If you select the function servlet name, select the type of function to execute: Function or SQL. Otherwise, this property is not displayed.

      Language env
      If you select the function servlet name, specify the Net.Data language environment to use. Otherwise, this property is not displayed.

      Statement
      If you select the function servlet name, specify the statement to execute. Otherwise, this property is not displayed.

      Database
      If you select the function servlet name, specify the name of the database to use. Otherwise, this property is not displayed.

      # of other parameters
      Specify the number of other parameters to pass to Net.Data (maximum: 25). For each parameter, enter the name of the parameter and its value (optional).

      Before HREF text
      If you select an HREF servlet type, specify the text to appear before the text to appear before the <a href> HTML tag. Otherwise, this property is not displayed (optional).

      Inside HREF text
      If you select an HREF servlet type, specify the text to appear inside of the <a href> HTML tag. Otherwise, this property is not displayed (optional).

      After HREF text
      If you select an HREF servlet type, specify the text to appear after the text to appear after the <a href> HTML tag. Otherwise, this property is not displayed (optional).

      SQL Reminder!
      If you select an HREF servlet type and specify an SQL function type, a message displays with a reminder that the HREF SQL statement should use a plus (+) character for any space ( ) characters. This text cannot be changed, nor is it displayed after the page is published. Otherwise, this property is not displayed.
    2. After you have defined the properties for your page, click on the Publish push button to build and publish the Web pages with the Net.Data servlet NOF plug-in.
      Note:If you select a SSI servlet type, your Web page file extension should be .shtml. You can set this as your page default from the NOF Properties palette, selecting the Page notebook tab, clicking on the Custom names push button, and entering .shtml in the Extension Type field.


[ Top of Page | Previous Page | Next Page | Index ]