This topic is locked

Hide EDIT Link

3/6/2009 9:55:12 PM
ASPRunnerPro General questions
L
lnemer author

Hi support!
(I want to thank you for developing ASPRunner Pro 6. Your software & support rocks!!)
Question:

How to hide and make visible (or enable/disable) the EDIT text link on List page?
This is the code I have put in the page in Visual Editor but it does not work the EDIT shows all the time but is not enabled for any condition:

[codebox]

{BEGIN edit_column}<TD class=borderbody vAlign=middle align=middle>

<%

strVariable = dict("field")
If strVariable = session("SessVariable") then

'Show edit link

%>{BEGIN edit_link}<A class=tablelinks{$editlink_attrs}>Edit</A>{END edit_link}
<%Else

'Hide edit link

End IF

%>

</TD>{END edit_column}[/codebox]
The trick is, I don't want to hide the entire EDIT column, only remove the edit link on the records where the user's Agency_Name does not match a record's Agency_Name. Also how do I call the Agency_Name value from the array that populates the list page?
Can you please help?

Odie

L
lnemer author 3/11/2009

I tried the following code but still does not work.
[codebox]if rs("field")<>session("SessVariable") then

xt.assign "edit_link",False

end if[/codebox]
Anyone have any ideas?