Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
jvx:client:gui:custom_linked_celleditor [2018/02/01 13:58]
admin created
jvx:client:gui:custom_linked_celleditor [2020/06/26 11:54] (current)
cduncan
Line 1: Line 1:
 ~~NOTRANS~~ ~~NOTRANS~~
-~~Title: Custom ​linked cell editors ​(dropdownpicklist)~~+~~Title: Custom ​Linked Cell Editors ​(DropdownPicklist)~~
  
-With JVx, it's very easy to define dropdown list boxes, LOVs or picklists. JVx supports manual definition or automatic definition of dropdowns. If you want to use automatic dropdowns, read following:+With JVx, it's very easy to define dropdown list boxes, LOVsor picklists. JVx supports manual definition or automatic definition of dropdowns. If you want to use automatic dropdowns, read the following:
  
 [[jvx:​client:​model:​databook:​autolistboxes|Automatic List Boxes based on the DB Model]]. [[jvx:​client:​model:​databook:​autolistboxes|Automatic List Boxes based on the DB Model]].
Line 8: Line 8:
 If you want to define custom dropdowns, continue reading. If you want to define custom dropdowns, continue reading.
  
-JVx offers different optionswith or without database.+JVx offers different options with or without database.
  
-===== UIEnumCellEditor ​=====+=== UIEnumCellEditor ===
  
 The easiest solution is an UIEnumCellEditor. The easiest solution is an UIEnumCellEditor.
Line 22: Line 22:
 The cell editor saves an allowed value and displays a display value. The cell editor saves an allowed value and displays a display value.
  
-After the definition, set the cell editor to the datatype of a specific column+After the definition, set the cell editor to the datatype of a specific column.
  
 <file java> <file java>
Line 29: Line 29:
 </​file>​ </​file>​
  
-Use an IDataBook or IDataRow. An IDataBook is for example the MemDataBook or the RemoteDataBook. An IDataRow is for example the DataRow.+Use an IDataBook or IDataRow. An IDataBook isfor examplethe MemDataBook or the RemoteDataBook. An IDataRow isfor examplethe DataRow.
  
-It's possible to create a DataRow from an existing IDataBook, e.g.+It's possible to create a DataRow from an existing IDataBook, e.g.:
  
 <file java> <file java>
Line 37: Line 37:
 </​file>​ </​file>​
  
-or to create a new DataRow+or to create a new DataRow.
  
-</file java>+<file java>
 RowDefinition rowdef = new RowDefinition();​ RowDefinition rowdef = new RowDefinition();​
 rowdef.addColumnDefinition(new ColumnDefinition("​LINK_ID",​ new BigDecimalDataType()));​ rowdef.addColumnDefinition(new ColumnDefinition("​LINK_ID",​ new BigDecimalDataType()));​
Line 47: Line 47:
 </​file>​ </​file>​
  
-To use automatic translation,​ follow [[jvx:​client:​model:​databook:​recordtranslation|this instrcutions]].+To use automatic translation,​ follow [[jvx:​client:​model:​databook:​recordtranslation|these instructions]].
  
-===== UILinkedCellEditor ​=====+=== UILinkedCellEditor ===
  
-If you need more flexibility,​ use an UILinkedCellEditor for your dropdowns. The UIEnumCellEditor maps a Value to one ID columnand displays the value column.+If you need more flexibility,​ use an UILinkedCellEditor for your dropdowns. The UIEnumCellEditor maps a value to one ID column and displays the value column.
  
 The UILinkedCellEditor shows one or more columns and maps multiple ID columns. The cell editor needs an IDataBook which contains the data. Use a MemDataBook or a RemoteDataBook. Our example uses a MemDataBook. The UILinkedCellEditor shows one or more columns and maps multiple ID columns. The cell editor needs an IDataBook which contains the data. Use a MemDataBook or a RemoteDataBook. Our example uses a MemDataBook.
Line 76: Line 76:
 We map the ID to LINK_ID and VALUE to LINK_VALUE. The VALUE column will be shown in the dropdown. After selecting a value, the ID and VALUE will be written to LINK_ID and LINK_VALUE. We map the ID to LINK_ID and VALUE to LINK_VALUE. The VALUE column will be shown in the dropdown. After selecting a value, the ID and VALUE will be written to LINK_ID and LINK_VALUE.
  
-You can use the UILinkedCellEditor with a RemoteDataBook and read record from a remote storage, e.g. a database, a XML file, CSV file or any other datasource. You don't need a specific datasource if you use a MemDataBook. ​                                  +You can use the UILinkedCellEditor with a RemoteDataBook and read record from a remote storage, e.g.a database, a XML file, CSV fileor any other datasource. You don't need a specific datasource if you use a MemDataBook. ​                                  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information