Hitachi Vantara Pentaho Community Wiki
Child pages
  • Using AJAX to Drive Dependent Report Parameters

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open the DependentParameterTemplate.html file in the Design Studio. If you have any trouble opening the file, right click on it in the Navigator window, and select Open With => Text Editor.
  2. The first section of code we will look at in this template is the HTML inside the <form></form> tags.
    Code Block
    
    <form name="parameter-form" id="parameter-form" method="POST">
        <table width="100%" style="padding:5px;">
    
           <tr>
              <td class="portlet-font">The department selections filter the positions.</td>
           </tr>
           <tr>
              <td class="portlet-font">Region: {REGION}</td>
           </tr>
           <tr>
              <td class="portlet-font">Department: {DEPARTMENT}</td>
           </tr>
            <tr>
              <td class="portlet-font">Position: {POSITIONTITLE}</td>
           </tr>
    
           <tr>
              <td><br/><input type="button" name="go" class="portlet-form-button" value="Run..." onClick="doForm()"/></td>
           </tr>
    
        </table>
        {solution}
        {action}
        {path}
    </form>
    
    Image Added