Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:48:54+00:00 2026-06-14T03:48:54+00:00

Can someone explain how the FW1 service call works? As I read the section

  • 0

Can someone explain how the FW1 service call works? As I read the section from the manual below. I thought the following should work.

See: https://github.com/seancorfield/fw1/wiki/Reference-Manual

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.

controller/comparables.cfc

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, "table", "The Table" );
        StructInsert( args, "column", "The Column" );
        variables.fw.service( 'comparables.autocomplete', 'autocomplete', args );
    }
}

service/comparables.cfc

component { 
    public any function autocomplete( string table, string column, string term ) {      
        return "not yet implemented #table# #column# #term#";
    }
}

The following view displays rc.autocomplete = "not yet implemented"

views/comparables/autocomplete.cfm

<cfdump var="#variables.rc#" >
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:48:56+00:00Added an answer on June 14, 2026 at 3:48 am

    I was finally able figure out how it all fits together.
    The following service call would return a value immediately whereas the above would not be called until the controller method has finished.

    comp_serv = CreateObject("component","services.comparables");
    rc.comparables = comp_serv.autocomplete( "table","colum","term" );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone explain to me why the result from the following statement has a
Can someone explain clearly why this implementation (from SO 3965054) of min_of_list works in
Can someone explain what the method seed does from module random in the following
Can someone explain to me the following behavior on x64 platform: If I call
Can someone explain me why this works: select val1, val2, count(case when table2.someID in
Can someone explain why it's best use is for prototyping? Should it not be
Can someone explain how the organisation of classes in Pharo works in different versions
Can someone explain which indexed search would be faster, listing from fastest, to slowest
Can someone explain and give example code to do the following steps in my
Can someone explain to me why this line works: conn = DriverManager.getConnection(jdbc:mysql://myWebsite.com:3306/schemaName?user=userX&password=passwordX); But this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.