This topic is locked

record value in custom code snippet

5/17/2010 4:59:50 AM
ASPRunnerPro General questions
S
silk author

hello,

I need to add a custom code snippet near each record in a list page. I do that easily from visual editor, but I need to insert a different link for each record.
the link is stored in a field in the table so I need to read it...how can I read specific record values inside a code snippet? (I cannot use custom field type, need to use code snippet)
thank you

A
ann 5/17/2010

Hi,
It's impossible to read values inside a snippet. The only way is to create a custom link {$custom_link} inside the cell in the HTML mode of the Visual Editor tab. Then proceed to the Events tab and type in the After record processed event:

record("custom_link")=data("FieldName");