Allows to add a URL to the adapter to access in the following load of the form. The URL can be as much an intern URL of the system
Axional Studio as external directions. Also, it is possible to indicate where and how we want to visualize the URL.
For this, it is necessary to use the attribute mode which allows the following options:
- modal: The URL is opened in a modal window, over the current form.
- new: The URL is opened in a new window..
- self: The URL is opnened in the current window, replacing the form.
This function needs as musch a request as an adapter; therefore it can only be used from a script called from the form. In this way, it is possible to call from the main process of the object, from a button or from the transaction administrator. It should be noted that que URL remains linked to the adapter and can be lost when the adapter is recharged. This recharging may occur because the adapter expires or because its recharging has been forced. If it is called from a button of type Run and refresh, the URL will never open.
<url /> !
|Amode||string||Opening mode of the url [modal|new|self].|
|Eurl||String||The URL direction which the system will open on the following load of the form.|
|boolean||Returns true or false depending if the XSQL processor is being processed by a web server and it has a valid adapter.|
Example of a processor to open an external URL to http://www.deister.net. If this process is executed from a form button type Execute; after clicking on the button, the page is reloaded and it will open a new one with the direcction http://www.deister.net
<xsql-script name='http_connection_getAttr'> <body> <if> <expr><cursor.isDefined /></expr> <then> <cursor.postURL mode='new'> <string>http://www.deister.net</string> </cursor.postURL> </then> </if> </body> </xsql-script>
Example of a button that opens a Axional Studio form.
<xsql-script name='http_connection_getAttr'> <body> <if> <expr><cursor.isDefined /></expr> <then> <cursor.postURL mode='modal'> <webapp.wic_jrep_object.getHREF code='simple_report' cond='1=1' /> </cursor.postURL> </then> </if> </body> </xsql-script>