I guess when setting the html text for a display field, in this case the <A>
tag, I need to include the original display field as part of the html,
otherwise the intended data for the display field is not displayed.
public int Manufacturer_onBeforeDisplayEvent(CSpDisplayEvent event)
{
... if(urlAddress.isNull()){
urlValueString = mfrName.toString(); }
else {
urlValueString = new String("<A href=\"" + urlAddress.toString()
+ "\">" + mfrName.toString() + "</A>"); }
public int Manufacturer_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent event)
{
CSpDisplayField field = (CSpDisplayField) event.getSource();
field.setHtmlText(urlValueString);
return (PROCEED);
}
Thanks for your help.
John
Curt Springer wrote in message
<[EMAIL PROTECTED]@zv642>...
<--snip-->
>D. put code something like this in the field's onBeforeHtmlOutput event:
> 1. CSpDisplayField field = (CSpDisplayField) event.getSource();
> 2. field.setHtmlText(_urlvaluestring); //argument is the member var that
>holds the html for this field.
>
>-- Curt Springer, Team NetDynamics
>
_________________________________________________________________________
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]