Tim,
 
The functionality you're looking for would only be possible if you did a query before the cf_DisplayList call and used *that* query's record count to populate the add attribute of cf_DisplayListLinks.
 
HTH,
Dave
----- Original Message -----
Sent: Wednesday, April 13, 2005 1:23 PM
Subject: [plum] Add in list

I want to change the behavior of the add in my lists.
I have a single page with a view form and several nested lists and want the add link only to display if the list returns no returns. I am looking through the DisplayList but really looks over my head. Anyone know of an easy way to accomplish this. If I knew what the query name was that displays the rows to the list a simple if statement could accomplish this.
Something like this
        <cfif Recordset.recordCount EQ 0>
            <cf_DisplayListLinks add="SVR_SOFTWAREAddForm.cfm" view="SVR_SOFTWAREViewForm.cfm" edit="SVR_SOFTWAREEditForm.cfm" delete="No">
        <cfelse>
            <cf_DisplayListLinks add="No" view="SVR_SOFTWAREViewForm.cfm" edit="SVR_SOFTWAREEditForm.cfm" delete="No">
        </cfif>
--
Tim Blankenship
[EMAIL PROTECTED]
www.vespri.com

Reply via email to