[EMAIL PROTECTED] wrote:
>Hello,
>I have a database which has some empty fields.  I don't like the way these empty 
>fields are displayed in html
>and want to write some Java code for onDisplayEvent to instruct ND that "if an the 
>database field is empty, put
>a whitespace instead of the value".
>
>Here is the line of code that I use:
>fieldValue.setValue((CSpValue) new CSpString("  "))

You shouldn't need to cast to CSpValue here ....
    i.e.   fieldValue.setValue(new CSpString(" "));

>Do you know what can I put in parenthesis CSpString("  ") to make sure that ND knows 
>that it's a whitespace displays it like 
>a white empty cell (for example &ndsp; or something like that).

huh? If you want it to display as a non-breaking space on an HTML page, then use new
         CSpString(" ") ... if you mean that you want an empty table cell, you 
have to
         set up a table around this field and then use "<td></td>".

>Thanks a lot,
>Rimma

_________________________________________________________________________

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]

Reply via email to