GRID

 0    46 Datenblatt    radoslawgadowski
mp3 downloaden Drucken spielen überprüfen
 
Frage English Antworten English
Example of grid initialization
Lernen beginnen
"type": "grid", "label": "Simple View Grid", "id": "simpleGridWorker", "rows": "<% workersEndpoint. data %>", "rowVariableName": "thisRow", "columns": [
What must the inbound endpoint used by rows return?
Lernen beginnen
A list containing the data elements to display as grid rows.
What is the purpose of rowVariableName?
Lernen beginnen
It defines a variable representing the data element for the current row.
Can columns and dynamicColumns be used together?
Lernen beginnen
No. They are mutually exclusive.
Can columns and dynamicColumns be used together?
Lernen beginnen
No
Dynamic Columns - What information should column metadata contain?
Lernen beginnen
At minimum, information such as the column ID, label, type, and data field.
Example of DynamicColumns
Lernen beginnen
"rows": "<% workersEndpoint. data %>", "dynamicColumns": {"type": "dynamicColumns", "columns": "<% [{'name': 'Name',
What does attributeName define?
Lernen beginnen
The field path in the row data whose value should be displayed in the generated column.
Does a grid paginate data by default?
Lernen beginnen
No. By default, it displays as much data as the client can handle without pagination.
Which two attributes can be used to configure grid paging?
Lernen beginnen
autoPaging and pagingInfo
Can autoPaging and pagingInfo be used together?
Lernen beginnen
No. They are mutually exclusive.
When should autoPaging be used?
Lernen beginnen
With fast endpoints that don't support paging and return large volumes of data in a single call.
When does autoPaging start loading additional data?
Lernen beginnen
When there are more than 50 rows of results on a view page.
How many rows are initially displayed with autoPaging?
Lernen beginnen
The first 50 rows.
What happens when the user scrolls down with autoPaging enabled?
Lernen beginnen
The grid calls the endpoint again to load more results.
Why isn't autoPaging recommended for slow endpoints?
Lernen beginnen
Because the endpoint may be called multiple times as the user scrolls.
When should pagingInfo be used?
Lernen beginnen
When the endpoint itself returns paginated data.
Which required attribute identifies the paginated endpoint?
Lernen beginnen
pagingInfo. endPoint.
What must the endpoint used by pagingInfo support?
Lernen beginnen
limit and offset paging parameters.
Which variables are used to pass paging values between requests?
Lernen beginnen
pagingVariables. limit and pagingVariables. offset
What should the initial pagingVariables. limit typically be?
Lernen beginnen
The example initializes it to 100.
What should the initial pagingVariables. offset typically be?
Lernen beginnen
0
What happens when the user scrolls beyond the currently fetched data?
Lernen beginnen
Subsequent requests automatically update pagingVariables. offset.
What does pagingInfo. rowCount represent?
Lernen beginnen
The total number of items returned by the endpoint, typically the total field.
What does pagingInfo. data represent?
Lernen beginnen
The paginated list of data returned by the endpoint, typically the data field.
What type of variables are pagingVariables. limit and pagingVariables. offset?
Lernen beginnen
They are string variables.
Example of paginated endpoint
Lernen beginnen
"endPoints": [{"baseUrlType": "workday-staffing", "name": "workersPagedEndpoint", "authType": "sso", "url": "<% var limit = pagingVariables. limit?: 100; var offset = pagingVariables. offset?: 0; '/workers? limit=' + limit + '&offset=' + offset;
Example of Pagination Info
Lernen beginnen
{"type": "grid", "label": "Wrkrs", "rows": "<% wrkrsPgdNdpnt. data %>", "rowVariableName": "wrkr", "pagingInfo": {"endPoint":"<%ndPnts. wrkrsPgdNdpint%>", "rowCount":"<%wrkrsPgdNdpnt. total%>", "data":"<%wrkrsPgdNdpnt. data%>"}, "columns": [
What happens when a grid is placed on an edit page?
Lernen beginnen
The widgets in the grid become editable, allowing users to add or modify row data.
What attribute controls whether users can add rows?
Lernen beginnen
doNotAdd - If false, the user can add a row on top of the grid.
How can you distinguish a new row from an existing row?
Lernen beginnen
Check whether its row ID is empty or non-empty.
Example of valueOutBinding
Lernen beginnen
{"type": "column", "columnId": "expenseIdColumn", "label": "Expense ID", "cellTemplate": {"type": "text", "id": "entryId", "value": "<% rowdata. id %>", "valueOutBinding": "putExpense. id",
example of valueOfBinding and ValuesOut
Lernen beginnen
{"type": "column", "columnId": "clmn", "label": "lb", "cellTemplate": {"type": "text", "id": "expenseDate", "value": "<%test. value%>", "valuesOut": [{"value": "<% self. value %>", "valueOutBinding": "postExpense. date"},
When use ValuesOut for Grid?
Lernen beginnen
For all other non-ID columns, use valuesOut to specify valueOutBinding with data for both the POST and PUT (or PATCH) outbound endpoints.
What event handles a new grid row?
Lernen beginnen
onRowAdd, Example: "rowVariableName": "rowdata", "onRowAdd": "<% updateTotalQuantity() %>",
What event handles row deletion?
Lernen beginnen
onRowRemove, "rowVariableName": "rowdata", "onRowAdd": "<% updateTotalQuantity() %>", "onRowRemove": "<% updateTotalQuantity() %>",
What is the typical position of a newly added row when showRowMover is false?
Lernen beginnen
At the top of the grid.
How do you get the number of rows in a grid?
Lernen beginnen
Use the size() method on the grid's rows property: expenseGrid. rows. size()
How can you submit all grid rows in one outbound request as an array?
Lernen beginnen
Set isArrayOutBinding to true.
What else is required when using isArrayOutBinding: true?
Lernen beginnen
Each column's cellTemplate should use an array-style valueOutBinding, for example: someOutboundEndpoint. someDataArray[]. someField
What happens when isArrayOutBinding = false
Lernen beginnen
Rows are submitted in separate requests, one request per row.
How do you submit only selected rows?
Lernen beginnen
Use the outbound endpoint's onSend event handler.
How do you determine whether the current row is selected?
Lernen beginnen
currentRowVariable. selected
What does self. data contain in an onSend handler?
Lernen beginnen
The data generated from the grid's valueOutBinding values.
What must isArrayOutBinding be when using currentRowVariable in onSend?
Lernen beginnen
It must be false.
Can currentRowVariable be used in a valueOutBinding with PMD Scripting?
Lernen beginnen
No

Sie müssen eingeloggt sein, um einen Kommentar zu schreiben.