Skip to main content
Inspiring
February 5, 2009
Question

How best to reuse 6 identical selection lists bound to a CFC method

  • February 5, 2009
  • 3 replies
  • 446 views
I have 6 'selection lists' over 3 cfforms type=html on the same cfm that are pulling the same data using the CFC method "readdiadoctypename". The returned data is a single column query set of document types. For example, one is in the search area of the form, a second allowing the user to filter results, a third in the edit area, allowing the user to select a new one, a fourth on a seperate tab in an area where they can edit the selection list (here it uses autosuggest instead of a select list). Any variation in the bind attribute is related to the type of response in case of error, and is not important. Variations in the class attribute are not critical either. Also some have bindonload set to true, but this also could be true for all. However, since I use bindings and other fields are bound to these fields including one called subdoctypes, I don't think I can use an include or cfinclude. This seems like a performance improvement opportunity. Is there a better approach? Here is the code used for each of the 6 calls.
This topic has been closed for replies.

3 replies

BrianOAuthor
Inspiring
February 12, 2009
That did the trick. Thanks.
BrianOAuthor
Inspiring
February 5, 2009
Dan, Good idea. I think that may be the answer. I'll try it tomorrow. Thanks. I had a binding hammer and everything was looking like an AJAX nail :-)
Inspiring
February 5, 2009
Instead of binding, invoke the method and reuse the resulting variable.