Form service components
Form service components
Class: OFormServiceComponent
Properties
Name | Type | Description |
---|---|---|
elementRef |
property |
Name of the column |
Inherited inputs
-
from FormDataComponent:
- attr
- automatic-binding
- automatic-registering
- clear-button
- data
- enabled
- hide-required-marker
- label
- label-visible
- read-only
- required
- select-all-on-click
- sql-type
- tooltip
- tooltip-position
- tooltip-show-delay
- validators
- width
Inputs
Name | Since | Description | Default |
---|---|---|---|
columns string |
|
Entity columns. Separated by ‘;’ |
|
description-columns string |
|
Visible columns in text field |
|
entity string |
|
Service entity name |
|
parent-keys string |
|
Filtering keys. Separated by ‘;’. It is possible to use alias on the following way: compCol1:fk1;compCol2:fk2 where compCol1 and compCol2 are component columns and fk1 and fk2 are attributes from form fields. It is also possible to define a column next to the alias for getting that column value instead of the component value: compCol1:fk1[fkCol] |
|
query-method string |
|
Service method name for queries |
query |
query-on-bind no | false | yes | true |
|
Query table data on bind |
|
query-on-event |
|
A component event reference the component must listen to in order to perform its query. The component will wait until the event you choose is fired to perform the request of the data. |
|
query-on-init no | false | yes | true |
|
Query table data on init |
yes |
query-with-null-parent-keys no | false | yes | true |
|
Indicates whether or not to trigger query method when the filter generated from parent-keys is null. The use of this attribute is not recommended when the component may request a big amount of information |
no |
separator string |
|
Separation character between |
|
service string |
|
JEE service path |
|
service-type string |
|
Injection token indicated in the provider of the service |
|
set-value-on-value-change string |
|
Form component attributes whose value will be set when the value of the current component changes due to user interaction. Separated by ‘;’. Accepted format: |
|
sort ASC | DESC |
|
Indicates the order ascending or descending of the option values |
|
static-data array |
|
Static data for filling the table |
|
translate yes | no | true | false |
|
Indicates whether or not to translate the option values |
no |
value-column string |
|
Column of the entity from where the component will get its value |
|
value-column-type string |
|
|
int |
visible-columns string |
|
Visible columns. Separated by ‘;’ |
|
Inherited outputs
-
from FormDataComponent:
- onChange
- onValueChange
Outputs
Name | Since | Description |
---|---|---|
onSetValueOnValueChange |
Event triggered when component value changes due to user interaction |
Methods
getSelectedRecord |
---|
Returns the data related to the selected item. |