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
    • data
    • enabled
    • label
    • read-only
    • required
    • sql-type
    • tooltip
    • tooltip-position
    • tooltip-show-delay
    • validators
    • width

Inputs

Name 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

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 description-columns values

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: attr | attr:columnName

static-data

array

Static data for filling the table

value-column

string

Column of the entity from where the component will get its value

value-column-type

string

value-column value type

int

visible-columns

string

Visible columns. Separated by ‘;’

Inherited outputs

Outputs

Name Description

onSetValueOnValueChange

Event triggered when component value changes due to user interaction

Methods

getSelectedRecord
Returns the data related to the selected item.

Updated: