I would suggest something like this:
Put a repeated on your page.
Put a static text field inside the repeated
create an instance variable to hold the current href to be displayed
(this assumes file is dynamic)
this_onBeforeDisplayEvent
(probably wrap in try/catch)
open the file
repeated_onBeforeRowDisplayEvent:
(probably wrap in try/catch)
get next line from file, if there is none return STOP to suppress this row
and terminate processing for the repeated
If there is a next line:
instancevariable = "<A href=" + whatever from current line in file +
"...../A>"
return PROCEED
statictext_onBeforeHtmlOutputEvent
CSpStaticText field = (CSpStaticText) event.getSource();
field.setHtmlText(instancevariable);
-- Curt Springer, Team NetDynamics
At 10:52 AM 2/15/00 -0500, Jan Robison wrote:
>Hi,
>
>I am reading in a flat file and I need to display the results in hrefs.
>The flat file will contain a list of names and I need the user to be able
>to click on a name to obtain more information.
>The flat file could be a different size every time.
>I will need to dynamically create an href for each line in the flat file.
>I dynamically create an href called hrf in the onBeforeInitEvent then I
>have this code.
>
>public int this_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent event)
>{
> spider.html.CSpHtml.write("<INPUT TYPE=TEXT NAME=" + "\"" + "hrf" +
> "\"" + ">VALUE=" + "\"" + "\"" + " MAXLENGTH=20 SIZE=20>");
> return (PROCEED);
>}
>
>The page displays VALUE= MAXLENGTH=20 SIZE=20
>How do I get it to actually display the href I created.
>
>or am I going about this the wrong way?
>
>Thanks
>Jan
>
>_________________________________________________________________________
>To unsubscribe from this mailing list please send an email to:
>[EMAIL PROTECTED]
>Please remember to use the same email address you subscribed with.
>
>For help in using, subscribing, and unsubscribing to the discussion
>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
>For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]