Previous Topic: Behavior Rename Considerations in Adobe DreamweaverNext Topic: Define an Action Set


Associate a Behavior to a Control

Use any of the Adobe Dreamweaver features to design web pages but use only HTML controls to map a user interface control to an Action in CA Gen Studio. Adobe Dreamweaver Behaviors place JavaScript code in web pages so that you can customize a web page or initiate certain tasks.

Follow these steps:

  1. Select an HTML control on the web page.
  2. Click Window, Behaviors.

    The Behaviors panel opens.

  3. Click the plus symbol drop-down in the Behaviors panel.

    Web Service Access appears in the Behaviors drop-down.

    Web Service Access Behavior

  4. Click Web Service Access.

    An HTML file must exist before you can add an Action. If the Web Service Access plug-in does not find an HTML file, it prompts you to save one.

    The Web Service Access dialog appears prompting you to enter a Web Service Access action name. If CA Gen Studio is not already open, it opens. The Web Service Access dialog is disabled until CA Gen Studio opens.

    Note: The time taken to open CA Gen Studio may vary depending on various factors such as machine bandwidth, configuration, workspace, and so on.

    Web Service Access Dialog

  5. Enter a name for the Web Service Action. You can enter only alphanumeric characters for a Web Service Action; special characters, except underscore, or spaces are not supported.

    CA Gen Studio opens the Web Service Access Designer perspective and the action name that you entered in the Web Service Access dialog is referenced as an Action in the Web Service Access Navigator view. This action is added under <site project>\Action Sets\<HTML file name>.html.

    An editor is also opened for this action as shown next.

    Editor View

    A .project file is created when you add an action from Adobe Dreamweaver. This .project file is saved in the same location where the .html file is saved. This .project file is associated with the Web Service Access Designer perspective in CA Gen Studio and it is named Site Project.

Note: For more information about applying behaviors to controls on a web page, see the Adobe Dreamweaver documentation.