The Text Processor wizard is similar to the Event Definition wizard and allows you to create events that are triggered when a user clicks on the text you associate with the event.
Post-processing text to trigger events
Right-click any portlet in the Application Builder Portlets list, click Post Processing, then select Text Processor.
When the Text Processor wizard displays, you see a preview of the selected portlet.
Click Next. You see the window where you define click-across events.
Complete the options as follows:
Regular Expression – enter a regular expression to place an event on text that matches the expression.
Event Name – the name of the event to generate when the matching text is clicked. The event must have already been created.
Do
not using spaces in event names.
Value drop-down list – select the type of data to send with the event:
Dynamic Value - sends the actual text you click on as the event data.
Static Value - sends a constant value as the event data. You specify this value in the text box to the right of the value drop-down list.
Matching Scheme – select the matching scheme to use when finding matches for your regular expressions. Select:
Match All Occurrences – to place the event on every match to your regular expression that is found.
Match First Occurrence Only – to place the event on only the first occurrence of a match to your regular expression.
Notify Now – send the event immediately. For this example, select this option.
Notify Across Page – send the event across pages if there is a listener on another page; otherwise, look for events on the current page.
When you are satisfied with your entries, click Next.
When you see a final preview of the portlet, click Finish. You return to the Application Builder.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |