Validating your query template file syntax
HCL Commerce Developer provides a JSP file that you can use to validate your query template file syntax. Query template file syntax validation can only be performed on local instances of HCL Commerce. This JSP file cannot be used for remote access and testing.
Procedure
- Open HCL Commerce Developer.
- Ensure that the HCL Commerce test server is running.
-
Launch the query template validation JSP file by navigating to the following URL: dsl.jsp
Note: The validation JSP file only works correctly when viewed using the Internet Explorer browser.
-
Specify the query you want to validate by providing the following input:
- In the Component list, select the service module that contains the query template file you want to validate.
- In the XPath keys list, select the XPath key for the query.
- In the XPath entry field, type a HCL Commerce extended XPath notation expression to test.
- In the Access Profile list, select an access profile to test.
- In the Store Id field, select the StoreId.
- In the Language Id field, select the Language ID.
- Click Submit Query to test your query.
Results
- Search expression
- Paging count SQL (if the query has paging SQL)
- The XPath to SQL query.
- Parameters (the parameters used in the SQL statements)
- The number of rows returned
- A table of the result rows
- The name of the associated XPath query.
- The associated SQL statement.