One way to do this would be to create a CFFUNCTION at the top of the page,
like this:
<cffunction name="DisplayLink" returntype="string">
<cfargument name="IDCol" type="numeric">
<cfargument name="Category" type="string">
<cfif Category EQ "Performance Report">
<cfreturn "[<a href=""Page.cfm?IDCol=#IDCol#"">Link Here</a>]">
<cfelse>
<cfreturn "">
</cfif>
</cffunction>
Then in the page below, use:
<cf_DisplayListLinks ...>
#Caller.DisplayLink(table_IDCol, table_Category)#
</cf_DisplayListLinks>
Let me know if this works for you :)
David
----- Original Message -----
From: "Jeff Fleitz" <[EMAIL PROTECTED]>
To: "[email protected]"
<[email protected]>
Sent: Tuesday, July 12, 2005 4:02 PM
Subject: [plum] Bracketing Drillup/down links in lists
> Hi Adam and David,
>
> Is there a way to conditionally display a drill-up/down link in a list? I
am working with some sub-category tables for
> a parent, and I would like to evaluate the value of a category field value
for each row, and display a link to the
> sub-category form.
>
> For instance, if the current list row displays "Performance Report" as the
event type, then display the drilldown link
> to the Preformance Report list, etc. You get the idea.
>
> <cf_DisplayListLinks Add="Yes" View="Yes" Edit="Yes" Delete="No">
>
> <cfif thisCategory EQ "Performance Report">
> [Performance Report Link Here]
> </cfif>
>
> </cf_DisplayListLinks>
>
>
> Any help appreciated.
>
> Jeff
>
> **********************************************************************
> You can subscribe to and unsubscribe from lists, and you can change
> your subscriptions between normal and digest modes here:
>
> http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
> **********************************************************************
>
**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:
http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************