To add an extra infobutton to an element, you can add the 'infobutton' to your json. You can use the icon you want as caption, and you can define the endpoint.
Embedded infobuttons into read_int elements.
{
"display": "Reservations:",
"tooltip": "",
"icon": "r",
"fieldname": "res",
"length": 0,
"inputtype": "read_int",
"infobutton": {
"endpoint": "\/files\/arthist\/B\/${id}",
"pagetype": "modalgrid",
"pagesize": "lg",
"buttons": [ "exit"],
"hidefilter": true,
"icon": "r"
},
"block": 1,
"newline": true,
"labelwidth": 2,
"fieldwidth": 2
},
infobutton: defines an embedded button with a specific endpoint.
endpoint: the endpoint to send the request.
pagetype: which pagetype must be opened. In most cases this will be a modal popup with a form or grid.
pagesize: size of the popup.
buttons: navigation buttons for the grid or form.
hidefilter: true or false to hide the search bar for a grid.
icon: the icon that must be shown as caption for the button.
The element infobutton can be added to different form elements.
With numeric elements you can use calculator as pagetype for the infobutton.
pagetype: calculator to popup a calculator in numeric fields. The calculator will return the result.
With elements as date, time, phone and email the infobutton is added automatically by BOA.