This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

A custom cell editor for FilterEditor

General questions regarding the development with ProjX.

A custom cell editor for FilterEditor

Postby johnit » Wed Dec 20, 2017 1:28 pm

I use a standard FilterEditor for a text column. It works great but I want to show a combobox instead of a simple text field. The combobos should contain data from a custom databook.

How can I set a custom combobox?
johnit
 
Posts: 24
Joined: Fri Nov 16, 2012 5:58 pm

Re: A custom cell editor for FilterEditor

Postby Support@SIB » Wed Dec 20, 2017 1:33 pm

This isn't a big problem, simply set the cell editor:

Code: Select all
filterEditor.setCellEditor(cellEditorCustom);

and create a simple linked cell editor:

Code: Select all
cellEditorCustom = new UILinkedCellEditor(new ReferenceDefinition(
             new String[] {FilterEditor.SEARCH}, rdbData, new String[] { "COLUMNNAME" })))

The column name FilterEditor.SEARCH is important, because the FilterEditor reads the value from the search column and creates a condition for the right column.
User avatar
Support@SIB
 
Posts: 243
Joined: Mon Sep 28, 2009 1:56 pm


Return to Development