title: FW1 Service call
body: <p>Can someone explain how the FW1 service call works? As I read the section from the manual below. I thought the following should work.</p>
  <p>See: <a href="https://github.com/seancorfield/fw1/wiki/Reference-Manual" rel="nofollow noreferrer">https://github.com/seancorfield/fw1/wiki/Reference-Manual</a></p>
  <blockquote>
  <p>A service method is passed a collection of named arguments, based on whatever is in the request context after the controller methods have executed (i.e., after before(), startItem() and item() ). A service method may return a result, which is placed into the request context by FW/1. By default, FW/1 1.x stores the result of the (initial) service method call in rc.data.</p>
  </blockquote>
  <p>controller/comparables.cfc</p>
  <pre><code>component { 
      public any function init( fw ) {
          variables.fw = fw;
          return this;
      }
      
      
      public void function autocomplete( rc ) {
          // queue up a specific service (comparables.autocomplete) with named result (autocomplete)
          var args = StructNew();
          StructInsert( args, &quot;table&quot;, &quot;The Table&quot; );
          StructInsert( args, &quot;column&quot;, &quot;The Column&quot; );
          variables.fw.service( 'comparables.autocomplete', 'autocomplete', args );
      }
  }
  </code></pre>
  <p>service/comparables.cfc</p>
  <pre><code>component { 
      public any function autocomplete( string table, string column, string term ) {      
          return &quot;not yet implemented #table# #column# #term#&quot;;
      }
  }
  </code></pre>
  <p>The following view displays rc.autocomplete = &quot;not yet implemented&quot;</p>
  <p>views/comparables/autocomplete.cfm</p>
  <pre><code>&lt;cfdump var=&quot;#variables.rc#&quot; &gt;
  </code></pre>