ebs.generateList
Displays a predefined view for a given entity. The view includes action handler buttons (Advanced Find, Export, Delete, Insert) that allow you to interact with the listed entity records.
Also see ebs.generateForm, ebs.generateInsert, ebs.generateEdit.
Syntax
Copy
function ebs.generateList(mainHtmlId: string, entityName: string, viewName: string, pageContext?: any): Promise<void>;
| Parameter | Type | Description |
|---|---|---|
mainHtmlId
|
string | ID of the parent HTML element where the list will be injected. |
entityName
|
string | Name of the entity whose records will be listed. |
viewName
|
string | Name of the predefined entity view. |
pageContext (optional) |
any | Allows you to provide a specific page context for the opened view. |
Response
Returns a void promise object, allowing you to associate handlers in case of success or failure.
Examples
In this example:
- We edit the page template of a form driven flow section to include a custom button called viewCustomers.
- In the section's After Generate tab, we include the following code that opens the default view of the Customers entity in the page's main HTML element (ebsContainer).
Copy
$('#viewCustomers').on('click', function (event) {
ebs.generateList('ebsContainer', 'Customers', 'default')
})