×
Menu
Index

3.2.3. Start a TAB form

 
When using a tabform, BOA will ask how much tabs you need, and what the captions are for each tab. Once this is known, each tab will be processed as a normal form.
 
As soon as BOA wants to create the tabform it will send a request as follows to your endpoint:
.../tabfiles/klant/-1?tab=0
 
The ID=-1 so you don't need to add data in the response. The parameter 'tab=0' is to get the captions and endpoints of all the different tab-pages.
 
In your response you need to provide the following information. The sample below is for a customers form with 9 tabpages.
 
 
{
"file": "klant",
"titlefield": "naam",
"tabpages": [
{
  "title": "Address",
  "tab": "1",
  "endpoint": "/tabfiles/klant/${id}?tab=1",
  "pagetype": "form"
},
{
  "title": "Administration",
  "tab": "2",
  "endpoint": "/tabfiles/klant/${id}?tab=2",
  "pagetype": "form"
},
{
  "title": "Extra",
  "tab": "3",
  "endpoint": "/tabfiles/klant/${id}?tab=3",
  "pagetype": "form"
},
{
  "title": "History",
  "tab": "4",
  "endpoint": "/tabfiles/klant/${id}?tab=4",
  "pagetype": "form"
},
{
  "title": "Bill",
  "tab": "5",
  "endpoint": "/tabfiles/klant/${id}?tab=5",
  "pagetype": "form"
},
{
  "title": "Documents",
  "tab": "6",
  "endpoint": "/tabfiles/klant/${id}?tab=6",
  "pagetype": "form"
},
{
  "title": "Turnover.",
  "tab": "7",
  "endpoint": "/tabfiles/klant/${id}?tab=7",
  "pagetype": "form"
},
{
  "title": "Data",
  "tab": "8",
  "endpoint": "/tabfiles/klant/${id}?tab=8",
  "pagetype": "form"
},
{
  "title": "CRM",
  "tab": "9",
  "endpoint": "/tabfiles/klant/${id}?tab=9",
  "pagetype": "form"
}
]
}
 
 
  • file: name of the data.
  • titlefield: a tab page gets a title field, which will be shown on all the tabs.
  • tabpages: array with all the tabpages.
  • title: caption for the tab.
  • tab: number/position for the tab
  • endpoint: endpoint to send the request when the tab is opened, or when data is changed.
  • pagetype: pagetype to open when clicking on the tab. Normally this will be a form, which can contain all the elements available.