Allows to add an URL to the adapter to access in the following form load.
The URL can be both an internal URL of the system
Axional Studio or external addresses.
Also, it is possible to indicate where and in what way you want to visualize the URL, for this the mode attribute is used and it
allows the following options:
- modal: The URL is opens in a modal window, on the current form.
- new: The URL is opens in a new window.
- self: The URL is opens in the current window, replacing the form.
This function needs both a request and an adapter; so it can be only used from a script called from the form. In this way, it is either called from the main process of the object, or from a button, or from the transaction manager. Note that the URL is linked to the adapter and can be lost when the adapter is recharged. Such recharging may occur because the adapter expires, because its recharging has been forced or for example, if it is called from a button of the type Run and refresh, in which case, the URL will never open.
DeprecatedDeprecated since September 2017. Instead of it, use cursor.postUrl.
<url /> !
|Amode||string||Opening mode of the url [modal|new|self].|
|Eurl||String||The URL address of the sysrem will be opened in the following form load.|
|boolean||Returns true or false depending on whether the XSQL processor is being processed by a web server and it has a valid adapter.|
Example of a process to open an extern URL towards http://www.deister.net. If this process is performed from a form button of type Rum; after doing click on the button, the page is reloaded and a new one is opened with the address http://www.deister.net
<xsql-script name='http_connection_getAttr'> <body> <if> <expr><http.request.JRepAdapter.isDefined /></expr> <then> <http.request.JRepAdapter.postURL mode='new'> <string>http://www.deister.net</string> </http.request.JRepAdapter.postURL> </then> </if> </body> </xsql-script>
Example of a button which opens a Axional Studio form.
<xsql-script name='http_connection_getAttr'> <body> <if> <expr><http.request.JRepAdapter.isDefined /></expr> <then> <http.request.JRepAdapter.postURL mode='modal'> <webapp.wic_jrep_object.getHREF code='simple_report' cond='1=1' /> </http.request.JRepAdapter.postURL> </then> </if> </body> </xsql-script>