Here's some magic code that someone else posted here quite some time
ago. I haven't tried to understand it. It just works for me.
String p1[] = new String[1];
String p2[] = new String[1];
//[[SPIDER_EVENT<btDisplayStyle_onBeforeDisplayEvent>
public int btDisplayStyle_onBeforeDisplayEvent(CSpDisplayEvent event)
{
CSpCommand cmd = (CSpCommand) event.getSource();
if (displayStyle == _displayStyle_Condensed)
p1[0] = "Condensed";
else
p1[0] = "Verbose";
cmd.setDisplayFormat(new CSpFormattedString(p1, p2));
return PROCEED;
}
//]]SPIDER_EVENT<btDisplayStyle_onBeforeDisplayEvent>
Swaminathan wrote:
>
> Hi ,
>
> I have been trying to set the value of a button i.e the text that appears at the
>top of
> the button, by setDisplayFieldValue method in the onBeforeDisplayEvent of the button.
> But for some reason it is not displaying the text, even though when I log my message,
> it says the value has been set. Am I setting the value at the correct place or Do I
> need to use a different method ( eg. setDisplayFormat() ) for doing the above. Please
> enlighten.
>
> Swami.
--
"Often wrong, never in doubt"
William Jaynes | University of Michigan Health System
[EMAIL PROTECTED] | 4251 Plymouth Rd., Suite 1300
734-763-9039 | Ann Arbor, MI 48105-2785
_________________________________________________________________________
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]