Databases Reference
In-Depth Information
Figure 6-5. Process Messages
You'll notice that they're a lot of similarities with this code compared to the other three plug-ins
from the previous chapters. It declares variables (assigning logical names to plug-in attributes), calls the
APEX plug-in debug statement (when running in debug mode), processes the information, and then
does something (in this case, emails the phone carrier the text message).
Compared to the other plug-ins, the major difference with this plug-in is that it does not actually
display anything. Since it is a process plug-in, it can be run when the page is being processed and it may
not make sense to actually display anything. The only feedback to the end user is the success message
(defined on line 701), which will be displayed to the end user if one is specified.
Testing it Out
Now that you've built the process plug-in, the last thing to do is ensure it works. The following steps will
walk you through building an example page that utilizes this plug-in:
1.
Using the page creation wizard, create a new page with the following
attribute:
Type: Blank Page
Page Number: 60
Name: Text Message
HTML Region 1: Text Message
New Tab: Text Message
2.
Edit Page 60. In the Text Message region, create the following page items:
a.
Type: Select List
Item Name: P60_CARRIER_CODE
Value Required: Yes
LOV-Display Null Value: - Select Carrier -
LOV-Query: STATIC2:Telus;TELUS,Rogers;ROGERS,ATT;AT&T
 
Search WWH ::




Custom Search