×
Menu
Index

2.4.13. webpage

 
With BOA you can also open a specific webpage, which can be an external page. With BOA you can set the parameters for the URL.
 
Embedded button AND standalone button to open an external dynamical URL.
 

Different pagetypes.

 
There are three possibilities.
 
URL opened in a tabpage.
 
URL opened in a modal popup.
 
 
{
"display": "Modal",
"tooltip": "",
"fieldname": "",
"length": 0,
"inputtype": "button",
"block": 1,
"newline": false,
"labelwidth": 0,
"fieldwidth": 2,
"fieldheight": 2,
"outline": true,
"color": "primary",
"onclick": {
"endpoint": "https://www.boa-platform.com",
"pagetype": "modalwebpage",
"pagesize": "xl",
"buttons": ["exit"],
"onclick": {
"endpoint": "",
"pagetype": "",
"pagesize": "",
"buttons": [ ]
}
}
}
 
Button which will open an URL with the onclick request.
 
  • onclick: request to send when the button is clicked.
  • endpoint: URL to open.
  • pagetype: type of webpage you want to open:
  • tabwebpage
  • modalwebpage
  • browserwebpage.
  • pagesize: size of the modal to open. Only used with modalwebpage: sm, md, lg and xl.
  • buttons: navigation button, only used with modalwebpage to close the modal with exit .
  • onclick: onclick of the modal form. Since this is an external URL there is no onclick definition possible. It must be send.
     
 
 
 
 
Build dynamical URL.
 
In the above sample, the URL has to contain the VAT number to have an dynamical URL. You can use fieldnames in the structure of an endpoint.
 
Suppose you have the data of the VAT number in the fieldname VAT. You can create the andpoint as follows:
"endpoint": "https://www.vat_information.be/${vat}"
 
With the use of the ${ ... } syntax, you can use any fieldname to be part of the endpoint, in this case the URL.