GRID

 0    46 フィッシュ    radoslawgadowski
mp3をダウンロードする 印刷 遊びます 自分をチェック
 
質問 English 答え English
Example of grid initialization
学び始める
"type": "grid", "label": "Simple View Grid", "id": "simpleGridWorker", "rows": "<% workersEndpoint. data %>", "rowVariableName": "thisRow", "columns": [
What must the inbound endpoint used by rows return?
学び始める
A list containing the data elements to display as grid rows.
What is the purpose of rowVariableName?
学び始める
It defines a variable representing the data element for the current row.
Can columns and dynamicColumns be used together?
学び始める
No. They are mutually exclusive.
Can columns and dynamicColumns be used together?
学び始める
No
Dynamic Columns - What information should column metadata contain?
学び始める
At minimum, information such as the column ID, label, type, and data field.
Example of DynamicColumns
学び始める
"rows": "<% workersEndpoint. data %>", "dynamicColumns": {"type": "dynamicColumns", "columns": "<% [{'name': 'Name',
What does attributeName define?
学び始める
The field path in the row data whose value should be displayed in the generated column.
Does a grid paginate data by default?
学び始める
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?
学び始める
autoPaging and pagingInfo
Can autoPaging and pagingInfo be used together?
学び始める
No. They are mutually exclusive.
When should autoPaging be used?
学び始める
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?
学び始める
When there are more than 50 rows of results on a view page.
How many rows are initially displayed with autoPaging?
学び始める
The first 50 rows.
What happens when the user scrolls down with autoPaging enabled?
学び始める
The grid calls the endpoint again to load more results.
Why isn't autoPaging recommended for slow endpoints?
学び始める
Because the endpoint may be called multiple times as the user scrolls.
When should pagingInfo be used?
学び始める
When the endpoint itself returns paginated data.
Which required attribute identifies the paginated endpoint?
学び始める
pagingInfo. endPoint.
What must the endpoint used by pagingInfo support?
学び始める
limit and offset paging parameters.
Which variables are used to pass paging values between requests?
学び始める
pagingVariables. limit and pagingVariables. offset
What should the initial pagingVariables. limit typically be?
学び始める
The example initializes it to 100.
What should the initial pagingVariables. offset typically be?
学び始める
0
What happens when the user scrolls beyond the currently fetched data?
学び始める
Subsequent requests automatically update pagingVariables. offset.
What does pagingInfo. rowCount represent?
学び始める
The total number of items returned by the endpoint, typically the total field.
What does pagingInfo. data represent?
学び始める
The paginated list of data returned by the endpoint, typically the data field.
What type of variables are pagingVariables. limit and pagingVariables. offset?
学び始める
They are string variables.
Example of paginated endpoint
学び始める
"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
学び始める
{"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?
学び始める
The widgets in the grid become editable, allowing users to add or modify row data.
What attribute controls whether users can add rows?
学び始める
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?
学び始める
Check whether its row ID is empty or non-empty.
Example of valueOutBinding
学び始める
{"type": "column", "columnId": "expenseIdColumn", "label": "Expense ID", "cellTemplate": {"type": "text", "id": "entryId", "value": "<% rowdata. id %>", "valueOutBinding": "putExpense. id",
example of valueOfBinding and ValuesOut
学び始める
{"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?
学び始める
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?
学び始める
onRowAdd, Example: "rowVariableName": "rowdata", "onRowAdd": "<% updateTotalQuantity() %>",
What event handles row deletion?
学び始める
onRowRemove, "rowVariableName": "rowdata", "onRowAdd": "<% updateTotalQuantity() %>", "onRowRemove": "<% updateTotalQuantity() %>",
What is the typical position of a newly added row when showRowMover is false?
学び始める
At the top of the grid.
How do you get the number of rows in a grid?
学び始める
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?
学び始める
Set isArrayOutBinding to true.
What else is required when using isArrayOutBinding: true?
学び始める
Each column's cellTemplate should use an array-style valueOutBinding, for example: someOutboundEndpoint. someDataArray[]. someField
What happens when isArrayOutBinding = false
学び始める
Rows are submitted in separate requests, one request per row.
How do you submit only selected rows?
学び始める
Use the outbound endpoint's onSend event handler.
How do you determine whether the current row is selected?
学び始める
currentRowVariable. selected
What does self. data contain in an onSend handler?
学び始める
The data generated from the grid's valueOutBinding values.
What must isArrayOutBinding be when using currentRowVariable in onSend?
学び始める
It must be false.
Can currentRowVariable be used in a valueOutBinding with PMD Scripting?
学び始める
No

コメントを投稿するにはログインする必要があります。