Databases Reference
In-Depth Information
Figure 6-30. Console containing XMLHttpRequests and Dynamic Action debug messages
Clicking on the arrow beside the POST will expand the detail of the AJAX call and will expose the
Header, Post, Response, and the JSON object as seen in Figure 6-31. Because the Dynamic Actions are
generated code based on what you declared within the APEX builder, the POST section will only be
partially useful. You'll be able to see what field initiated the transaction and what APP and PAGE were
involved, but the other data will likely be unfamiliar and mean nothing to you. However, the data
contained in the Response and JSON tabs actually represent data that was returned by the AJAX call and
was used by the dynamic action.
In the example shown in Figure 6-31, the data that was passed back is being used to set the available
values in a select list. Each JSON object contains two attributes, “d” and “r”, which relate to the select
list's display and return value respectively.
Figure 6-31. Expanding the POST to see its content
If you really want to get into the details of what is happening during a dynamic action, you'll need to
get into the depths of JavaScript debugging, which is beyond the scope of this chapter. But hopefully
Search WWH ::




Custom Search