To Validate a BQL Statement
Suppose that you have a BQL statement in the customization code that does not work properly or you want to make sure that a BQL statement is correctly converted into an SQL query. To validate the BQL statement, you can use the Request Profiler.
To do this, perform the following actions:
- In the browser, open the form that uses the customization code with the BQL statement.
- Click Start Logging in the Profiler dialog box, which opens. The Request Profiler starts logging URL requests, SQL queries, exceptions, and warnings and errors. on the form title bar, and click
- On this form, perform the action that executes the BQL statement.
- Click Stop and Export in the Profiler dialog box. The Request Profiler returns to the default monitoring and exports a ZIP archive with the log files that contain information in JSON format about the performed URL requests, SQL requests, and stack trace. on the form title bar, and click
- On the form toolbar of the Request Profiler (SM205070) form, click Refresh Results to refresh the log tables.
- On the SQL tab, in the list of SQL queries, find the SQL query
that corresponds to the BQL statement.Note: Because you know the name of the table that you are using in the BQL statement, you can specify the name as a filter in the Tables column of the SQL tab.
- Click the link in the Statement ID column for the SQL query you have found. The SQL Details dialog box opens.
- In the bottom pane of the dialog box, view the SQL statement, and validate the BQL statement used in the customization code.
- Close the dialog box.
- On the form toolbar of the Request Profiler form, click Clear Log to delete the SQL request data from the database.