Ticket #664 ( Closed )

Short Description Displaying a variable in an alert box
Entered By: jennifer.genzlinger@experian.com When: 2001-01-22 11:09:28 Build: 2.0.6F
Categories Type: Question   Department: Product   Category: SurferScript
Description
I'm hoping to add the display of a phone number variable 
within text I'm moving into a variable for an alert box.  
I've tried several ideas and can't get anything to work.  
Is this possible, and if so, how?


Example:

   <TEIF Screen(24,2,29)=="LETTER CODE WAS NOT SPECIFIED">
        <TESET CICSErrorMessage="You must select a letter 
code '<teshow phone>' before continuing with your order!">
  

MsgAlert('<teshow CICSErrorMessage>'); 
Append By: WindSurfer  When: 2001-01-22 11:15:34  New Status: Pending Customer
Comment
You just need to adjust your use of the TESET to use string 
concatentation instead of doing a SurferScript tag inside 
another SurferScript tag (won't work).

Two ways to do this:

<TEIF Screen(24,2,29)--"LETTER CODE WAS NOT SPECIFIED">
 <TESET CICSErrorMessage='You must select a letter 
code '+phone+' before continuing with your order!'>
 MsgAlert('<teshow CICSErrorMessage>');
</TEIF>

--OR--

<TEIF Screen(24,2,29)--"LETTER CODE WAS NOT SPECIFIED">
 MsgAlert('You must select a letter code <teshow phone> 
before continuing with your order!');
</TEIF>
 
Append By: WindSurfer  When: 2001-01-22 15:46:32  New Status: Closed
Comment
Customer reported that first option did the trick...closing 
ticket.