davidhartman00
davidhartman00

Reputation: 353

Drilling into a Coldfusion Struct

I have this ColdFusion struct that I dumped:

CFDUMP output

I'm trying to drill into this farther to get the DTCREATED variable.

This was generated from the following query:

gotResults = queryService.execute(sql="SELECT * FROM someTBL WHERE  EXPORTID in 
(#whereVariable#)" );

Can anyone tell me how to drill further into this ColdFusion struct?

Upvotes: 0

Views: 97

Answers (1)

Henry
Henry

Reputation: 32885

Use gotResults.getResult().DTCREATED.

gotResults.getResult() returns a Query object, so just use .DTCREATED (case-insensitive) to get to the column. It will return the value in the first row of that column by default.

Upvotes: 1

Related Questions