364 users using DBSP now!
home -> documentation -> language reference -> doc property


Description

This property specifies which document will be retrieved after executing a certain DBSP operation. This operation could be executing a SQL Sentence, login into an application or redirecting to a DBSP page.


Syntax

<#LOGIN ALIAS="TEST" QUERYID="1" DOC="common/Welcome.dbsp">

<#QRYEXEC ALIAS="TEST" QUERYID="12" DOC="test/RecordInserted.dbsp">

Notes:

When DOC is used in the LOGIN or QRYEXEC tag, the command will be converted into an URL and will not be executed until this URL is requested.

 

Applications

Use the DOC property in this ways:

  • In the LOGIN tag, when you want that after a successful login the systems always redirect to a start page.
  • In the QUERYEXEC tag, when you want to display a page after a successful SQL sentence execution (this SQL usually will not retrieve data).
  • In the REDIRECT tag, to define to which page the user will be redirected.