Here is what I did. If you want to know.
Not sure how correct it may be but it seems to be functioning.

        <cfif session.svr_softwarelist EQ "[empty string]">
            <cf_DisplayListLinks add="No" view="SVR_SOFTWAREViewForm.cfm" edit="SVR_SOFTWAREEditForm.cfm" delete="SVR_SOFTWAREDeleteForm.cfm">
        <cfelse>
            <cf_DisplayListLinks add="SVR_SOFTWAREAddForm.cfm" view="SVR_SOFTWAREViewForm.cfm" edit="SVR_SOFTWAREEditForm.cfm" delete="SVR_SOFTWAREDeleteForm.cfm">
        </cfif>

---------- Forwarded message ----------
From: Tim Blankenship <[EMAIL PROTECTED]>
Date: Apr 13, 2005 12:23 PM
Subject: Add in list
To: Plum Email List <[email protected]>

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


--
Tim Blankenship
[EMAIL PROTECTED]
www.vespri.com

Reply via email to