Are you doing it one the page level or field level ?

"Foust, Kelley" <[EMAIL PROTECTED]> wrote:
>Fred,>Move this code into the onBeforeDisplay event and it should work fine.  > 
             SetDisplayFieldValue won't work in the onBeforeHTMLOutput event>since the 
dsiplay
         field has already be converted to HTML.>>Kelley Foust>Grant Thornton LLP>>    
 -----Original
         Message----->  From:   Fred Bruegmann [SMTP:[EMAIL PROTECTED]]>       
 Sent:   Thursday,
         April 02, 1998 1:39 PM>        
To:>[EMAIL PROTECTED]> Subject:        [ND]
         Unable to change static text field value>>     The following piece of code is 
attempting
         to set the value of a>static>  text field based>       on a value read from 
the session
         object, but it doesn't work ->nothing> is displayed.>  I've verified that I'm 
actually
         getting the correct value from>the>    session object.  Futhermore,>   I've 
discovered
         that if I have a default value assigned to the>static> text field it will 
diplay>      the
         default value.  Does any one have any idea why this is>happening?>>    Thanks 
in advance.>>    
         //[[SPIDER_EVENT<onBeforeHtmlOutputEvent (CSpVisual>visualObject)>>     
protected int
         onBeforeHtmlOutputEvent (CSpVisual visualObject)>       {>       if 
(visualObject.getName().equals("stTradePartnerName"))>     
           {>      CSpValue valName = CSpider.getSessionObject ("CUST_NAME");>     
setDisplayFieldValue
         ("stTradePartnerName", valName);>         }>     return 
(PROCEED_WITH_BUILTIN_HANDLING);>      
         }>      //]]SPIDER_EVENT<onBeforeHtmlOutputEvent (CSpVisual>visualObject)>>>  
 -->     Fred
         Bruegmann>     Stupid Coder>   Whirlpool Corporation>  Phone: (616) 923-3751> 
 Fax: (616)
         923-2599>      Email: [EMAIL PROTECTED]>>      
>________________________________________________________________________>_>>   Helpful
         addresses for the forums...>http://forums.netdynamics.com>     
>[EMAIL PROTECTED]>  
>[EMAIL PROTECTED]
        m>
_________________________________________________________________________

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