Skip to main content
June 26, 2010
Question

CFC Question

  • June 26, 2010
  • 1 reply
  • 681 views

Hi,

Have a problem and I'll probably  explain this wrong, but here goes. I invoke a CFC:

<cfinvoke 
  component="cfc.price.PriceGateway"
  method="getById"
   id="1"
  returnvariable="priceResults">
</cfinvoke>

that  returns the following (from a cfdump):

Price  Results - component cfc.price.PriceBean
PROPERTIES
priceid1
descriptionService
price500.00
METHODS

How would I  grab the values of the PROPERTIES and display them on a page? For  example, just the price, or just the priceid?  I can't find an example  and I've searched without results.

Thanks.

    This topic has been closed for replies.

    1 reply

    chrisbowyer
    Known Participant
    June 26, 2010

    Try <cfoutput>#priceResults.properties.price#</cfoutput>

    June 26, 2010

    Thanks, but that errors:

    Element  PROPERTIES.PRICE is undefined in PRICERESULTS.

    Inspiring
    June 26, 2010

    Make property singular instead of plural.